{ "id": "111309", "key": "TIMOB-13099", "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": "15487", "description": "2013 Sprint 10 Core", "name": "2013 Sprint 10 Core", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-05-13T20:18:43.000+0000", "created": "2013-03-18T14:22:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "broadcastReceiver", "exalture", "module", "titanium" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T17:57:18.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "App crashes when we create any UI component inside the eventFired from this particular module and trying to access UI component method after pressing back button and launching again.\r\n\r\nsample app and module code is attached.\r\n\r\nSteps:\r\n\r\n1: Launch the app in android any version (preferred is 4.2 or 2.2).\r\n2: click on Add device button.\r\n3: Click on red view add and an alert will be shown, click ok.\r\n4: press the back button, and app will go in background.\r\n5: launch the app again.\r\n6: Press the Add Device button again.\r\n7: App crashes.\r\n\r\nAnother thing to try.\r\n\r\n1: Go to sample app's app.js at line number 71-72 and comment the view1 addEventListener.\r\n2: Launch the app again and now repeat the above process.\r\n3: app won't crash.", "attachment": [ { "id": "36384", "filename": "addEventListener1.zip", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-18T14:22:26.000+0000", "size": 829983, "mimeType": "application/zip" }, { "id": "36385", "filename": "TestModule.zip", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-18T14:22:26.000+0000", "size": 1656149, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: In a module, using UI component method on callback from a broadcast receiver event causes crash", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, Android Module, Android", "comment": { "comments": [ { "id": "248600", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nCannot reproduce \r\n\r\nTested with\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\nAndroid Emulator: Android SDK version: 2.2 ", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T11:00:14.000+0000", "updated": "2013-04-22T11:00:14.000+0000" }, { "id": "250758", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce the issue each time on android 2.2.2.Once it got reproduced in fourth attempt for 3.0.2.GA build only but never after that.\r\nEnvironment used for verification-\r\nSDK - 3.0.2.GA,3.1.0.GA,3.1.1.v20130503173050\r\nAppcelerator studio - 3.1.1.201305031846\r\nDevice : LG-P970 Android 2.2.2\r\n\r\nBut it was reproducible every time on android 4.1 with below environment\r\nSDK - 3.0.2.GA,3.1.0.GA,3.1.1.v20130503173050\r\nAppcelerator studio - 3.1.1.201305031846\r\nDevice : nexus 7 Android 4.1 \r\n\r\nSame behaviour as above is shown on titanium studio build : 3.1.0.201304171607.Working fine for android 2.2.2 but crashing on android 4.1.", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-08T08:42:40.000+0000", "updated": "2013-05-08T09:31:04.000+0000" }, { "id": "251605", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug is not valid. When using broadcast receivers the runtime needs to be kept alive from the module end. You would need to call something like \t\tKrollRuntime.incrementServiceReceiverRefCount(); when registering, and then the corresponding when you want to ungregister the broadcast receiver.\r\n\r\nAlso, there isn't really a need to create a module for broadcast receivers. You can accomplish the same thing with a titanium API: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.BroadcastReceiver", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-13T20:18:43.000+0000", "updated": "2013-05-13T20:18:43.000+0000" }, { "id": "251782", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing it as per the comment by Allen, its being invalid.", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-14T13:21:47.000+0000", "updated": "2013-05-14T13:21:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }