{ "id": "63123", "key": "TIMOB-2491", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "11229", "name": "Release 1.5.0 M04", "archived": true, "released": true, "releaseDate": "2010-12-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:15.000+0000", "created": "2011-04-15T03:21:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "analytics", "ios", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:15.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": "{html}

seen using 1.5.0 faa27c7, ipod and ipad, sim or device

\n

1.launch KS, connect to console
\n2.tap the home button to background the app and check for\noutput

\n

results:
\nFri Dec  3 08:54:49 Mr-Pink-iPod\nUIKitApplication:com.appcelerator.KitchenSink[0xd50f][2572] :\n[ERROR] Will re-queue analytics

\n

Fri Dec  3 08:54:49 Mr-Pink-iPod KitchenSink[2572] :\n[ERROR] A SQLite database error occurred on\ndatabase\n'/var/mobile/Applications/AB87BA17-8362-4618-A03B-821285153A24/Library/Application\nSupport/analytics/analytics.db': Error\nDomain=com.plausiblelabs.pldatabase Code=2 \"An error occurred\nexecuting an SQL update.\" UserInfo=0x4a4680\n{com.plausiblelabs.pldatabase.error.vendor.code=1,\nNSLocalizedDescription=An error occurred executing an SQL update.,\ncom.plausiblelabs.pldatabase.error.query.string=BEGIN DEFERRED,\ncom.plausiblelabs.pldatabase.error.vendor.string=cannot start a\ntransaction within a transaction} (SQLite #1: cannot start\na transaction within a transaction) (query: 'BEGIN DEFERRED')

\n

Fri Dec  3 08:54:49 Mr-Pink-iPod\nUIKitApplication:com.appcelerator.KitchenSink[0xd50f][2572] :\n[DEBUG] attempt to send analytics event but\nno network. will try again in 15 seconds

\n

not seen using 1.4.2

{html}", "attachment": [], "flagged": false, "summary": "iOS: analytics error when backgrounding app ", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128621", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Probably expected behavior, as part of better error handling for\n1.5.0. But I'll add in an error logging flag for analytics so this\ncan be suppressed if wanted.

\n

Note that analytics events are now requeued on SQL errors now as\nwell - previously they were just dropped.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:09.000+0000", "updated": "2011-04-15T03:21:09.000+0000" }, { "id": "128622", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [bdcec24a71089760ab74af83339aff6f8dad6e9f])\n[#2491 state:fixed-in-qa] Rollback analytics\ntransactions before re-queuing on network errors. \nhttps://github.com/appcelerator/titanium_mobile/commit/bdcec24a7108...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:09.000+0000", "updated": "2011-04-15T03:21:09.000+0000" }, { "id": "128623", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

unable to repro using Titanium SDK version: 1.5.0 (12/04/10\n08:46 b7b9e78) and 4gt ipod touch running 4.2.1

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:09.000+0000", "updated": "2011-04-15T03:21:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }