This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
sqlite exception unable to open database file #6193
Copy link
Copy link
Closed
Description
Updated the demo app to 4.2.0-beta.2 on Thursday and have had issues with crashing since. Clearing the app data will resolve the issue temporarily but after sometime, opening the app again and clicking an example will result in the crash again. I think this issue might have been introduced in PR #5796.
08-29 09:57:17.098 29301-29789/? E/libc++abi: terminating with uncaught exception of type mapbox::sqlite::Exception: unable to open database file
08-29 09:57:17.098 29301-29856/? V/com.mapbox.mapboxsdk.http.HTTPRequest: [HTTP] Request was successful (code = 200).
--------- beginning of crash
08-29 09:57:17.098 29301-29789/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 29789 (DefaultFileSour)
[ 08-29 09:57:17.102 365: 365 W/ ]
debuggerd: handling request: pid=29301 uid=10307 gid=10307 tid=29789
08-29 09:57:17.107 29301-29301/? D/mbgl: {pboxandroiddemo}[Android]: NativeMapView::invalidate()
08-29 09:57:17.187 29857-29857/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-29 09:57:17.187 29857-29857/? A/DEBUG: Build fingerprint: 'google/bullhead/bullhead:7.0/NRD90M/3085278:user/release-keys'
08-29 09:57:17.187 29857-29857/? A/DEBUG: Revision: 'rev_1.0'
08-29 09:57:17.187 29857-29857/? A/DEBUG: ABI: 'arm64'
08-29 09:57:17.187 29857-29857/? A/DEBUG: pid: 29301, tid: 29789, name: DefaultFileSour >>> com.mapbox.mapboxandroiddemo <<<
08-29 09:57:17.187 29857-29857/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
08-29 09:57:17.193 29857-29857/? A/DEBUG: Abort message: 'terminating with uncaught exception of type mapbox::sqlite::Exception: unable to open database file'
08-29 09:57:17.193 29857-29857/? A/DEBUG: x0 0000000000000000 x1 000000000000745d x2 0000000000000006 x3 0000000000000008
08-29 09:57:17.194 29857-29857/? A/DEBUG: x4 ffffffffffffffff x5 0000000000000000 x6 0000008000808080 x7 651f647260616073
08-29 09:57:17.194 29857-29857/? A/DEBUG: x8 0000000000000083 x9 ffffffffffffffdf x10 0000000000000000 x11 0000000000000001
08-29 09:57:17.194 29857-29857/? A/DEBUG: x12 0000000000000018 x13 0000000000000000 x14 0000000000000000 x15 0005e11a50794557
08-29 09:57:17.194 29857-29857/? A/DEBUG: x16 0000007d739e1ed0 x17 0000007d7398ba2c x18 0000000000000000 x19 0000007d53e634f8
08-29 09:57:17.194 29857-29857/? A/DEBUG: x20 0000000000000006 x21 0000007d53e63450 x22 000000000000001e x23 00000000ffffffc8
08-29 09:57:17.194 29857-29857/? A/DEBUG: x24 0000007d53e62630 x25 0000007d53e62500 x26 0000007d53e62540 x27 00000000000f4240
08-29 09:57:17.194 29857-29857/? A/DEBUG: x28 0000007d53e62da8 x29 0000007d53e62410 x30 0000007d73988e58
08-29 09:57:17.194 29857-29857/? A/DEBUG: sp 0000007d53e623f0 pc 0000007d7398ba34 pstate 0000000060000000
08-29 09:57:17.207 29857-29857/? A/DEBUG: backtrace:
08-29 09:57:17.208 29857-29857/? A/DEBUG: #00 pc 000000000006ba34 /system/lib64/libc.so (tgkill+8)
08-29 09:57:17.208 29857-29857/? A/DEBUG: #01 pc 0000000000068e54 /system/lib64/libc.so (pthread_kill+64)
08-29 09:57:17.208 29857-29857/? A/DEBUG: #02 pc 0000000000023ed8 /system/lib64/libc.so (raise+24)
08-29 09:57:17.208 29857-29857/? A/DEBUG: #03 pc 000000000001c790 /system/lib64/libc.so (abort+52)
08-29 09:57:17.208 29857-29857/? A/DEBUG: #04 pc 000000000035d238 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #05 pc 000000000035d348 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #06 pc 000000000035ab38 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #07 pc 000000000035a1dc /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so (__cxa_throw+204)
08-29 09:57:17.208 29857-29857/? A/DEBUG: #08 pc 0000000000161468 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #09 pc 000000000015b8d0 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #10 pc 000000000015af3c /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #11 pc 0000000000151854 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #12 pc 0000000000151730 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #13 pc 0000000000154ff8 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #14 pc 0000000000155df8 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.208 29857-29857/? A/DEBUG: #15 pc 0000000000155c98 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.209 29857-29857/? A/DEBUG: #16 pc 000000000014a684 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.209 29857-29857/? A/DEBUG: #17 pc 0000000000146a54 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.209 29857-29857/? A/DEBUG: #18 pc 0000000000146f6c /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.209 29857-29857/? A/DEBUG: #19 pc 000000000014f490 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.209 29857-29857/? A/DEBUG: #20 pc 000000000014f3e0 /data/app/com.mapbox.mapboxandroiddemo-1/lib/arm64/libmapbox-gl.so
08-29 09:57:17.209 29857-29857/? A/DEBUG: #21 pc 000000000006863c /system/lib64/libc.so (_ZL15__pthread_startPv+208)
08-29 09:57:17.209 29857-29857/? A/DEBUG: #22 pc 000000000001d9fc /system/lib64/libc.so (__start_thread+16)
cc: @mapbox/android
Reacted by Gintas Z., Rob Labs and Jemshit Iskanderov
Activity
zugaldia commentedon Aug 29, 2016
cc: @friedbunny as this might be related to #5796
friedbunny commentedon Aug 29, 2016
This was reported last week in #5651, though that was originally an iOS ticket from a month ago.
I’m not familiar enough with Android to say whether or not #5796 could cause this crash in the demo app, but if changing the schema was the trigger I would also expect other apps to crash with fresh 4.2.0-beta.2 installs (and that doesn’t appear to be the case so far).
iOS hasn’t seen any reports of this crash since 3.3.0 and we haven’t seen it ourselves in iosapp or elsewhere since the database changes.
@cammace, try reverting #5796 and see if that fixes the crash.
vanshg commentedon Aug 29, 2016
Building off of my comments in #5651, although I can't consistently reproduce the crash in my own app, I still do get this same crash intermittently. The demo app still crashes every time.
cammace commentedon Aug 29, 2016
Note that this issues reproducible in the testapp also.
HappyDr0id commentedon Aug 30, 2016
Also reproduce this crash with the 4.2.0 snapshot version :
Device : Sony Z5 Compact (Android 6.0)
I systematically reproduce the crash when I :
By chance I didn't publish my app update, so I think that I will downgrade to the 4.1.0 version.
mkv123 commentedon Aug 31, 2016
I'm switching between style urls in my app and hitting this bug pretty quickly panning and switching styles, even after a fresh install (i.e. no killing of app involved). Can't even demo our app without crashes. (Using Nexus 5X with Android 7.0).
mkv123 commentedon Aug 31, 2016
If I add a 200ms delay to the server returning the style, I don't see the crash, or at least I haven't been able to reproduce it yet.
sddamico commentedon Aug 31, 2016
Am seeing this exception as well, using 4.2.0-beta.2
kkaefer commentedon Sep 2, 2016
Seeing this too, even after deleting and reinstalling the app.
friedbunny commentedon Sep 2, 2016
I can’t reproduce this crash in testapp or demoapp using the emulator (API 23, Nexus 5X) and I do not have access to any physical devices. Any additional steps/tips/incantations would be much appreciated.
For someone who can reproduce this crash, it would be very helpful if you could run a build with #5796 reverted.
gintasz commentedon Sep 4, 2016
We are getting the same crash on Android, it seems that it begins only after some launches. Like it works fine, works fine, works fine, then after some launches, boom, starts crashing. Not even sure what the heck. We are using a custom style. Using "com.mapbox.mapboxsdk:mapbox-android-sdk:4.2.0-SNAPSHOT"
vanshg commentedon Sep 5, 2016
I'm using a custom style too
24 remaining items
Burhan-Picon commentedon Sep 26, 2016
Hello everyone
I was having his crash issue. I found this is a mapbox issue. so to resolve this issue for now just clear data of your app then it wouldn't crash anymore.
zugaldia commentedon Sep 26, 2016
@Burhan-Picon Thanks for the report. You can also update to the latest
beta3as described in #6193 (comment), we have fixed it there.pallavi-srikhakollu commentedon Dec 12, 2016
@Burhan-Picon : I am also facing the same problem in my App. Can you explain me what all data needs to be cleared to solve this problem ?
kkaefer commentedon Dec 12, 2016
@pallavis-webonise to help us resolve this problem, it'd be great to get a copy of the database on the device that you're seeing this crash on, as well as the Mapbox SDK version number you're using. You can find the database in your app bundle at
/data/data/<your-app-identifier>/files/mbgl-offline.db, and you need root access to extract at file with adb. (enable root in dev preferences on the device,adb root,adb pull path). You can either attach the file as zip to this ticket, or upload at https://www.mapbox.com/contact/ and make sure to mention my name (@kkaefer) in the body text.pallavi-srikhakollu commentedon Dec 12, 2016
@kkaefer Thanks for the quick response but we are unable to reproduce this crash on our devices.I am using Mapbox v3.3.7 . I am attaching a crash log we got from crashlytics. I would be very thankful if you can help me out in this.
CrashlyticsReportOfMapboxAuthCrash.txt
friedbunny commentedon Dec 12, 2016
@pallavis-webonise Thanks for the crash log — you’re seeing #6205, which is a separate issue from this that hasn’t been resolved yet.
Burhan-Picon commentedon Dec 13, 2016
@pallavis-webonise the problem is that when you try app for multiple number of times its data become increases and after certain limit it get starts crashing whenever you open map.
So when we clear the data from App setting all data of app get cleared and it again start running well
and same thing will repeat as above.
pallavi-srikhakollu commentedon Dec 13, 2016
@Burhan-Picon : You mean we need to clear cache of Mapbox right ?
Burhan-Picon commentedon Dec 13, 2016
Clear cache will not solve this issue.
you need to clear app data.
I know this is not the way to solve this problem. This is just a temporary solution until mapbox team solve this.
cammace commentedon Dec 13, 2016
Please update @Burhan-Picon or open a new ticket with additional information. This issue has been resolved starting with
4.2.0-beta.3and above, you shouldn't be running into this issue.devinross commentedon Feb 5, 2017
@cammace I still seem to run into this error with map box 3.4.0 on iOS
evbarnett commentedon Sep 7, 2018
Sorry to revive an old thread, but I am getting this issue in 6.4.0 (on Android)
09-07 16:44:38.061 25031-25341/my.app E/mbgl: {DefaultFileSour}[Database]: Unexpected error connecting to database: unable to open database file 09-07 16:44:38.064 25031-25341/my.app E/libc++abi: terminating with uncaught exception of type mapbox::sqlite::Exception: unable to open database file 09-07 16:44:38.064 25031-25341/my.app A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 25341 (DefaultFileSour)zugaldia commentedon Sep 21, 2018
@evbarnett Could you open a separate ticket about this error and add any other information you have to help us reproduce the issue (device, Android OS version, code snippet...). Thanks!
kkaefer commentedon Sep 21, 2018
@evbarnett this crash has been solved in #12224, which is part of Android 6.5.0 and newer. Please upgrade to this version.
evbarnett commentedon Sep 22, 2018
@zugaldia Thanks for replying- I did open a separate ticket the same day
@kkaefer Thank you, I'll give the new version a try.