Closed akshaykap11 closed 1 month ago
I cannot reproduce the issue with the latest stable, do you experience the problem with the code sample below?
I'm facing this issue specifically for this device version Device Model: OnePlus A5000 Android Version: 9.0 (Pie)
@akshaykap11 It seems you mistyped the package name as I don't see image_capture
on pub.dev. So I updated the description to image_picker
instead (based on the issue title). Please correct me if I'm wrong (in case you have a private package named image_capture
)
When the issue happens, is the app terminated? Can you provide the entire crash stack trace?
Also, what is the current image_picker version? Can you confirm with the sample code Iapicca shared above?
The app is not terminated. The flow is something like this 1) I click the cta action 2) camera preview opens 3) i click the pic which shows me a tick icon with the captured image. 4) once i click the tick icon, i get back to the app 5) Here expectation - image captured should show in the image container actual results - placeholder is still there
-> I dont have the device with me now. Will share the entire crash stack trace in few days once I get the device -> Image picker version - image_picker: ^1.1.2
-> Also will try the sample code with the device and update here again
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Steps to reproduce
Device Details:
Device Model: OnePlus A5000 Android Version: 9.0 (Pie) Flutter Version: Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 761747bfc5 (10 weeks ago) • 2024-06-05 22:15:13 +0200 Engine • revision edd8546116 Tools • Dart 3.4.3 • DevTools 2.34.3
Image Capture Package: [Specify the version of the image_picker package you are using]
1) Open pubspec.yaml and add the image_picker package. 2) Implement image capture functionality using the image_picker package. 3) After capturing the image, a tick mark appears, indicating that the image should be selected/picked. 4) However, no image is selected/picked, and the following error is logged: 5) E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: sending message to a Handler on a dead thread
Expected results
The captured image should be selected and returned by the image_picker package.
Actual results
2) However, no image is selected/picked, and the following error is logged: 2) E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: sending message to a Handler on a dead thread
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4651], locale en-IN) [√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android Studio (version 2022.2) [√] Connected device (4 available) [√] Network resources