Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android App crashing with while saving the image path on gallery_saver

See original GitHub issue

I have facing the below error while am saving the images on android using this plugin,

E/AndroidRuntime( 8194): FATAL EXCEPTION: DefaultDispatcher-worker-1
E/AndroidRuntime( 8194): Process: com.ventechsolutions.myFHB, PID: 8194
E/AndroidRuntime( 8194): 19c879d4-6353-48da-bccf-6f93cbf4126a.jpg: open failed: ENOENT (No such file or directory)
E/AndroidRuntime( 8194): 	at
E/AndroidRuntime( 8194): 	at<init>(
E/AndroidRuntime( 8194): 	at carnegietechnologies.gallery_saver.FileUtils.getBytesFromFile(FileUtils.kt:216)
E/AndroidRuntime( 8194): 	at carnegietechnologies.gallery_saver.FileUtils.insertImage(FileUtils.kt:47)
E/AndroidRuntime( 8194): 	at carnegietechnologies.gallery_saver.GallerySaver$saveMediaFile$1$success$1.invokeSuspend(GallerySaver.kt:69)
E/AndroidRuntime( 8194): 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime( 8194): 	at
E/AndroidRuntime( 8194): 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
E/AndroidRuntime( 8194): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
E/AndroidRuntime( 8194): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
E/AndroidRuntime( 8194): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$
E/AndroidRuntime( 8194): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/AndroidRuntime( 8194): 	at Method)
E/AndroidRuntime( 8194): 	at
E/AndroidRuntime( 8194): 	at
E/AndroidRuntime( 8194): 	at
E/AndroidRuntime( 8194): 	at$
E/AndroidRuntime( 8194): 	at
E/AndroidRuntime( 8194): 	... 10 more
I/Process ( 8194): Sending signal. PID: 8194 SIG: 9
Lost connection to device.
Exited (sigterm)

here I have attached my flutter doctor summary,

[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18363.959], locale en-IN) • Flutter version 1.20.3 at C:\flutter_config\flutter • Framework revision 216dee60c0 (7 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032 • Dart version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version
30.0.0) • Android SDK at C:\Users\vmohan\AppData\Local\Android\sdk • Platform android-30, build-tools 30.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) • All Android licenses accepted.

[√] Android Studio (version 4.0) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 48.1.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.48.2) • VS Code at C:\Users\vmohan\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.14.0

[√] Connected device (1 available) • moto g 7 (mobile) • ZF6224BH73 • android-arm64 • Android 10 (API 29)

• No issues found!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

novas1r1commented, Nov 4, 2020

For me it crashes as well when saving but with a different error: E/AndroidRuntime(18563): FATAL EXCEPTION: main E/AndroidRuntime(18563): Process: de.betriebsratzitate, PID: 18563 E/AndroidRuntime(18563): java.lang.IllegalArgumentException: Invalid column NULL E/AndroidRuntime(18563): at android.database.DatabaseUtils.readExceptionFromParcel( E/AndroidRuntime(18563): at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel( E/AndroidRuntime(18563): at android.content.ContentProviderProxy.openAssetFile( E/AndroidRuntime(18563): at android.content.ContentResolver.openAssetFileDescriptor( E/AndroidRuntime(18563): at android.content.ContentResolver.openOutputStream( E/AndroidRuntime(18563): at android.content.ContentResolver.openOutputStream( E/AndroidRuntime(18563): at carnegietechnologies.gallery_saver.FileUtils.storeThumbnail(FileUtils.kt:172) E/AndroidRuntime(18563): at carnegietechnologies.gallery_saver.FileUtils.insertImage(FileUtils.kt:84) E/AndroidRuntime(18563): at carnegietechnologies.gallery_saver.GallerySaver$saveMediaFile$1$success$1.invokeSuspend(GallerySaver.kt:69) E/AndroidRuntime(18563): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

jelenaleciccommented, Jan 19, 2021

@VOIDCRUSHER all my tags notification emails end up in my spam folder, sorry again! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android app. crashes when attempting to save picture
It seems to crash at Bitmap imageBitmap = (Bitmap) extras. get("data"); and I noticed that the app. does not crash if onActivityResult is ......
Read more >
Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
image_gallery_saver | Flutter Package -
A new flutter plugin project for save image to gallery, iOS need to add the following keys to your Info.plist file.
Read more >
Accessing the Camera and Stored Media - CodePath Cliffnotes
The easy way - launch the camera with an intent, designating a file path, and handle the ... using an intent that no...
Read more >
Troubleshoot crash or freeze in Photoshop - Adobe Support
A dialog appears during the launch that reads Skip loading optional and ... If you encounter a Photoshop crash with anti-virus software ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found