{ "id": "174520", "key": "TIMOB-27645", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2020-03-03T17:46:16.000+0000", "created": "2019-12-07T12:42:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engTriage" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-03-03T20:03:08.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": "We noticed that since 8.3.0, incremental builds fail:\r\n\r\n{code}\r\n[ERROR] TiExceptionHandler: (main) [28,1550] Unable to start activity ComponentInfo{io.lambus.app/org.appcelerator.titanium.TiActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f0e0000\r\n[ERROR] TiExceptionHandler:\r\n[ERROR] TiExceptionHandler: android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:237)\r\n[ERROR] TiExceptionHandler: android.content.res.Resources.getBoolean(Resources.java:1089)\r\n[ERROR] TiExceptionHandler: android.support.v7.view.ActionBarPolicy.hasEmbeddedTabs(ActionBarPolicy.java:89)\r\n[ERROR] TiExceptionHandler: android.support.v7.app.WindowDecorActionBar.init(WindowDecorActionBar.java:220)\r\n[ERROR] TiExceptionHandler: android.support.v7.app.WindowDecorActionBar.(WindowDecorActionBar.java:172)\r\n[ERROR] TiExceptionHandler: android.support.v7.app.AppCompatDelegateImplV9.initWindowDecorActionBar(AppCompatDelegateImplV9.java:182)\r\n[ERROR] TiExceptionHandler: android.support.v7.app.AppCompatDelegateImplBase.getSupportActionBar(AppCompatDelegateImplBase.java:145)\r\n[ERROR] TiExceptionHandler: android.support.v7.app.AppCompatActivity.getSupportActionBar(AppCompatActivity.java:109)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiActivitySafeAreaMonitor.getActionBarInsetHeight(TiActivitySafeAreaMonitor.java:287)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiActivitySafeAreaMonitor.updateUsingCachedInsets(TiActivitySafeAreaMonitor.java:446)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiActivitySafeAreaMonitor.updateUsing(TiActivitySafeAreaMonitor.java:423)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiActivitySafeAreaMonitor.update(TiActivitySafeAreaMonitor.java:389)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiActivitySafeAreaMonitor.start(TiActivitySafeAreaMonitor.java:339)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:723)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:47)\r\n[ERROR] TiExceptionHandler: android.app.Activity.performCreate(Activity.java:7802)\r\n[ERROR] TiExceptionHandler: android.app.Activity.performCreate(Activity.java:7791)\r\n[ERROR] TiExceptionHandler: android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)\r\n[ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:107)\r\n[ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:214)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:7356)\r\n[ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiExceptionHandler: com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)\r\n[ERROR] TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)\r\n{code}\r\n\r\nThe resource id {{0x7f0e0000}} maps to {{ic_launcher}} inside the R.txt, so it seems like something is not copied over properly.\r\n\r\nChanging a line of source code in the project fixes the issue again. Reproducible with our app that's available to the team.", "attachment": [], "flagged": false, "summary": "Android: Recurring builds broken (8.3.0 regression)", "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, "closedSprints": [ { "id": 1181, "state": "closed", "name": "2020 Sprint 5", "startDate": "2020-03-02T18:45:02.513Z", "endDate": "2020-03-13T18:45:00.000Z", "completeDate": "2020-03-13T16:42:04.632Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454165", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Something is causing the \"R.java\" file to be regenerated with re-shuffled resource IDs, but the build system is not recompiling with the updated \"R.java\" here...\r\n[_build.js:compileJavaClasses()|https://github.com/appcelerator/titanium_mobile/blob/e9ef3702af3f75327af9056ec0bb9a7bf209e130/android/cli/commands/_build.js#L4074]\r\n\r\nThe solution is to check if the \"R.java\" file has changed. We should probably grab a hash of the file before replacing it and check if there is a difference afterwards. If so, then set {{builder.forceRebuild}} to {{true}}.\r\n\r\n*Note 1:*\r\nThis won't be an issue with Titanium 9.0.0 and higher. Only with older Titanium versions.\r\n\r\n*Note 2:*\r\nThis issue shouldn't happen for device builds (ie: deploy type \"test\") since it always recompiles Java for subsequent builds.\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-11T04:50:59.000+0000", "updated": "2020-02-11T04:57:36.000+0000" }, { "id": "454506", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hknoechel], do you still see this issue with SDK 9.0.0 RC? If, not we can close this ticket.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-03T05:29:09.000+0000", "updated": "2020-03-03T05:29:09.000+0000" }, { "id": "454513", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce using SDK version {{9.0.0.v20200220034622}}", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-03T16:40:36.000+0000", "updated": "2020-03-03T16:40:36.000+0000" }, { "id": "454520", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Like I said above, this issue won't happen in Titanium 9.0.0 and above.\r\n\r\nI can only reproduce it in older Titanium versions. It happens in Hans' app, but not in our test apps or in other customer apps (that I've seen).\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-03T19:16:13.000+0000", "updated": "2020-03-03T19:16:13.000+0000" }, { "id": "454523", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Due to other SDK 9 issues we will not update too soon, but IIRC, it worked fine.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-03-03T20:03:08.000+0000", "updated": "2020-03-03T20:03:08.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }