{ "id": "114386", "key": "TIMOB-13864", "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": "15935", "description": "2014 Sprint 06", "name": "2014 Sprint 06", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15936", "description": "2014 Sprint 06 SDK", "name": "2014 Sprint 06 SDK", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-20T23:09:00.000+0000", "created": "2013-05-15T11:23:15.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_androidmapv2", "qe-closed-3.2.3", "qe-testadded", "supportTeam", "triage" ], "versions": [], "issuelinks": [ { "id": "37254", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "128032", "key": "AC-3251", "fields": { "summary": "Upgrade android-support-v4.jar", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "39004", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "132995", "key": "TIMOB-17322", "fields": { "summary": "Android: KS crashes when the developer option \"do not keep activities\" turns on", "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 } } } }, { "id": "37253", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "129908", "key": "TIMOB-16906", "fields": { "summary": "Android : An empty scrollableview causes the app to crash", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-11T23:06: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": "h6.Problem\r\nGoogle Maps Android API v2 are not compatible with the Holo theme.\r\n\r\nWe have experienced the same problem in our app : when Holo is not active, the maps work as expected. With Holo, the app crash.\r\n\r\nThere are the error logs :\r\n\r\n{code:bash}\r\n05-15 10:33:55.700: E/TiApplication(25966): (main) [9931,10138] Sending event: exception on thread: main msg:java.lang.IllegalArgumentException: No view found for id 0x3e8 for fragment SupportMapFragment{436e6020 #0 id=0x3e8}; Titanium 3.1.0006,2013/05/06 12:00,2b7add3\r\n05-15 10:33:55.700: E/TiApplication(25966): java.lang.IllegalArgumentException: No view found for id 0x3e8 for fragment SupportMapFragment{436e6020 #0 id=0x3e8}\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:865)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.support.v4.app.BackStackRecord.run(BackStackRecord.java:635)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1431)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:420)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.os.Handler.handleCallback(Handler.java:605)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.os.Handler.dispatchMessage(Handler.java:92)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.os.Looper.loop(Looper.java:137)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat android.app.ActivityThread.main(ActivityThread.java:4507)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat java.lang.reflect.Method.invoke(Method.java:511)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)\r\n05-15 10:33:55.700: E/TiApplication(25966): \tat dalvik.system.NativeStart.main(Native Method)\r\n05-15 10:33:55.705: E/AndroidRuntime(25966): FATAL EXCEPTION: main\r\n{code}\r\n\r\nI have minimised his code to reproduce the error. There is the code for *app.js* :\r\n\r\n{code:javascript}\r\n(function() {\r\n\tfunction ApplicationWindow(title) {\r\n\t var self = Ti.UI.createWindow({ title:title });\r\n\t \r\n\t self.activity.onCreateOptionsMenu = function (e) {\r\n\t var actionBar = self.activity.actionBar;\r\n\t actionBar.setTitle('Action bar');\r\n\t actionBar.displayHomeAsUp = true;\r\n\t actionBar.onHomeIconItemSelected = function () {};\r\n\t };\r\n\t\r\n\t if (title === 'Map') { \r\n\t var MapModule = require('ti.map');\r\n\t var mapview = MapModule.createView({\r\n\t region: {latitude:33.74511, longitude:-84.38993,\r\n\t latitudeDelta:0.01, longitudeDelta:0.01}\r\n\t });\r\n\t\r\n\t self.add(mapview);\r\n\t }\r\n\t\r\n\t return self;\r\n\t};\r\n\r\n\r\n var tabGroup = Ti.UI.createTabGroup();\r\n\tvar tabs = ['One', 'Two', 'Map'];\r\n\tfor (var i=0, l=tabs.length; i\r\n\r\n com.enera.tabbedmap\r\n Test\r\n 1.0\r\n romainsalles\r\n http://\r\n not specified\r\n foo\r\n appicon.png\r\n false\r\n false\r\n default\r\n false\r\n false\r\n false\r\n true\r\n 22bd9dd2-b7a9-482b-9b64-e21eb739d636\r\n system\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n Ti.UI.UPSIDE_PORTRAIT\r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n true\r\n true\r\n \r\n default\r\n \r\n \r\n \tti.map\t\r\n \r\n \r\n false\r\n true\r\n true\r\n true\r\n true\r\n false\r\n \r\n 3.1.0.GA\r\n\r\n{code}\r\n\r\nWhen the app opens, just click on the *Map tab* and it will crash on devices with Holo.\r\n\r\nWe have tested on :\r\n\r\n - Samsung Galaxy Ace (GT-S5830), android 2.3.3 -> *ok* (do not supports Holo)\r\n - Sony Xperia (LT15i), android 2.3.3 -> *ok* (do not supports Holo)\r\n - Samsung Galaxy S (GTI9000), android 2.3.3 -> *ok* (do not supports Holo)\r\n - Samsung S2 (GT-I9100P), android 4.0.3 -> *crash* (supports Holo)\r\n - Nexus S, android 4.1.2 -> *crash* (supports Holo)\r\n - Samsung S3 (GT-I93000), android 4.1.2 -> *crash* (supports Holo)\r\n\r\nIt's really annoying : we have worked a lot to make our app more android friendly (holo, maps v2, GCM, new UX ...) and *we can't publish* it because of this problem.\r\n\r\nh6.Associated Q&A thread\r\nhttp://developer.appcelerator.com/question/151567/google-maps-v2-module-crashes-when-view-placed-in-tab-group#comment-172642", "attachment": [], "flagged": false, "summary": "Android: Maps v2 crashes inside a tab", "creator": { "name": "romain.salles", "key": "romain.salles", "displayName": "Romain Salles", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "romain.salles", "key": "romain.salles", "displayName": "Romain Salles", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium API : 3.1.0.GA\r\nAVD ID : 4", "comment": { "comments": [ { "id": "252556", "author": { "name": "romain.salles", "key": "romain.salles", "displayName": "Romain Salles", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any news on this ?", "updateAuthor": { "name": "romain.salles", "key": "romain.salles", "displayName": "Romain Salles", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-17T16:20:10.000+0000", "updated": "2013-05-17T16:20:10.000+0000" }, { "id": "254203", "author": { "name": "romain.salles", "key": "romain.salles", "displayName": "Romain Salles", "active": true, "timeZone": "Europe/Berlin" }, "body": "A point which could help : we have found a hack to make the maps work with Holo.\r\nThe trick is to add the mapview on the window focus.\r\n\r\nIn my code example, you have to change this line :\r\n\r\n{code:javascript}\r\nself.add(mapview);\r\n{code}\r\n\r\nby these ones :\r\n\r\n{code:javascript}\r\nself.addEventListener('focus', function() {\r\n\tself.add(mapview);\r\n});\r\n{code}\r\n\r\nI hope it helps to solve the issue.", "updateAuthor": { "name": "romain.salles", "key": "romain.salles", "displayName": "Romain Salles", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-28T08:18:41.000+0000", "updated": "2013-05-28T08:18:41.000+0000" }, { "id": "269219", "author": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "body": "the hack is not working for me. Map in tabgroup always crash the app.\r\n\r\n", "updateAuthor": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-09-02T15:24:22.000+0000", "updated": "2013-09-02T15:24:22.000+0000" }, { "id": "275281", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Still having problems here. Holo-Theme + Ti.Maps-Module crashes the app:\r\n\r\nE/TiApplication(21096): java.lang.IllegalArgumentException: No view found for id 0x3e8 for fragment SupportMapFragment{414b1710 #0 id=0x3e8}\r\nE/TiApplication(21096): \tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:865)\r\nE/TiApplication(21096): \tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)\r\nE/TiApplication(21096): \tat android.support.v4.app.BackStackRecord.run(BackStackRecord.java:635)\r\nE/TiApplication(21096): \tat android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1431)\r\nE/TiApplication(21096): \tat android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:420)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-16T16:09:13.000+0000", "updated": "2013-10-16T16:09:13.000+0000" }, { "id": "289149", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested and reproduced the bug with 3.2.0.GA, Android 4.0.4 and ti.map 2.1.2.\n\nWork around suggested by [~romain.salles] worked for me. [~hansknoechel], did you try this suggestion? \n\n{code}\n\t\t\tvar MapModule = require('ti.map');\n\t\t\tvar mapview = MapModule.createView({\n\t\t\t\tregion : {\n\t\t\t\t\tlatitude : 33.74511,\n\t\t\t\t\tlongitude : -84.38993,\n\t\t\t\t\tlatitudeDelta : 0.01,\n\t\t\t\t\tlongitudeDelta : 0.01\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t//self.add(mapview);\n\t\t\tself.addEventListener('focus', function() {\n\t\t\t\tself.add(mapview);\n\t\t\t});\n{code}", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-21T23:11:19.000+0000", "updated": "2014-01-21T23:11:19.000+0000" }, { "id": "289713", "author": { "name": "kronholm", "key": "kronholm", "displayName": "Bitfabrikken - Dan Wulff Kronholm", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have the same issue as well on 3.2.0.GA, Android 4.0.4 and ti.map 2.1.2.\r\nOnly way I can get the map to show, is if I create a brand new window and add it to that using the focus hack above.\r\n\r\nHere's the crash output from my Nexus 5:\r\n{code}\r\n\r\n[INFO] I/Adreno-EGL: : EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13\r\n[DEBUG] OpenGLRenderer: Enabling debug mode 0\r\n[DEBUG] dalvikvm: GC_CONCURRENT freed 339K, 2% free 25392K/25748K, paused 2ms+3ms, total 21ms\r\n[TRACE] CustomViewBehind: behind INVISIBLE\r\n[WARN] dalvikvm: VFY: unable to resolve static field 930 (MapAttrs) in Lcom/google/android/gms/R$styleable;\r\n[DEBUG] dalvikvm: VFY: replacing opcode 0x62 at 0x000e\r\n[DEBUG] AndroidRuntime: Shutting down VM\r\n[WARN] dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x415deba8)\r\n[ERROR] TiApplication: (main) [626,939] Sending event: exception on thread: main msg:java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState; Titanium 3.2.0,2013/12/20 10:57,d9182d6\r\n[ERROR] TiApplication: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState\r\n[ERROR] TiApplication: at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1314)\r\n[ERROR] TiApplication: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1325)\r\n[ERROR] TiApplication: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:548)\r\n[ERROR] TiApplication: at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:532)\r\n[ERROR] TiApplication: at org.appcelerator.titanium.view.TiUIFragment.(TiUIFragment.java:41)\r\n[ERROR] TiApplication: at ti.map.TiUIMapView.(TiUIMapView.java:55)\r\n[ERROR] TiApplication: at ti.map.ViewProxy.createView(ViewProxy.java:63)\r\n[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:465)\r\n[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:451)\r\n[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:568)\r\n[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:220)\r\n[ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] TiApplication: at android.os.Looper.loop(Looper.java:136)\r\n[ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5017)\r\n[ERROR] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\n[ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\n[ERROR] TiApplication: at dalvik.system.NativeStart.main(Native Method)\r\n\r\n{code}", "updateAuthor": { "name": "kronholm", "key": "kronholm", "displayName": "Bitfabrikken - Dan Wulff Kronholm", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-25T07:35:42.000+0000", "updated": "2014-01-26T18:51:28.000+0000" }, { "id": "296715", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5462", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T01:04:23.000+0000", "updated": "2014-03-12T01:04:23.000+0000" }, { "id": "298158", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.2.x PR: https://github.com/appcelerator/titanium_mobile/pull/5499", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-20T21:58:05.000+0000", "updated": "2014-03-20T21:58:05.000+0000" }, { "id": "298385", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified fix using below environment:\r\n\r\nAppc Studio: 3.2.3.201403190645\r\nSdk: 3.2.3.v20140323211726\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy:1.3.1\r\ntitanium:3.2.1\r\ntitanium-code-processor:1.1.0\r\nXcode: 5.1\r\nOsx: Maverick(10.9.2)\r\nDevice: Nexus 7 (V 4.4.2)\r\n\r\nAndroid: Maps v2 does not crashes inside Tab.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-24T09:13:00.000+0000", "updated": "2014-03-24T09:13:00.000+0000" }, { "id": "303153", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-05-01T08:37:21.000+0000", "updated": "2014-05-01T08:37:21.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }