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

I am getting error when calling takePicture on picture state #509

Open
Kaizodo opened this issue Aug 28, 2024 · 0 comments
Open

I am getting error when calling takePicture on picture state #509

Kaizodo opened this issue Aug 28, 2024 · 0 comments

Comments

@Kaizodo
Copy link

Kaizodo commented Aug 28, 2024

 takePicture(PhotoCameraState photoState) {
    photoState.takePhoto(onPhoto: (request) {
      request.when(single: (single) {
        print(single.path);
      });
    });
  }
E/DartMessenger(18127): Uncaught exception in binary message listener
E/DartMessenger(18127): java.lang.Exception: paths and imageCaptures must have the same length
E/DartMessenger(18127): 	at com.apparence.camerawesome.cameraX.CameraAwesomeX.takePhoto(CameraAwesomeX.kt:352)
E/DartMessenger(18127): 	at com.apparence.camerawesome.cameraX.CameraInterface$Companion.setUp$lambda$10$lambda$9(Pigeon.kt:911)
E/DartMessenger(18127): 	at com.apparence.camerawesome.cameraX.CameraInterface$Companion.$r8$lambda$4itPtMdaYT7VdCMee4B5zUy1aQs(Unknown Source:0)
E/DartMessenger(18127): 	at com.apparence.camerawesome.cameraX.CameraInterface$Companion$$ExternalSyntheticLambda25.onMessage(Unknown Source:2)
E/DartMessenger(18127): 	at io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage(BasicMessageChannel.java:261)
E/DartMessenger(18127): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/DartMessenger(18127): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/DartMessenger(18127): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger(18127): 	at android.os.Handler.handleCallback(Handler.java:958)
E/DartMessenger(18127): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger(18127): 	at android.os.Looper.loopOnce(Looper.java:232)
E/DartMessenger(18127): 	at android.os.Looper.loop(Looper.java:334)
E/DartMessenger(18127): 	at android.app.ActivityThread.main(ActivityThread.java:8291)
E/DartMessenger(18127): 	at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger(18127): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:557)
E/DartMessenger(18127): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:981)
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

1 participant