Android - App crashes when I try to save an image
See original GitHub issueI don’t know what kind of information is useful at this time to fix this, please, let me know.
app/build.gradle android.compileSdkVersion 28 android.defaultConfig.inSdkVersion 24 android.defaultConfig.targetSdkVersion 28
Permission granted in android.permission.WRITE_EXTERNAL_STORAGE
E/AndroidRuntime( 849): android.database.sqlite.SQLiteException: table thumbnails has no column named relative_path (code 1 SQLITE_ERROR): , while compiling: INSERT INTO thumbnails (height,image_id,kind,_data,width,relative_path) VALUES (?,?,?,?,?,?)
E/AndroidRuntime( 849): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:184)
E/AndroidRuntime( 849): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
E/AndroidRuntime( 849): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:549)
E/AndroidRuntime( 849): at android.content.ContentResolver.insert(ContentResolver.java:2045)
E/AndroidRuntime( 849): at android.content.ContentResolver.insert(ContentResolver.java:2007)
E/AndroidRuntime( 849): at carnegietechnologies.gallery_saver.FileUtils.storeThumbnail(FileUtils.kt:165)
E/AndroidRuntime( 849): at carnegietechnologies.gallery_saver.FileUtils.insertImage(FileUtils.kt:84)
E/AndroidRuntime( 849): at carnegietechnologies.gallery_saver.GallerySaver$saveMediaFile$1$success$1.invokeSuspend(GallerySaver.kt:69)
E/AndroidRuntime( 849): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime( 849): at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:238)
E/AndroidRuntime( 849): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
E/AndroidRuntime( 849): at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
E/AndroidRuntime( 849): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)
I/Process ( 849): Sending signal. PID: 849 SIG: 9
Lost connection to device.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top 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 removed ......
Read more >How to resolve application crash while saving images to ...
Step 1: Right-click the Android project, and select Properties. C:\Users\samkumar.arivazhagan\AppData\Local\Microsoft\Windows.
Read more >App crashes when saving photo on Android 10 devices #245
After taking photo, photo should appear below the button on screen. On Android 10 emulator, it throws error JS: Error: cancelled in the...
Read more >App crashes when saving images : r/baconreader - Reddit
I'm on Note9 and I'm crashing when saving images, but ONLY when the title of that post has an emoji in it. Same...
Read more >The Android app crashes when trying to upload a picture from ...
When trying to upload a picture from my phone, the Android app crashes a few different ways, depending on whether I select the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same crash for Pixel 2 with Android 11
@marcobraghim Would we not want to keep this issue open? It seems to common to many users and hasn’t been resolved by the maintainers.