{ "id": "173869", "key": "TIMOB-27232", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-07-13T05:31:59.000+0000", "created": "2019-07-10T09:21:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "andorid", "engSchedule", "regression", "title", "window" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2019-07-13T05:31:59.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": "*Summary:*\r\nSetting {{Ti.UI.Window}} property \"barColor\" if it's using a theme without an {{ActionBar}} will cause a crash as of Titanium 8.1.0.\r\n\r\nNote that this bug was never in a release version. It was caught before release.\r\n\r\n*Steps to reproduce:*\r\n# Set up a Classic project to build with Titanium 8.1.0.\r\n# Copy the below code to your \"app.js\".\r\n# Build and run on Android.\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n\tbarColor: \"blue\",\r\n\ttheme: \"Theme.AppCompat.NoTitleBar\",\r\n});\r\nwindow.add(Ti.UI.createLabel({ text: \"Window Title Test\" }));\r\nwindow.open();\r\n{code}\r\n\r\n*Result:*\r\nApp crashes on startup and the following exception gets logged...\r\n{code}\r\n[ERROR] : TiExceptionHandler: (main) [1,6371] Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setBackgroundDrawable(android.graphics.drawable.Drawable)' on a null object reference\r\n[ERROR] : TiExceptionHandler:\r\n[ERROR] : TiExceptionHandler: ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:313)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:57)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:578)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:726)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:47)\r\n[ERROR] : TiExceptionHandler: android.app.Activity.performCreate(Activity.java:6975){code}\r\n\r\n\r\n----\r\n\r\n*Use-case:*\r\nThis issue is more likely to happen in apps that use theme/style XML file applied globally to the app. Like the one below supplied by [~andreas.pingas].\r\n\r\n{code:xml}\r\n\r\n{code}\r\n\r\n{code:javascript}\r\nvar win = Titanium.UI.createWindow({\r\n barColor:’#FFF’\r\n theme:'FullScreen'\r\n});\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Setting Window \"barColor\" while using a theme without an ActionBar/TitleBar will cause a crash as of 8.1.0", "creator": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "449706", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~andreas.pingas],\r\nThanks for sharing with us. Can you please test this also in SDK 8.0.2.GA and let us know the results.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-07-10T11:31:01.000+0000", "updated": "2019-07-10T11:31:01.000+0000" }, { "id": "449712", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "I tried the sample against 8.0.2.GA. It does not crash there. Confirmed as a regression and I am on it.\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/11041", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2019-07-10T15:28:13.000+0000", "updated": "2019-07-10T16:11:23.000+0000" }, { "id": "449727", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR (8_1_X): https://github.com/appcelerator/titanium_mobile/pull/11043", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2019-07-11T14:34:54.000+0000", "updated": "2019-07-11T14:34:54.000+0000" }, { "id": "449729", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-11T15:25:24.000+0000", "updated": "2019-07-11T15:25:24.000+0000" }, { "id": "449763", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to 8_1_X, waiting on full build to merge master PR...", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-07-12T16:53:09.000+0000", "updated": "2019-07-12T16:53:09.000+0000" }, { "id": "449771", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-07-12T19:09:16.000+0000", "updated": "2019-07-12T19:09:16.000+0000" }, { "id": "449791", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on sdk 8.2.0.v20190712143331 and 8.1.0.v20190712141959.No crashing happens. works as expected.\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.14.5\r\n Architecture = 64bit\r\n # CPUs = 12\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 10.13.0\r\n npm Version = 6.4.1\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\nTitanium SDK\r\n SDK Version = 8.2.0.v20190712143331 and 8.1.0.v20190712141959\r\nCLI =7.1.0-master.24\r\nDevice =samsung s5 android 6\r\nEmulator =pixel android 9", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-07-13T05:31:55.000+0000", "updated": "2019-07-13T05:31:55.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }