{ "id": "176158", "key": "TIMOB-28423", "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-04-21T16:42:33.000+0000", "created": "2021-04-16T15:29:28.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "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-04-21T16:42:33.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 running an application more then once without cleaning the following error is shown, when using appc studio. \r\n\r\n*Error:*\r\n{code:java}\r\n[ERROR] : Error: EBUSY: resource busy or locked, copyfile 'C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\aa2\\Resources\\android\\images\\res-notlong-land-ldpi\\default.png' -> 'C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\aa2\\build\\android\\app\\src\\main\\res\\drawable\\background.png'\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\n*Test Steps:*\r\n# Open Appc Studio\r\n# Create a new Alloy application \r\n# Run Application \r\n# Wait for application to boot up on the emulator \r\n# Stop build\r\n# Run the alloy application again \r\n\r\n*Actual Result*\r\nAbove error is shown \r\n\r\n*Expected result*\r\nApplication should launch without issues \r\n\r\n*Note** If a clean is done then application runs without issues even on subsequent builds. ", "attachment": [ { "id": "67872", "filename": "logsfff.txt", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-16T15:28:50.000+0000", "size": 43232, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Windows - Unable to launch application on 2nd run without cleaning", "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": "Operating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.18363\r\n Architecture = 64bit\r\n # CPUs = 16\r\n Memory = 63.9GB\r\n\r\nNode.js\r\n Node.js Version = 12.16.1\r\n npm Version = 6.13.4\r\n\r\nAppcelerator CLI\r\n Installer = 6.0.0-1\r\n Core Package = 9.0.0-9\r\n\r\nTitanium CLI\r\n CLI Version = 5.3.0\r\n node-appc Version = 1.1.2\r\n\r\nSDK: 10.0.0.v20210414110407", "comment": { "comments": [ { "id": "458594", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From looking at the debug log entries, the real issue appears to be \"default.png\" files from different density folders are all being copied to the same destination folder. I'm not seeing this on Mac.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-16T21:21:37.000+0000", "updated": "2021-04-16T21:31:11.000+0000" }, { "id": "458597", "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": "2021-04-20T15:20:18.000+0000", "updated": "2021-04-20T15:20:18.000+0000" }, { "id": "458598", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X branches.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-04-20T15:59:10.000+0000", "updated": "2021-04-20T15:59:10.000+0000" }, { "id": "458599", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews] Looks like this ticket may have caused issues when installing to device.\r\n\r\n{code:java}\r\nERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:37: error: illegal escape character\r\n[INFO] : [GRADLE] > Task :app:compileDebugJavaWithJavac FAILED\r\n[ERROR] : [GRADLE] \"Resources/alloy\\CFG.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:41: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\constants.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:42: error: illegal unicode escape\r\n[ERROR] : [GRADLE] \"Resources/alloy\\underscore.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:43: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\widget.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:44: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\styles\\index.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:44: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\styles\\index.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:45: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\sync\\localStorage.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:45: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\sync\\localStorage.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:46: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\sync\\properties.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:46: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\sync\\properties.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:47: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\sync\\sql.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:47: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\sync\\sql.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:48: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\controllers\\BaseController.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:48: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\controllers\\BaseController.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:49: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\controllers\\index.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] C:\\Users\\APPC\\Documents\\Appcelerator_Studio_Workspace\\anewapp\\build\\android\\app\\src\\main\\java\\com\\appc\\anewapplolo\\AssetCryptImpl.java:49: error: illegal escape character\r\n[ERROR] : [GRADLE] \"Resources/alloy\\controllers\\index.js\",\r\n[ERROR] : [GRADLE] ^\r\n[ERROR] : [GRADLE] 16 errors\r\n[ERROR] : [GRADLE]\r\n[INFO] : [GRADLE] 23 actionable tasks: 23 executed\r\n[ERROR] : [GRADLE] FAILURE: Build failed with an exception.\r\n[ERROR] : [GRADLE]\r\n[ERROR] : [GRADLE] * What went wrong:\r\n[ERROR] : [GRADLE] Execution failed for task ':app:compileDebugJavaWithJavac'.\r\n[ERROR] : [GRADLE] > Compilation failed; see the compiler error output for details.\r\n[ERROR] : [GRADLE]\r\n[ERROR] : [GRADLE] * Try:\r\n[ERROR] : [GRADLE] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n[ERROR] : [GRADLE]\r\n[ERROR] : [GRADLE] * Get more help at https://help.gradle.org\r\n[ERROR] : [GRADLE]\r\n[ERROR] : [GRADLE] BUILD FAILED in 6s\r\n[ERROR] : \"gradlew\" tool returned exit code: 1\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-20T19:06:45.000+0000", "updated": "2021-04-20T19:06:45.000+0000" }, { "id": "458600", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews],\r\n\r\nIt's an issue with our {{AssetCryptImpl.java}} file here...\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/templates/build/AssetCryptImpl.java#L38\r\n\r\nWe need to change the template's line from this...\r\n{code:groovy}\r\n\"Resources/<%- assets[i] %>\",\r\n{code}\r\n...to this...\r\n{code:groovy}\r\n\"Resources/<%- assets[i].replace(/\\\\/g, '/') %>\",\r\n{code}\r\n\r\nWe will need to test encrypted/device builds made on Windows to make sure the app's JS requires/imports work. The above will turn the back slashes '\\' to forward slashes '/' which is needed in order for the app to find JS files under subdirectories\r\n\r\nWe should also enable a \"trace\" log to see if the backslashes will cause any logging issues to the console. (We might already be okay, but it doesn't hurt to double check this.)\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-20T19:23:59.000+0000", "updated": "2021-04-20T19:33:56.000+0000" }, { "id": "458601", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12733", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-20T20:34:28.000+0000", "updated": "2021-04-20T20:34:28.000+0000" }, { "id": "458603", "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-04-21T14:45:01.000+0000", "updated": "2021-04-21T14:45:01.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }