You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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.
App crashes on cannot open file error (cache.db) #10789
add MGLMapView to application (storyboard or code)
launch application
open scene with MGLMapView
Expected behavior
scene and map view should load and application should remain running
Actual behavior
app crashes with error {DefaultFileSource}[Database]: cannot open file at line 40843 of [2b0954060f] (Code 14)
... .mapbox/cache.db) - Undefined error: 0 (Code 14)
Hi, @michealbeatty. Thank you for using Mapbox. I am sorry to hear you are having some issues. Could you please add a code snipet or test app we could use to track the problem?
There's really not much to it, I have a scene with three buttons which segue to a scene which contains a map view . I've tried making the mapviewcontroller the initial view controller and removed all but the example code and get the same error
OK, this is strange. After several days of trying to figure this out, launching on the simulator and on a real device multiple times with no success, I launched in the simulator, then left it. When I returned an hour or so later, the same error was in the debug console and the LLDB server had crashed, but the application was running and I've been able to relaunch a number of times without the issue re-occuring.
Do you have exception breakpoints enabled? The first-run database creation flow catches a SQLite exception (Code 14, SQLITE_CANTOPEN) and then creates the database. This is not a crash, though folks frequently interpret it as one, e.g., #9761.
@friedbunny I do have exception breakpoints enabled so what you siggest is probably what was happening. Sure seemed like a crash to me.
Thanks for sharing and teaching me something new.
{com.mapbox.mbgl.DefaultFileSour}[Database]: cannot open file at line 40840 of [2b0954060f] (Code 14)
Just started happening after some random re-install of the app. MAJOR BUG
Hackiest solution:
Delete the app
Restart the device
Replace the Mapbox framework in the crashing project with the newly downloaded
Hi @TimmyBest — if you’re seeing a major bug (as opposed to having breakpoints enabled, which is how this specific issue was resolved), we’d love to try and fix it. If that’s the case, please open a new issue here and provide as much detail as possible. Thanks!
Activity
fabian-guerra commentedon Dec 22, 2017
Hi, @michealbeatty. Thank you for using Mapbox. I am sorry to hear you are having some issues. Could you please add a code snipet or test app we could use to track the problem?
michealbeatty commentedon Dec 22, 2017
There's really not much to it, I have a scene with three buttons which segue to a scene which contains a map view . I've tried making the mapviewcontroller the initial view controller and removed all but the example code and get the same error
Here is the full error text
michealbeatty commentedon Dec 22, 2017
OK, this is strange. After several days of trying to figure this out, launching on the simulator and on a real device multiple times with no success, I launched in the simulator, then left it. When I returned an hour or so later, the same error was in the debug console and the LLDB server had crashed, but the application was running and I've been able to relaunch a number of times without the issue re-occuring.
fabian-guerra commentedon Dec 22, 2017
@michealbeatty I'm closing this as it looks it's working now.
friedbunny commentedon Dec 22, 2017
Do you have exception breakpoints enabled? The first-run database creation flow catches a SQLite exception (Code 14,
SQLITE_CANTOPEN) and then creates the database. This is not a crash, though folks frequently interpret it as one, e.g., #9761.michealbeatty commentedon Dec 23, 2017
@friedbunny I do have exception breakpoints enabled so what you siggest is probably what was happening. Sure seemed like a crash to me.
Thanks for sharing and teaching me something new.
TimmyBest commentedon May 1, 2018
{com.mapbox.mbgl.DefaultFileSour}[Database]: cannot open file at line 40840 of [2b0954060f] (Code 14)
Just started happening after some random re-install of the app. MAJOR BUG
Hackiest solution:
friedbunny commentedon May 1, 2018
Hi @TimmyBest — if you’re seeing a major bug (as opposed to having breakpoints enabled, which is how this specific issue was resolved), we’d love to try and fix it. If that’s the case, please open a new issue here and provide as much detail as possible. Thanks!