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 Capturing Image and Choosing Gallery #5

Open
rajeshpatil95 opened this issue Jul 8, 2019 · 0 comments
Open

Error while Capturing Image and Choosing Gallery #5

rajeshpatil95 opened this issue Jul 8, 2019 · 0 comments

Comments

@rajeshpatil95
Copy link

rajeshpatil95 commented Jul 8, 2019

Getting an error while capturing an image:
Steps to reproduce

  1. clone
  2. flutter run

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.7.8+hotfix.2, on Linux, locale en_IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.35.1)
[✓] Connected device (1 available)

LOG:
flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 0.8s
Resolving dependencies... 2.0s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 6.5s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 1.5s
V/DartMessenger( 1411): Received message from Dart over channel 'flutter/platform'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/PlatformChannel( 1411): Received 'SystemChrome.setApplicationSwitcherDescription' message.
D/EGL_emulation( 1411): eglMakeCurrent: 0xe8bef500: ver 2 0 (tinfo 0xef9ed520)
V/DartMessenger( 1411): Received message from Dart over channel 'flutter/platform'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/PlatformChannel( 1411): Received 'SystemChrome.setSystemUIOverlayStyle' message.
V/DartMessenger( 1411): Received message from Dart over channel 'flutter/platform'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/PlatformChannel( 1411): Received 'SystemChrome.setApplicationSwitcherDescription' message.
Syncing files to device Android SDK built for x86...
7,590ms (!)

�� To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:41319/Xraz9s2rs_E=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
V/DartMessenger( 1411): Received message from Dart over channel 'plugins.flutter.io/image_picker'
V/DartMessenger( 1411): Deferring to registered handler to process message.
V/LifecycleChannel( 1411): Sending AppLifecycleState.inactive message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'
D/EGL_emulation( 1411): eglMakeCurrent: 0xebd85c60: ver 2 0 (tinfo 0xd452cdd0)
V/LifecycleChannel( 1411): Sending AppLifecycleState.paused message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'

//This is while capturing an image
V/LifecycleChannel( 1411): Sending AppLifecycleState.inactive message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'
V/LifecycleChannel( 1411): Sending AppLifecycleState.resumed message.
V/DartMessenger( 1411): Sending message with callback over channel 'flutter/lifecycle'
D/EGL_emulation( 1411): eglCreateContext: 0xe8bef5c0: maj 2 min 0 rcv 2
D/EGL_emulation( 1411): eglMakeCurrent: 0xe8bef5c0: ver 2 0 (tinfo 0xef9ed520)
D/EGL_emulation( 1411): eglMakeCurrent: 0xe8bef5c0: ver 2 0 (tinfo 0xef9ed520)
D/EGL_emulation( 1411): eglMakeCurrent: 0xebd85c60: ver 2 0 (tinfo 0xd452cdd0)
W/Binder ( 1411): Caught a RuntimeException from the binder stub implementation.
W/Binder ( 1411): java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: Binder:1411_2
W/Binder ( 1411): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
W/Binder ( 1411): at io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback(FlutterJNI.java:727)
W/Binder ( 1411): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:140)
W/Binder ( 1411): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:225)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.finishWithSuccess(ImagePickerDelegate.java:481)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleImageResult(ImagePickerDelegate.java:455)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.access$000(ImagePickerDelegate.java:65)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate$4.onPathReady(ImagePickerDelegate.java:422)
W/Binder ( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate$3$1.onScanCompleted(ImagePickerDelegate.java:152)
W/Binder ( 1411): at android.media.MediaScannerConnection$ClientProxy.onScanCompleted(MediaScannerConnection.java:204)
W/Binder ( 1411): at android.media.MediaScannerConnection$1.scanCompleted(MediaScannerConnection.java:53)
W/Binder ( 1411): at android.media.IMediaScannerListener$Stub.onTransact(IMediaScannerListener.java:61)
W/Binder ( 1411): at android.os.Binder.execTransact(Binder.java:731)

//This while selecting Gallery from dialogue box
V/DartMessenger( 1411): Received message from Dart over channel 'plugins.flutter.io/image_picker'
V/DartMessenger( 1411): Deferring to registered handler to process message.
E/MethodChannel#plugins.flutter.io/image_picker( 1411): Failed to handle method call
E/MethodChannel#plugins.flutter.io/image_picker( 1411): java.lang.IllegalStateException: Reply already submitted
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:135)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:230)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.finishWithError(ImagePickerDelegate.java:490)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.finishWithAlreadyActiveError(ImagePickerDelegate.java:486)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerDelegate.chooseImageFromGallery(ImagePickerDelegate.java:245)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugins.imagepicker.ImagePickerPlugin.onMethodCall(ImagePickerPlugin.java:56)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:222)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:96)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:643)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at android.app.ActivityThread.main(ActivityThread.java:6669)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/MethodChannel#plugins.flutter.io/image_picker( 1411): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter ( 1411): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, Reply already submitted, null)
E/flutter ( 1411): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter ( 1411): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)
E/flutter ( 1411):
E/flutter ( 1411): #2 ImagePicker.pickImage (package:image_picker/image_picker.dart:53:40)
E/flutter ( 1411):
E/flutter ( 1411): #3 ImagePickerHandler.openGallery (package:flutter_image_ppicker/image_picker_handler.dart:24:35)
E/flutter ( 1411): #4 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:49:6)
E/flutter ( 1411): #5 ImagePickerHandler.openGallery (package:flutter_image_ppicker/image_picker_handler.dart:22:14)
E/flutter ( 1411): #6 ImagePickerDialog.build. (package:flutter_image_ppicker/image_picker_dialog.dart:90:42)
E/flutter ( 1411): #7 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter ( 1411): #8 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
E/flutter ( 1411): #9 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7)
E/flutter ( 1411): #10 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9)
E/flutter ( 1411): #11 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13)
E/flutter ( 1411): #12 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11)
E/flutter ( 1411): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
E/flutter ( 1411): #14 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter ( 1411): #15 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter ( 1411): #16 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter ( 1411): #17 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter ( 1411): #18 _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter ( 1411): #19 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter ( 1411): #20 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter ( 1411): #21 _invoke1 (dart:ui/hooks.dart:250:10)
E/flutter ( 1411): #22 _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)
E/flutter ( 1411):

@rajeshpatil95 rajeshpatil95 changed the title Image Capture Error and Gallery Too..!! Error while Capturing Image and Choosing Gallery Jul 8, 2019
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