rushio-consulting/flutter_camera_ml_vision

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

mwawrusch opened this issue · 0 comments

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)