{ "id": "174420", "key": "TIMOB-27602", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-18T18:17:54.000+0000", "created": "2019-11-14T18:50:59.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "57921", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174425", "key": "TIMOB-27606", "fields": { "summary": "Android: Remote encryption policy broken in latest 8.3.0", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-11-18T18:17:54.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": "When using Liveview and saving a {{JS}} file the following error can be seen in Studio (Alloy App):\r\n{code:java}\r\n[LiveView] Client disconnected\r\n[INFO] : [LiveView] Reloading App\r\n[WARN] : TiApplication: (main) [4696,12084] Registering module with name already in use.\r\n[WARN] : TiApplication: (main) [1,12085] Registering module with name already in use.\r\n[ERROR] : TiAssetHelper: Error while reading asset \"Resources/ti.main.js\":\r\n[ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/ti.main.js\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.openAsset(Native Method)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:374)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:348)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.util.KrollAssetHelper.readAssetBytes(KrollAssetHelper.java:182)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiApplication.softRestart(TiApplication.java:823)\r\n[ERROR] : TiAssetHelper: \tat ti.modules.titanium.app.AppModule$1.run(AppModule.java:227)\r\n[ERROR] : TiAssetHelper: \tat android.os.Handler.handleCallback(Handler.java:790)\r\n[ERROR] : TiAssetHelper: \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR] : TiAssetHelper: \tat android.os.Looper.loop(Looper.java:164)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.main(ActivityThread.java:6494)\r\n[ERROR] : TiAssetHelper: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)\r\n[ERROR] : TiAssetHelper: Error while reading asset \"Resources/ti.main.js\":\r\n[ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/ti.main.js\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.openAsset(Native Method)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:374)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:348)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.util.KrollAssetHelper.readAssetBytes(KrollAssetHelper.java:182)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModuleBytes(Native Method)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModuleBytes(V8Runtime.java:162)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiApplication.softRestart(TiApplication.java:823)\r\n[ERROR] : TiAssetHelper: \tat ti.modules.titanium.app.AppModule$1.run(AppModule.java:227)\r\n[ERROR] : TiAssetHelper: \tat android.os.Handler.handleCallback(Handler.java:790)\r\n[ERROR] : TiAssetHelper: \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR] : TiAssetHelper: \tat android.os.Looper.loop(Looper.java:164)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.main(ActivityThread.java:6494)\r\n[ERROR] : TiAssetHelper: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)\r\n[ERROR] : v8:\r\n[ERROR] : v8:\r\n[ERROR] : v8: #\r\n[ERROR] : v8: # Fatal error in , line 0\r\n[ERROR] : v8: #\r\n[ERROR] : v8: unreachable code\r\n[ERROR] : v8:\r\n[ERROR] : v8: #\r\n[ERROR] : v8: #\r\n[ERROR] : v8: #\r\n[ERROR] : v8: #FailureMessage Object: 0xbf9fa090\r\n[INFO] : v8: # 00x8b4a1685\r\n[INFO] : v8: # 10x8b49832a\r\n[INFO] : v8: # 20x8ba3786b\r\n[INFO] : v8: # 30x8ba3752b\r\n[INFO] : v8: # 40x8ba217cd\r\n[INFO] : v8: # 50x8b597af3\r\n[INFO] : v8: # 60x8b599233\r\n[INFO] : v8: # 70x8b4b9bdc\r\n[INFO] : v8: # 80x8b4ba203\r\n[INFO] : v8: # 90x8b4bb7d0\r\n[INFO] : v8: #100x8b27c3bb\r\n[INFO] : v8: #110x8b27ad23\r\n[INFO] : v8: #120x8b53d0c6\r\n[INFO] : v8: #130x8b53c6e5\r\n[INFO] : v8: #140x8b53bac8\r\n[INFO] : v8: #150x8b53b7a0\r\n[INFO] : v8: #160x8aa82323\r\n[INFO] : v8:\r\n{code}\r\n\r\n*Test Steps*\r\n# Open APPC studio\r\n# Create an Alloy application \r\n# Enable liveview\r\n# Run application (Device or Sim)\r\n# Open the {{index.xml}}\r\n# Change the {{Hello world}} text to something else. \r\n\r\n*Actual Result*\r\nAbove error is seen.\r\n\r\n*Expected Result*\r\nLive view should reload the app and changes made in {{.js}} file should be present. ", "attachment": [], "flagged": false, "summary": "[Windows - Android] Liveview crashes application and throws error before reloading", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK version: 8.3.0.v20191114073239 \r\nAPPC Studio: 5.1.4.201909061933\r\nOperating System\r\n Name = Microsoft Windows 10 Enterprise\r\n Version = 10.0.18362\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 15.9GB\r\n\r\nNode.js\r\n Node.js Version = 10.16.3\r\n npm Version = 6.9.0\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.15\r\n Core Package = 7.1.2-master.5\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.2\r\n node-appc Version = 0.2.49", "comment": { "comments": [ { "id": "452691", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Running with DEBUG=\"liveview:*\" there doesn't look to be a request making it to the liveview server so I don't think this is a liveview thing but maybe something with the android runtime lifecycle/Ti.App._restart() function cc [~gmathews]", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-11-14T19:30:34.000+0000", "updated": "2019-11-14T19:30:34.000+0000" }, { "id": "452705", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11338", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-14T23:36:23.000+0000", "updated": "2019-11-14T23:36:23.000+0000" }, { "id": "452720", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for 8_3_X, waiting on Jenkins. [~gmathews]. Will this need to be fixed on Master as well? ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-15T14:45:43.000+0000", "updated": "2019-11-15T14:45:43.000+0000" }, { "id": "452726", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to 8_3_X, cherry-picked to master.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-15T15:55:30.000+0000", "updated": "2019-11-15T15:55:30.000+0000" }, { "id": "452761", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK versions {{8.3.0.v20191115162504}} and {{9.0.0.v20191117201259}}\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/11338 \r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-18T18:17:48.000+0000", "updated": "2019-11-18T18:17:48.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }