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

Take Picture - First one works, second one (different screen) fails #121

Open
mwawrusch opened this issue Aug 26, 2020 · 0 comments
Open

Comments

@mwawrusch
Copy link

Tested this on ios, we have the following setup:
User takes selfie with front camera. Works.
Transitions to another page
User takes photo of license with back camera - fails with exception below.

Any help is very much appreciated.

The following PlatformException was thrown while de-activating platform stream on channel
plugins.flutter.io/camera/imageStream:
PlatformException(error, No active stream to cancel, null)
When the exception was thrown, this was the stack:
#0      StandardMethodCodec.decodeEnvelope 
package:flutter/…/services/message_codecs.dart:572
#1      MethodChannel._invokeMethod 
package:flutter/…/services/platform_channel.dart:161
<asynchronous suspension>
#2      MethodChannel.invokeMethod 
package:flutter/…/services/platform_channel.dart:334
#3      EventChannel.receiveBroadcastStream.<anonymous closure> 
package:flutter/…/services/platform_channel.dart:554
#4      EventChannel.receiveBroadcastStream.<anonymous closure> 
package:flutter/…/services/platform_channel.dart:551
#11     CameraController.stopImageStream 
package:camera/camera.dart:448
#20     MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart)
(elided 27 frames from dart:async and dart:async-patch)
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