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

Error while executing in iOS #28

Open
deathg0d opened this issue Sep 10, 2021 · 2 comments
Open

Error while executing in iOS #28

deathg0d opened this issue Sep 10, 2021 · 2 comments

Comments

@deathg0d
Copy link

deathg0d commented Sep 10, 2021

I am getting the following error in iOS any idea why? It is running fine on android:

Runner[7479:569477] [VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'FutureOr<EdgeDetectionResult>'
#0      EdgeDetector._subscribeToPort.<anonymous closure> (package:appname/pages/image_manipulation/edge_detector.dart:64:26)
<asynchronous suspension>

This code on line 64 of edge_detector is:

  Future<T> _subscribeToPort<T>(ReceivePort port) async {
    StreamSubscription sub;
    
    var completer = new Completer<T>();
    
    sub = port.listen((result) async {
      await sub?.cancel();
      completer.complete(await result); // <- HERE
    });
    
    return completer.future;
  }

App is compiling fine, but whenever edge detection is triggered, the above error occurs.

@KittuPatel
Copy link

facing the same issue! @flutter-clutter please have a look at this.

@halitince7
Copy link

same issue

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

3 participants