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 crashes when I try to save an image

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
novas1r1commented, Oct 11, 2020

Same crash for Pixel 2 with Android 11

0reactions
VOIDCRUSHERcommented, Dec 7, 2020

@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.

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 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 >

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