Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worker.init.<anonymous closure> #6

Open
mohamedahmedhassan00 opened this issue Feb 3, 2022 · 3 comments
Open

Worker.init.<anonymous closure> #6

mohamedahmedhassan00 opened this issue Feb 3, 2022 · 3 comments

Comments

@mohamedahmedhassan00
Copy link

E/flutter ( 3491): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Invalid argument(s): Illegal argument in isolate message: (object extends NativeWrapper - Library:'dart:io' Class: _NativeSocket@13069316)
E/flutter ( 3491): #0 _SendPortImpl._sendInternal (dart:isolate-patch/isolate_patch.dart:249:43)
E/flutter ( 3491): #1 _SendPortImpl.send (dart:isolate-patch/isolate_patch.dart:230:5)
E/flutter ( 3491): #2 Worker.init. (package:easy_isolate/src/worker.dart:123:28)
E/flutter ( 3491): #3 Worker.init. (package:easy_isolate/src/worker.dart:117:29)
E/flutter ( 3491): #4 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter ( 3491): #5 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter ( 3491): #6 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter ( 3491): #7 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter ( 3491): #8 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter ( 3491): #9 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:733:19)
E/flutter ( 3491): #10 _StreamController._add (dart:async/stream_controller.dart:607:7)
E/flutter ( 3491): #11 _StreamController.add (dart:async/stream_controller.dart:554:5)
E/flutter ( 3491): #12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)

@lubritto
Copy link
Owner

@mohamedahmedhassan00 Hey, are you trying to use it for web projects?

@Dev-Owl
Copy link

Dev-Owl commented Oct 16, 2022

Got the same Exception on Mac

@WiRight
Copy link

WiRight commented May 15, 2023

Think you trying to send in isolate a WebSocket connection?

What about connect to ws in isolate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants