question-mark
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): java.io.FileNotFoundException: 19c879d4-6353-48da-bccf-6f93cbf4126a.jpg: open failed: ENOENT (No such file or directory)
E/AndroidRuntime( 8194): 	at libcore.io.IoBridge.open(IoBridge.java:496)
E/AndroidRuntime( 8194): 	at java.io.FileInputStream.<init>(FileInputStream.java:159)
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 kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
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$Worker.run(CoroutineScheduler.kt:665)
E/AndroidRuntime( 8194): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E/AndroidRuntime( 8194): 	at libcore.io.Linux.open(Native Method)
E/AndroidRuntime( 8194): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
E/AndroidRuntime( 8194): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
E/AndroidRuntime( 8194): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
E/AndroidRuntime( 8194): 	at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7499)
E/AndroidRuntime( 8194): 	at libcore.io.IoBridge.open(IoBridge.java:482)
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

1reaction
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(DatabaseUtils.java:172) E/AndroidRuntime(18563): at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:153) E/AndroidRuntime(18563): at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:704) E/AndroidRuntime(18563): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1816) E/AndroidRuntime(18563): at android.content.ContentResolver.openOutputStream(ContentResolver.java:1518) E/AndroidRuntime(18563): at android.content.ContentResolver.openOutputStream(ContentResolver.java:1494) 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)

0reactions
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 - Pub.dev
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found