Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Crash when only first launch after installed an app. #10264

Closed

Description

@noramimiyuma

Platform:
iPhone7 iOS 11.0.3

Mapbox SDK version:
ios-v3.7.0-beta.2

Steps to trigger behavior

  1. In advance, If the application has already been installed, uninstall it.
  2. Build and Run the app.
  3. Load the viewController what MGLMapView is used.
  4. Crash while loading the viewContoller.
  5. However, it will operate normally on the second and following launches.

2017-10-24 11 31 42

Activity

  1. added
    iOS
    on Oct 24, 2017
  2. noramimiyuma commented on Oct 25, 2017

    @noramimiyuma
    Author

    I append more details below.

    The local databases create on first launch the app.
    At that time, the following information and error are output.

    [ERROR] {}[Database]: no such table: cfurl_cache_response (Code 1)
    [INFO] {com.mapbox.mbgl.DefaultFileSour}[Database]: cannot open file at line 38280 of [0e5ffd9123] (Code 14)
    [INFO] {com.mapbox.mbgl.DefaultFileSour}[Database]: [0e5ffd9123]:38280: (3) open(/Users/***/****/****/.mapbox/cache.db) -  (Code 14)
    

    In addition, it outputs information on the Google Analytics library database. (Google Analytics also coexists with this my project)

    [INFO] {GAIThread}[Database]: statement aborts at 12: [SELECT name FROM sqlite_master WHERE type='table' AND name=?] database schema has changed (Code 17)
    

    Furthermore, at the second launch

    [INFO] {}[Database]: recovered 82 frames from WAL file /Users/***/***/***/Cache.db-wal (Code 283)
    [INFO] {GAIThread}[Database]: recovered 12 frames from WAL file /Users/***/***/***/***/Library/googleanalytics-v2.sql-wal (Code 283)
    [INFO] {GAIThread}[Database]: recovered 29 frames from WAL file /Users/***/***/***/***/Library/googleanalytics-v3.sql-wal (Code 283)
    
  3. boundsj commented on Oct 25, 2017

    @boundsj
    Contributor

    @noramimiyuma I think these look like normal exceptions that happen on the first run related to the underlying database that is used by our Maps SDK's core implementation.

    Is this really a "crash" or do you have an all exceptions breakpoint set so that you are stopping in the debugger? I'm not able to reproduce an actual crash. Also, thanks for helping us test our beta releases! Please make sure you are on the latest one that is now https://github.com/mapbox/mapbox-gl-native/releases/tag/ios-v3.7.0-beta.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    iOSneeds information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions