{ "id": "176103", "key": "TIMOB-28376", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-03-11T14:49:10.000+0000", "created": "2021-03-07T13:05:21.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "crash", "fragments", "mapview" ], "versions": [ { "id": "21191", "name": "Release 9.3.2", "archived": false, "released": true, "releaseDate": "2021-02-11" }, { "id": "21201", "description": "", "name": "Release 10.1.0", "archived": false, "released": true, "releaseDate": "2021-09-28" }, { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-03-11T14:49:10.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": "The following code crashes the app on Android, while it works fine on iOS:\r\n{code:js}\r\nconst window = Ti.UI.createWindow();\r\nconst mapView = Ti.UI.createView({ height: 200 });\r\nmapView.add(require('ti.map').createView());\r\n\r\nconst listView = Ti.UI.createListView({\r\n\theaderView: mapView, // This throws the error - works fine on iOS\r\n\tsections: [\r\n\t\tTi.UI.createListSection({\r\n\t\t\titems: [ { title: 'Test 1' }, { title: 'Test 2' }, { title: 'Test 3' } ]\r\n\t\t})\r\n\t]\r\n})\r\n\r\nwindow.add(listView);\r\nwindow.open();\r\n{code}\r\n\r\nThe crash / stacktrace is:\r\n{code}\r\n[ERROR] E/com.example.app Invalid ID 0x00000002.\r\n[DEBUG] AndroidRuntime: Shutting down VM\r\n[ERROR] TiExceptionHandler: (main) [1539,1753] No view found for id 0x2 (unknown) for fragment SupportMapFragment{b743c3e} (b6132652-63cc-4547-83f3-18d882add40a) id=0x2}\r\n[ERROR] TiExceptionHandler:\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:315)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1199)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2181)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2004)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1959)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1861)\r\n[ERROR] TiExceptionHandler: androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:413)\r\n[ERROR] TiExceptionHandler: android.os.Handler.handleCallback(Handler.java:938)\r\n[ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:223)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:7656)\r\n[ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiExceptionHandler: com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)\r\n[ERROR] TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)\r\n{code}\r\n\r\nIt's a blocker we currently cannot workaround, so it'd be great to have some feedback on it - maybe then we can fix it ourselves. Thank you!", "attachment": [ { "id": "67840", "filename": "ListViewHeaderViewTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-09T23:47:32.000+0000", "size": 768, "mimeType": "application/x-javascript" }, { "id": "67839", "filename": "TableViewHeaderLabelTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-09T23:46:48.000+0000", "size": 845, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Update header and footer view activity", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "458354", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (by Sergey): https://github.com/appcelerator/titanium_mobile/pull/12524 ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-03-07T21:33:45.000+0000", "updated": "2021-03-07T21:33:45.000+0000" }, { "id": "458371", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug also prevented the headerView/footerView from updating after a dark/light theme change. So, we'll need this fixed for 10.0.0 since that SDK version adds official dark/light theme support. Thanks for bringing this up [~hknoechel]!", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-09T23:38:26.000+0000", "updated": "2021-03-09T23:38:26.000+0000" }, { "id": "458376", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build and backports. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-10T16:33:44.000+0000", "updated": "2021-03-10T16:33:44.000+0000" }, { "id": "458389", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Squash merged to master, manually cherry-picked to 10_0_X for 10.0.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-11T14:49:06.000+0000", "updated": "2021-03-11T14:49:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }