-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
image_picker crashes flutter application on iOS devices when an image in the gallery is tapped more than once #20214
Comments
Is this issue being looked at? We're having quite few users that are clicking on the image and, crashing the app with it. |
I just created a PR for a fix flutter/plugins#1051 |
Thanks for the update! |
This still happens to me, as soon I execute final image = await ImagePicker.pickImage(
source: ImageSource.camera,
); I get the |
@nicowernli Could you post your flutter doctor -v here with the iphone conected? Also, what is the image_picker version that you used? |
Hi @cyanglaz thanks for the response. Here is my data: [✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale es-ES)
• Flutter version 1.5.4-hotfix.2 at /Users/nicowernli/development/flutter
• Framework revision 7a4c33425d (6 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/nicowernli/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• ios-deploy 1.9.4
• CocoaPods version 1.7.0
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 36.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] Connected device (2 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)
• iPhone Xʀ • DC9EB448-2E8D-4627-A685-69B970C330F5 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2
(simulator)
• No issues found! I tried with: dependencies:
image_picker: ^0.6.0+9 I was using iPhone Xr simulator (iOS 12.2). Regards |
@nicowernli Thank you for providing the info. May I ask why did you test camera with Simulator? Although it shouldn't crash (which I will still investigate), camera should be tested on real device since the Simulator won't have the camera feature. (Although you can test |
Thanks @cyanglaz, I'm going to try with the gallery then. I know Android better than iOS, and I thought the simulator would use the MB camera, thats why I was testing in the simulator. |
@nicowernli do you forget to do these?
|
@cgx9 you are totally right, that was my error. I didn’t try the camera again but it happened to me opening the gallery until I added those keys. Sorry for that! |
@zoechi @dnfield @cyanglaz [✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-RS) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 10.3) [✓] Android Studio (version 3.5) [✓] Connected device (1 available) • No issues found! Crashlog
|
I use image_picker_modern and it seems to work so far. |
@cyanglaz I also reproduce it in 0.6.5+1 |
@ailic88 hi! it fixed in version 0.6.5+2 |
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 |
Steps to Reproduce
Sample code: https://gist.github.com/Blakexx/fd1010e6649f01fabfdf9efeaf35d10f
Logs
The text was updated successfully, but these errors were encountered: