Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25519

iOS: App can crash with unhandled Analytics SQLite error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.5.1, Release 7.0.0, Release 6.3.0
    • Fix Version/s: Release 7.0.0
    • Component/s: iOS
    • Environment:

      TiSDK 6.3.0
      Xcode 9.1
      OSX/iOS 11

      Description

      I got the following Stacktrace when starting an app.

      [ERROR] :  The application has crashed with an uncaught exception 'PLSqliteException'.
      [ERROR] :  Reason:
      [ERROR] :  Attempted to access non-NSString * column as NSString *.
      [ERROR] :  Stack trace:
      [ERROR] :  0   CoreFoundation                      0x0000000181bd9d04 <redacted> + 124
      [ERROR] :  1   libobjc.A.dylib                     0x0000000180e28528 objc_exception_throw + 56
      [ERROR] :  2   CoreFoundation                      0x0000000181bd9c4c <redacted> + 0
      [ERROR] :  3   Stapler                             0x0000000102e32f30 Stapler + 4190000
      [ERROR] :  4   Stapler                             0x0000000102e2b948 Stapler + 4159816
      [ERROR] :  5   libdispatch.dylib                   0x000000018155d048 <redacted> + 16
      [ERROR] :  6   libdispatch.dylib                   0x0000000181599ea8 <redacted> + 56
      [ERROR] :  7   Stapler                             0x0000000102e2b850 Stapler + 4159568
      [ERROR] :  8   Stapler                             0x0000000102e2ff18 Stapler + 4177688
      [ERROR] :  9   libdispatch.dylib                   0x000000018155d088 <redacted> + 24
      [ERROR] :  10  libdispatch.dylib                   0x000000018155d048 <redacted> + 16
      [ERROR] :  11  libdispatch.dylib                   0x000000018159b1c0 <redacted> + 520
      [ERROR] :  12  libdispatch.dylib                   0x000000018159bb30 <redacted> + 340
      [ERROR] :  13  libdispatch.dylib                   0x000000018159c528 <redacted> + 380
      [ERROR] :  14  libdispatch.dylib                   0x00000001815a45c4 <redacted> + 640
      [ERROR] :  15  libsystem_pthread.dylib             0x0000000181802fd0 _pthread_wqthread + 932
      [ERROR] :  16  libsystem_pthread.dylib             0x0000000181802c20 start_wqthread + 4
      -- End application log -------------------------------------------------------
      

      Further investigation showed issue had to do with analytics. Attached the analytics.db file which caused the issue.

      It started happening after the phone went in airplane mode.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              topener Rene Pot
              Reviewer:
              Jan Vennemann
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5981
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code