{ "id": "97961", "key": "TIMOB-10251", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-08-09T07:58:47.000+0000", "created": "2012-07-25T05:40:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "19774", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "97528", "key": "TIMOB-10012", "fields": { "summary": "Android: App intermittently crashes on app restart", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-22T20:37:04.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": "h3. Problem\r\n\r\nWhen opening and closing the application repeatedly, eventually around the 4th or 5th time, the application crashes on opening.\r\n\r\nh3. Test Code:\r\n\r\n{code}\r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\n{code}\r\n\r\nh3. Test Case:\r\n\r\n1. Launch the application\r\n2. Close the application\r\n3. Repeat steps 1-2\r\n\r\nh3. Expected Behavior:\r\n\r\nThe application should get launched everytime.\r\n\r\nh3. Actual Behavior:\r\n\r\nAfter sometime the application will crash by providing a JNI crash log in ADB.\r\n\r\nI/DEBUG ( 5218): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\nI/DEBUG ( 5218): Build fingerprint: 'samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPQ:user/release-keys'\r\nI/DEBUG ( 5218): pid: 23387, tid: 23401 >>> com.example.TestMe <<<\r\nI/DEBUG ( 5218): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000013\r\nI/DEBUG ( 5218): r0 00000000 r1 00000000 r2 00000004 r3 510a5d40\r\nI/DEBUG ( 5218): r4 0010a358 r5 00000004 r6 416f8310 r7 001f0330\r\nI/DEBUG ( 5218): r8 4154c248 r9 416f8310 10 001f0328 fp 00000000\r\nI/DEBUG ( 5218): ip 510a5e28 sp 50b6dae0 lr 50c9ce74 pc 50cbc318 cpsr 60000010\r\nI/DEBUG ( 5218): d0 0000000000000000 d1 0000006443b1d556\r\nI/DEBUG ( 5218): d2 437e8000000f4240 d3 3ff0000000000000\r\nI/DEBUG ( 5218): d4 3ff0000000000000 d5 0006ea0000000000\r\nI/DEBUG ( 5218): d6 008e0ff000000000 d7 3eaaaaab3f800000\r\nI/DEBUG ( 5218): d8 0000000000000000 d9 0000000000000000\r\nI/DEBUG ( 5218): d10 0000000000000000 d11 0000000000000000\r\nI/DEBUG ( 5218): d12 0000000000000000 d13 0000000000000000\r\nI/DEBUG ( 5218): d14 0000000000000000 d15 0000000000000000\r\nI/DEBUG ( 5218): d16 0000000041553b80 d17 3ff0000000000000\r\nI/DEBUG ( 5218): d18 4028000000000000 d19 3ff0000000000000\r\nI/DEBUG ( 5218): d20 4197d78400000000 d21 bebbbc6c1a570a20\r\nI/DEBUG ( 5218): d22 3ff0000000000000 d23 3fede16b9c24a98f\r\nI/DEBUG ( 5218): d24 3e66376972bea4d0 d25 3fc39a09d078c69f\r\nI/DEBUG ( 5218): d26 0000000000000000 d27 0000000000000000\r\nI/DEBUG ( 5218): d28 0000000000000000 d29 0000000000000000\r\nI/DEBUG ( 5218): d30 0000000000000000 d31 0000000000000000\r\nI/DEBUG ( 5218): scr 80000012\r\nI/DEBUG ( 5218):\r\nI/DEBUG ( 5218): #00 pc 0014e318 /data/data/com.example.TestMe/lib/libkroll-v8.so\r\nI/DEBUG ( 5218): #01 lr 50c9ce74 /data/data/com.example.TestMe/lib/libkroll-v8.so\r\nI/DEBUG ( 5218):\r\nI/DEBUG ( 5218): code around pc:\r\nI/DEBUG ( 5218): 50cbc2f8 e2003003 e3530001 112fff1e e5103001 .0....S.../..0..\r\nI/DEBUG ( 5218): 50cbc308 e5d33007 e35300ac 0590000b e12fff1e .0....S......./.\r\nI/DEBUG ( 5218): 50cbc318 e5903013 e2032003 e3520001 1a000002 .0... ....R.....\r\nI/DEBUG ( 5218): 50cbc328 ea00000c e5903007 e5930017 e2003003 .....0.......0..\r\nI/DEBUG ( 5218): 50cbc338 e3530001 1afffffa e1a03a20 e1a03a03 ..S..... :...:..\r\nI/DEBUG ( 5218):\r\nI/DEBUG ( 5218): code around lr:\r\nI/DEBUG ( 5218): 50c9ce54 e08f1001 eb03d11b e3a01003 e1a00004 ................\r\nI/DEBUG ( 5218): 50c9ce64 e5945a3c ebffbce0 e59409fc eb007d28 >> com.example.TestMe <<<\r\nI/DEBUG ( 5218): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000013\r\nI/DEBUG ( 5218): r0 00000000 r1 00000000 r2 00000004 r3 5120fd40\r\nI/DEBUG ( 5218): r4 00231790 r5 00000004 r6 416d76f0 r7 00261fe8\r\nI/DEBUG ( 5218): r8 41728140 r9 416d76f0 10 00261fe0 fp 00000000\r\nI/DEBUG ( 5218): ip 5120fe28 sp 50bd7ae0 lr 50e06e74 pc 50e26318 cpsr 60000010\r\nI/DEBUG ( 5218): d0 0000000000000000 d1 0000006443b1d556\r\nI/DEBUG ( 5218): d2 437e8000000f4240 d3 3ff0000000000000\r\nI/DEBUG ( 5218): d4 3ff0000000000000 d5 0006ea0000000000\r\nI/DEBUG ( 5218): d6 008e0ff000000000 d7 3eaaaaab3f800000\r\nI/DEBUG ( 5218): d8 0000000000000000 d9 0000000000000000\r\nI/DEBUG ( 5218): d10 0000000000000000 d11 0000000000000000\r\nI/DEBUG ( 5218): d12 0000000000000000 d13 0000000000000000\r\nI/DEBUG ( 5218): d14 0000000000000000 d15 0000000000000000\r\nI/DEBUG ( 5218): d16 0000000041503f38 d17 43e0000000000000\r\nI/DEBUG ( 5218): d18 4028000000000000 d19 3ff0000000000000\r\nI/DEBUG ( 5218): d20 4197d78400000000 d21 bebbbc6c1a570a20\r\nI/DEBUG ( 5218): d22 3ff0000000000000 d23 3fede16b9c24a98f\r\nI/DEBUG ( 5218): d24 3e66376972bea4d0 d25 3fc39a09d078c69f\r\nI/DEBUG ( 5218): d26 0000000000000000 d27 0000000000000000\r\nI/DEBUG ( 5218): d28 0000000000000000 d29 0000000000000000\r\nI/DEBUG ( 5218): d30 0000000000000000 d31 0000000000000000\r\nI/DEBUG ( 5218): scr 80000012\r\nI/DEBUG ( 5218):\r\nI/DEBUG ( 5218): #00 pc 0014e318 /data/data/com.example.TestMe/lib/libkroll-v8.so\r\nI/DEBUG ( 5218): #01 lr 50e06e74 /data/data/com.example.TestMe/lib/libkroll-v8.so\r\nI/DEBUG ( 5218):\r\nI/DEBUG ( 5218): code around pc:\r\nI/DEBUG ( 5218): 50e262f8 e2003003 e3530001 112fff1e e5103001 .0....S.../..0..\r\nI/DEBUG ( 5218): 50e26308 e5d33007 e35300ac 0590000b e12fff1e .0....S......./.\r\nI/DEBUG ( 5218): 50e26318 e5903013 e2032003 e3520001 1a000002 .0... ....R.....\r\nI/DEBUG ( 5218): 50e26328 ea00000c e5903007 e5930017 e2003003 .....0.......0..\r\nI/DEBUG ( 5218): 50e26338 e3530001 1afffffa e1a03a20 e1a03a03 ..S..... :...:..\r\nI/DEBUG ( 5218):\r\nI/DEBUG ( 5218): code around lr:\r\nI/DEBUG ( 5218): 50e06e54 e08f1001 eb03d11b e3a01003 e1a00004 ................\r\nI/DEBUG ( 5218): 50e06e64 e5945a3c ebffbce0 e59409fc eb007d28 New -> Titanium Mobile Project\r\n2. Provide the app and package name, uncheck mobile web and press finish (do not press next and select any template).\r\n\r\nTested using the continuous build 2.1.1, even in that the issue is reproducible.\r\n", "attachment": [], "flagged": false, "summary": "Android: Application crashes when consecutively opening and closing app.", "creator": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "environment": "Titanium SDK Version 2.1.0\r\nPlatform OS: Android\r\nPlatform OS Version: 2.3.3 (GB), 4.0.3 (ICS)\r\nDevice details: Emulator, Samsung Galaxy S2\r\nHost Operating System: Windows 7, OSX 10.7.4\r\nTitanium Studio Build: 2.0.1.201204132053 (also tested with 2.1.0.201206251749)", "comment": { "comments": [ { "id": "210648", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have managed to reproduce the issue using the provided code, the Kitchen Sink and other Titanium applications on Android 4.0.3.", "updateAuthor": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-31T05:21:55.000+0000", "updated": "2012-07-31T05:21:55.000+0000" }, { "id": "211288", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested with simpler example using SDK 2.1.1.GA\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nwin.open();\r\n{code}\r\nSame crash\r\nhttp://pastie.org/private/5flxflvilpqphmzrxcvbq", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T15:04:44.000+0000", "updated": "2012-08-02T15:04:44.000+0000" }, { "id": "213528", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is actually a duplicate of TIMOB-10012. I've confirmed already that the commits for TIMOB-10012 fix this issue, and I am preparing a cherry-pick for the 2_1_X branch.\r\n\r\nI will indicate to the tester of that PR that they should test this failcase.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-09T07:58:47.000+0000", "updated": "2012-08-09T07:58:47.000+0000" }, { "id": "414895", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of the ticket that is mentioned above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:37:04.000+0000", "updated": "2017-03-22T20:37:04.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }