{ "id": "89665", "key": "AC-2727", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-04-08T07:47:26.000+0000", "created": "2012-04-07T00:28:53.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When the button is pressed on Android phone, the app will freeze upon running again with the following conditions:\r\n\r\n- the app make use of the GPS method calls in Ti.Geolocation.* (e.g.: Ti.Geolocation.addEventListener('location', function(e))\r\n\r\n- the app removes the location event handler upon Android Activity's \"destroy\" event, e.g.:\r\n\r\n\t\tTi.Android.currentActivity.addEventListener('destroy', function(e) {\r\n Titanium.Geolocation.removeEventListener('location', locationCallback)...\r\n\r\n\r\nWith the above conditions, after the app is successfully launched in Android phone, pressing the button will terminate the app, causing the \"destroy\" event to fire. In Android's DDMS log it shows: gps_engine_status_update: called release_wakelock_cb\r\n\r\n- now re-launch the app in Android phone, the app will freeze.\r\n\r\nTo reproduce this behaviour with Kitchen Sink, run KS on actual Android device > \"Phone\" tab > \"Geolocation\", after the GPS is active, press button twice to quit app, watch for \"gps_engine_status_update\" in DDMS log, run KS again.\r\n", "attachment": [], "flagged": false, "summary": "GPS app freezes when restarting on Android", "creator": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android v8 SDK 1.8.2", "comment": { "comments": [ { "id": "190245", "author": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When the app failed to run again (or hangs), the following are shown in DDMS log:\r\n\r\n...\r\nActivityManager Launch timeout has expired, giving up wake lock!\r\nActivityManager Activity idle timeout for HistoryRecord{ \r\n...\r\n\r\n", "updateAuthor": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-07T00:34:08.000+0000", "updated": "2012-04-07T00:34:08.000+0000" }, { "id": "190252", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@Sam Huang What is the Android OS this was tested on?", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-07T12:43:29.000+0000", "updated": "2012-04-07T12:43:29.000+0000" }, { "id": "190254", "author": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OS detail:\r\n\r\nDevice name: Samsung Galaxy S\r\nModel number: GT-I9000\r\nAndroid version: 2.3.7\r\nKernel Version: 2.6.35.12-gdf10700\r\nCPU: ARMv7 rev 2(v7)\r\n", "updateAuthor": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-07T14:59:03.000+0000", "updated": "2012-04-07T14:59:03.000+0000" }, { "id": "190268", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h6.Tested on\r\nLG Ally Android 2.2 - Not reproduceable in Android PROYO SDK (2.2)\r\n\r\nThis is tied to known issues on Android GINGERBREAD SDK (2.3)\r\nhttp://code.google.com/p/android/issues/detail?id=20707\r\nhttp://code.google.com/p/android/issues/detail?id=21376\r\n", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-08T07:46:53.000+0000", "updated": "2012-04-08T07:46:53.000+0000" }, { "id": "191051", "author": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I see the same issue on my HTC Nexus One.\r\nAndroid 2.3.7", "updateAuthor": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-14T17:54:25.000+0000", "updated": "2012-04-14T17:54:25.000+0000" }, { "id": "191052", "author": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also, this occurs if you use the Ti.Geolocation.PROVIDER_NETWORK as well as the Ti.Geolocation.PROVIDER_GPS providers. ", "updateAuthor": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-14T17:58:08.000+0000", "updated": "2012-04-14T17:58:08.000+0000" }, { "id": "191053", "author": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Thomas, have you tried the LocaCheck project? See if you can load this app onto your HTC Nexus One and check if it subjects to the same issue with GPS?", "updateAuthor": { "name": "huang.c.sam@gmail.com", "key": "huang.c.sam@gmail.com", "displayName": "Sam Huang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-14T18:30:32.000+0000", "updated": "2012-04-14T18:30:32.000+0000" }, { "id": "192175", "author": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Sam where can I find the LocaChek project? Also, the same issue happens when I access the Titanium Kitchen Sink:\r\nPhone -> Geolocation\r\n\r\nTo reproduce:\r\n\r\n1. Open Phone -> Geolocation\r\n2. Tap back button until app closes\r\n3. Open Phone -> Geolocation\r\n4. Tap back button until app closes\r\n5. Open Phone -> Geolocation\r\n\r\nAt this point the the app won't respond at startup anymore. This also happens not only in 1.8.2 but in 2.0.1.GA2 as well.", "updateAuthor": { "name": "tamsler", "key": "tamsler", "displayName": "Thomas Amsler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-21T12:52:23.000+0000", "updated": "2012-04-21T12:52:23.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }