{ "id": "152279", "key": "TIMOB-19773", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-08-09T21:35:34.000+0000", "created": "2015-10-23T06:24:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "analytics" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-15T19:57:37.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "After a few successful builds to my iPhone 6S the new [3D Touch Sample App|https://github.com/appcelerator-developer-relations/appc-sample-3dtouch] started crashing when launched. The only way to fix it was to remove the app and then redeploy it. Replacing the app with a new build without removing it didn't resolve it.\r\n\r\nA full crash log attached, which makes it more clear this is related to our analytics.\r\n\r\nOur analytics should me as fool-proof as we can make it. We should catch all exceptions to prevent the app from crashing even though that means analytics is no longer working.\r\n\r\n*Console*\r\n\r\n{code}\r\n-- Start application log -----------------------------------------------------\r\n[DEBUG] Reading stylesheet from: /var/mobile/Containers/Bundle/Application/9A562E87-3A7A-47B9-A9D7-F2B7FD09BFB4/3D Touch.app/stylesheet.plist\r\n[INFO] 3D Touch/1.0.0 (5.1.0.c5877a0)\r\n[DEBUG] Loading: /var/mobile/Containers/Bundle/Application/9A562E87-3A7A-47B9-A9D7-F2B7FD09BFB4/3D Touch.app/app.js, Resource: app_js\r\n[ERROR] Error occurred calling next on a PLSqliteResultSet. SQLite error: 'database disk image is malformed' for 'SELECT * from event_sequence'\r\n[DEBUG] Loading: /var/mobile/Containers/Bundle/Application/9A562E87-3A7A-47B9-A9D7-F2B7FD09BFB4/3D Touch.app/alloy.js, Resource: alloy_js\r\n[ERROR] The application has crashed with an uncaught exception 'PLSqliteException'.\r\n[ERROR] Reason:\r\n[ERROR] occurred calling next on a PLSqliteResultSet. SQLite error: 'database disk image is malformed' for 'SELECT * from event_sequence'\r\n[ERROR] Stack trace:\r\n[ERROR]\r\n[ERROR] 0 CoreFoundation 0x000000018296cf5c + 124\r\n[ERROR] 1 libobjc.A.dylib 0x0000000197e5bf80 objc_exception_throw + 56\r\n[ERROR] 2 CoreFoundation 0x000000018296cea4 + 0\r\n[ERROR] 3 3D Touch 0x000000010050ed94 3D Touch + 4517268\r\n[ERROR] 4 3D Touch 0x0000000100509628 3D Touch + 4494888\r\n[ERROR] 5 libdispatch.dylib 0x0000000198649770 + 16\r\n[ERROR] 6 libdispatch.dylib 0x00000001986549c4 + 100\r\n[ERROR] 7 3D Touch 0x0000000100509548 3D Touch + 4494664\r\n[ERROR] 8 3D Touch 0x000000010050a2d0 3D Touch + 4498128\r\n[ERROR] 9 3D Touch 0x000000010050c2bc 3D Touch + 4506300\r\n[ERROR] 10 libdispatch.dylib 0x00000001986497b0 + 24\r\n[ERROR] 11 libdispatch.dylib 0x0000000198649770 + 16\r\n[ERROR] 12 libdispatch.dylib 0x000000019865575c + 864\r\n[ERROR] 13 libdispatch.dylib 0x000000019864d274 + 464\r\n[ERROR] 14 libdispatch.dylib 0x0000000198649770 + 16\r\n[ERROR] 15 libdispatch.dylib 0x0000000198657bb0 + 2140\r\n[ERROR] 16 libdispatch.dylib 0x000000019865734c + 112\r\n[ERROR] 17 libsystem_pthread.dylib 0x000000019885d478 _pthread_wqthread + 1092\r\n[ERROR] 18 libsystem_pthread.dylib 0x000000019885d028 start_wqthread + 4\r\n[ERROR] *** Terminating app due to uncaught exception 'PLSqliteException', reason: 'Error occurred calling next on a PLSqliteResultSet. SQLite error: 'database disk image is malformed' for 'SELECT * from event_sequence''\r\n[ERROR] *** First throw call stack:\r\n[ERROR] (0x18296cf5c 0x197e5bf80 0x18296cea4 0x10050ed94 0x100509628 0x198649770 0x1986549c4 0x100509548 0x10050a2d0 0x10050c2bc 0x1986497b0 0x198649770 0x19865575c 0x19864d274 0x198649770 0x198657bb0 0x19865734c 0x19885d478 0x19885d028)\r\n^C\r\nFokkes-MacBook-Pro:appc-sample-3dtouch fokkezb$ tn iphone-fokke\r\n\r\n-- End application log -------------------------------------------------------\r\n{code}", "attachment": [ { "id": "57115", "filename": "3D Touch 23-10-15 07-58.crash", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-23T06:24:32.000+0000", "size": 65606, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: Sample app crashes on start with SQLite error related to analytics", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.0.v20151019145227", "closedSprints": [ { "id": 555, "state": "closed", "name": "2016 Sprint 1 SDK", "startDate": "2016-01-02T01:31:50.127Z", "endDate": "2016-01-16T01:31:00.000Z", "completeDate": "2016-01-18T00:52:43.848Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "369025", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fokkezb] Are sure sure it is related to analytics and not an error of your models?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-04T22:57:01.000+0000", "updated": "2015-11-04T22:57:01.000+0000" }, { "id": "369079", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "It might be the models that somehow caused the database disk to be malformed, but the query showing is form analytics:\r\nhttps://github.com/appcelerator/aps_sdk/blob/0a79bba287b4b9a2cbcca46d584634035db9c49f/ios/support/analytics/APSAnalytics/APSAnalytics.m#L599\r\n\r\nThe analytics module (and others we might inject) should never cause the app to crash. We should catch this, warn maybe but not crash.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-05T09:41:57.000+0000", "updated": "2015-11-05T09:41:57.000+0000" }, { "id": "370957", "author": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "body": "This is extremely serious this is happening in my production app. I am getting phone call around from around the world that they have unsynchronised work and the app will not open for them to synchronise (my app runs offline for the Construction industry).\r\n\r\n\r\n\r\n[INFO] : *AppNameRemoved*/4.124.4 (5.0.2.92c2265)\r\n[DEBUG] : Loading: /var/mobile/Containers/Bundle/Application/9A26E98C-C9A0-4221-9274-E9ABEC559180/AppNameRemoved.app/app.js, Resource: app_js\r\n[ERROR] : The application has crashed with an uncaught exception 'PLSqliteException'.\r\n[ERROR] : Reason:\r\n[ERROR] : Attempted to access non-NSString * column as NSString *.\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x000000018621cf48 + 124\r\n[ERROR] : 1 libobjc.A.dylib 0x000000019ae8ff80 objc_exception_throw + 56\r\n[ERROR] : 2 CoreFoundation 0x000000018621ce90 + 0\r\n[ERROR] : 3 AppNameRemoved 0x00000001005da92c AppNameRemoved + 5744940\r\n[ERROR] : 4 AppNameRemoved 0x00000001005d3948 AppNameRemoved + 5716296\r\n[ERROR] : 5 libdispatch.dylib 0x000000019b6a16a8 + 16\r\n[ERROR] : 6 libdispatch.dylib 0x000000019b6ac954 + 100\r\n[ERROR] : 7 AppNameRemoved 0x00000001005d3850 AppNameRemoved + 5716048\r\n[ERROR] : 8 AppNameRemoved 0x00000001005d78a4 AppNameRemoved + 5732516\r\n[ERROR] : 9 libdispatch.dylib 0x000000019b6a16e8 + 24\r\n[ERROR] : 10 libdispatch.dylib 0x000000019b6a16a8 + 16\r\n[ERROR] : 11 libdispatch.dylib 0x000000019b6ad6ec + 864\r\n[ERROR] : 12 libdispatch.dylib 0x000000019b6a51ac + 464\r\n[ERROR] : 13 libdispatch.dylib 0x000000019b6af5bc + 728\r\n[ERROR] : 14 libdispatch.dylib 0x000000019b6af2dc + 112\r\n[ERROR] : 15 libsystem_pthread.dylib 0x000000019b8c1470 _pthread_wqthread + 1092\r\n[ERROR] : 16 libsystem_pthread.dylib 0x000000019b8c1020 start_wqthread + 4\r\n[ERROR] : *** Terminating app due to uncaught exception 'PLSqliteException', reason: 'Attempted to access non-NSString * column as NSString *.'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (0x18621cf48 0x19ae8ff80 0x18621ce90 0x1005da92c 0x1005d3948 0x19b6a16a8 0x19b6ac954 0x1005d3850 0x1005d78a4 0x19b6a16e8 0x19b6a16a8 0x19b6ad6ec 0x19b6a51ac 0x19b6af5bc 0x19b6af2dc 0x19b8c1470 0x19b8c1020)\r\n[TRACE] : Uploaded tiapp metadata with Appcelerator Platform!\r\n", "updateAuthor": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "created": "2015-11-20T05:17:56.000+0000", "updated": "2015-11-20T05:18:11.000+0000" }, { "id": "370958", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~mark.henderson@snagr.co.uk] That issue does not look like the above described one. {{Attempted to access non-NSString * column as NSString *}} indicates, that you tried to access a value as string although it isn't. Also note, that this issue seems related to 5.1.0, which is not released, yet.\r\n\r\nBut we still want to fix this, can you track this down to a part of your app and provide demo code to reproduce?\r\n\r\nEDIT: If you use Ti.Database sql (not alloy models as the above issue), please follow [this guide|http://www.dosomethinghere.com/2013/02/20/fixing-the-sqlite-error-the-database-disk-image-is-malformed/] to repair your sqlite database, it has been recommended by the native ios community as well.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-20T05:21:16.000+0000", "updated": "2015-11-20T05:24:54.000+0000" }, { "id": "370961", "author": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "body": "@Hans, this isn't in my app code, it happens immediately.. This is why I think it is related to this issue.\r\n\r\nTo test I stopped loading my normal window and instead get app.js to load a blank window.. Same problem, immediate crash:\r\n\r\n- Start application log -----------------------------------------------------\r\n[DEBUG] : Reading stylesheet from: /var/mobile/Containers/Bundle/Application/D8EC395A-ABB6-4C93-ACB4-FAAC20D9BC6E/xxxx.app/stylesheet.plist\r\n[DEBUG] : - changing property masksToBounds in transform-only layer, will have no effect\r\n[DEBUG] : - changing property masksToBounds in transform-only layer, will have no effect\r\n[DEBUG] : - changing property masksToBounds in transform-only layer, will have no effect\r\n[INFO] : xxxx/4.124.4 (5.0.2.92c2265)\r\n[DEBUG] : Loading: /var/mobile/Containers/Bundle/Application/D8EC395A-ABB6-4C93-ACB4-FAAC20D9BC6E/xxxx.app/app.js, Resource: app_js\r\n[ERROR] : The application has crashed with an uncaught exception 'PLSqliteException'.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-20T05:36:18.000+0000", "updated": "2015-11-20T05:39:53.000+0000" }, { "id": "370962", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Alright. Don't get me wrong, we take this of course serious. Can you provide a demo code that only holds the the code that crashes the project? And if is required no code, send the project anyway, along with the exact version you are using. \r\n\r\nEDIT: Also edited your comment to hide the real app name.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-20T05:39:08.000+0000", "updated": "2015-11-20T05:40:18.000+0000" }, { "id": "370963", "author": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "body": "@Hans,\r\n\r\nVersion 5.0.2GA of the SDK. \r\n\r\nThis has happened on one device only. I was in the middle of a presentation, the iPad wasn't being used or connected to an internet connection at the time and it just randomly crashed. It then wouldn't open at all. I am now briefly back at the office before I have to go to another presentation requiring the iPad.\r\n\r\nI cannot send my business's app code to you, I also cannot get the iPA off this iPad to send to you, or the corrupted analytics.db or whatever SQLite database Appcelerator might use internally. I can imagine this is the end of the road for being able to help my issue any further. As soon as I remove / re-add the app everything will be fine. \r\n\r\nIf this is the same issue that has been happening to clients then they are losing work removing /re-adding.. :(", "updateAuthor": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "created": "2015-11-20T05:47:53.000+0000", "updated": "2015-11-20T05:47:53.000+0000" }, { "id": "372133", "author": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "body": "This issue is killing me. I have numerous clients around the world reporting this issue in my production app. I cannot re-create it as I can't cause the initial crash. I'm convinced it's caused by an Appcelerator analytics db because the app will now continue to crash forever on load.\r\n\r\nThis is the worst thing that can happen as my users now have un-synchronised data that cannot be accessed and a dead app that has to be removed and re-added. I am losing a ton of clients over this.\r\n\r\nI cannot re-create the issue as I don't know when analytics is called or what is causing the initial crash.\r\n\r\nOne thing to note I am a heavy user of SQLite so perhaps there is an open connection to my database and to the analytics db that causes a clash / issue?\r\n\r\nI don't think the problem is with my code as when the app is launched there is nothing for quite a few windows that uses SQLite in my app, yet it will forever crash on launch.\r\n\r\nIs there a way to build the app with no analytics.db or something like that?", "updateAuthor": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "created": "2015-12-04T03:51:35.000+0000", "updated": "2015-12-04T03:51:35.000+0000" }, { "id": "372134", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "body": "I had this exact issue on my personal device as reported with the log output:\r\n\r\n{noformat}\r\n[ERROR] Error occurred calling next on a PLSqliteResultSet. SQLite error: 'database disk image is malformed' for 'SELECT * from event_sequence'\r\n{noformat}\r\n\r\nThe app crashed immediately upon launching.\r\n\r\nI saw the log output and guessed that it was the analytics causing the issue, because I do not have an sqlite db in my app. \r\n\r\nSo I went into tiapp.xml and changed the following line from 'true' to 'false'.\r\n\r\n{noformat}\r\nfalse\r\n{noformat}\r\n\r\nI then rebuilt and updated the app on the device - and the issue was resolved.\r\n\r\nSo @Mark Henderson - just change that line in your app and push out an update to users. If your logged error is the same and indeed caused by the analytics, then this should fix it.", "updateAuthor": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2015-12-04T03:58:10.000+0000", "updated": "2015-12-04T03:59:55.000+0000" }, { "id": "372135", "author": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "body": "Thanks @mdelmarter I had just stumbled upon that, so it's great that it's likely to provide a permanent fix!", "updateAuthor": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "created": "2015-12-04T04:27:07.000+0000", "updated": "2015-12-04T04:27:07.000+0000" }, { "id": "373188", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs here: https://github.com/appcelerator/aps_sdk/pull/283\r\nhttps://github.com/appcelerator/titanium_mobile/pull/7608", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-17T08:21:32.000+0000", "updated": "2016-01-04T03:05:53.000+0000" }, { "id": "373590", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "New analytics PR: https://github.com/appcelerator/aps_sdk/pull/286\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-29T04:58:50.000+0000", "updated": "2016-01-04T02:58:54.000+0000" }, { "id": "373992", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-07T07:24:07.000+0000", "updated": "2016-01-07T07:24:07.000+0000" }, { "id": "391784", "author": { "name": "aideengibson@yahoo.co.uk", "key": "aideengibson@yahoo.co.uk", "displayName": "Aideen Gibson", "active": true, "timeZone": "Europe/London" }, "body": "This is a really serious issue - I got the same problem with my App on various testing devices with clients. Really stressed me out. I am using Appcelerator Studio build 4.5.0.201602170821 . @mdelmarter you really saved my life - I changed Analytics to false and rebuilt and installed App on the device without having to remove it! Thank you!\r\n", "updateAuthor": { "name": "aideengibson@yahoo.co.uk", "key": "aideengibson@yahoo.co.uk", "displayName": "Aideen Gibson", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-28T06:21:57.000+0000", "updated": "2016-07-28T06:21:57.000+0000" }, { "id": "391799", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey AIdeen, the better that it has been fixed. Did you try the latest 5.4.0 build, yet to verify it works now?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-28T07:03:21.000+0000", "updated": "2016-07-28T07:03:21.000+0000" }, { "id": "392689", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Attempted to recreate the crash, but was unable to do so, even after 20 launch attempts. [~aideengibson@yahoo.co.uk] are you able to verify whether the latest 5.4.0 build has fixed the issue? it would be greatly appreciated to receive your feedback. \r\n\r\nTested On:\r\niPhone 6S (9.3.3) Device & iPhone 6 Plus (8.3) Device\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.4.0.v20160804185318\r\nAppc Studio: 4.7.0.201607250649\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-40\r\nXcode 7.3.1\r\nNode v4.4.7", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-08T23:52:01.000+0000", "updated": "2016-08-08T23:52:01.000+0000" }, { "id": "392767", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Closing this ticket as unable to reproduce, If you are still experiencing this issue, please leave a comment and we will reopen the ticket for further investigation.", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-09T21:35:23.000+0000", "updated": "2016-08-09T21:35:23.000+0000" }, { "id": "423906", "author": { "name": "Ian.taylor@fraigneux.com", "key": "ian.taylor@fraigneux.com", "displayName": "Ian Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've recently encountered this same issue with a production iOS app. The app was crashing on start-up on just some devices. I spotted this in the device log:\r\n\r\nThread 2 name: Dispatch queue: com.appcelerator.anlaytics.databaseQueue\r\nThread 2 Crashed:\r\n\r\nAnd this in a console log:\r\n\r\n[ERROR] The application has crashed with an uncaught exception 'PLSqliteException'.\r\nReason:\r\nAttempted to access non-NSString * column as NSString *.\r\n\r\nDisabling analytics as described above solved the problem!\r\n\r\nThe app does use a database, but to try and rule this out I replaced my normal start-up code with a very basic window. It didn't help.\r\n\r\nOne other (strange?) thing I noticed:\r\n\r\n1. Close the app from multi-tasking\r\n2. Try to open the app (it crashes)\r\n3. Look at the app in multi-tasking - you see the window which was open when the app was last running successfully (which is not the same window as when the app first opens).\r\n\r\nSo closing the app from multi-tasking didn't seem to actually close it..? May be related, or may not be.", "updateAuthor": { "name": "Ian.taylor@fraigneux.com", "key": "ian.taylor@fraigneux.com", "displayName": "Ian Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T15:41:05.000+0000", "updated": "2017-07-11T15:41:05.000+0000" }, { "id": "430724", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Managed to reproduce, also disabled analytics and it works. I have the database file in question locally, I'll try to attach it", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-15T17:42:17.000+0000", "updated": "2017-11-15T17:42:17.000+0000" }, { "id": "430725", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I seem not to be able to upload a file here, I have it with SDK 6.3.0 on a recent file. I too use a local SQLite file, but disabling analytics did the trick for me. \r\nWhen in need of the file, please just contact me and I can email it.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-15T17:47:44.000+0000", "updated": "2017-11-15T17:47:44.000+0000" }, { "id": "430729", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "My trace:\r\n\r\n[code]\r\n[ERROR] : The application has crashed with an uncaught exception 'PLSqliteException'.\r\n[ERROR] : Reason:\r\n[ERROR] : Attempted to access non-NSString * column as NSString *.\r\n[ERROR] : Stack trace:\r\n[ERROR] : 0 CoreFoundation 0x0000000181bd9d04 + 124\r\n[ERROR] : 1 libobjc.A.dylib 0x0000000180e28528 objc_exception_throw + 56\r\n[ERROR] : 2 CoreFoundation 0x0000000181bd9c4c + 0\r\n[ERROR] : 3 Stapler 0x0000000102e32f30 Stapler + 4190000\r\n[ERROR] : 4 Stapler 0x0000000102e2b948 Stapler + 4159816\r\n[ERROR] : 5 libdispatch.dylib 0x000000018155d048 + 16\r\n[ERROR] : 6 libdispatch.dylib 0x0000000181599ea8 + 56\r\n[ERROR] : 7 Stapler 0x0000000102e2b850 Stapler + 4159568\r\n[ERROR] : 8 Stapler 0x0000000102e2ff18 Stapler + 4177688\r\n[ERROR] : 9 libdispatch.dylib 0x000000018155d088 + 24\r\n[ERROR] : 10 libdispatch.dylib 0x000000018155d048 + 16\r\n[ERROR] : 11 libdispatch.dylib 0x000000018159b1c0 + 520\r\n[ERROR] : 12 libdispatch.dylib 0x000000018159bb30 + 340\r\n[ERROR] : 13 libdispatch.dylib 0x000000018159c528 + 380\r\n[ERROR] : 14 libdispatch.dylib 0x00000001815a45c4 + 640\r\n[ERROR] : 15 libsystem_pthread.dylib 0x0000000181802fd0 _pthread_wqthread + 932\r\n[ERROR] : 16 libsystem_pthread.dylib 0x0000000181802c20 start_wqthread + 4\r\n-- End application log -------------------------------------------------------\r\n[code]", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-15T19:55:14.000+0000", "updated": "2017-11-15T19:55:14.000+0000" }, { "id": "430730", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "sqlite file: https://www.dropbox.com/s/fohtcnttoobjxor/analytics.db?dl=0", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-15T19:57:37.000+0000", "updated": "2017-11-15T19:57:37.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }