{ "id": "119011", "key": "TIMOB-14992", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15942", "description": "2014 Sprint 07 Tooling", "name": "2014 Sprint 07 Tooling", "archived": true, "released": true, "releaseDate": "2014-04-11" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-04-02T05:39:35.000+0000", "created": "2013-08-26T05:20:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "33650", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "109050", "key": "AC-1982", "fields": { "summary": "TypeError during command line build", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T16:49:23.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "*Problem*\r\nSome .js files seem to trigger an error in the build-system when building for production:\r\n\r\n*Note*\r\nI've seen this bug more often lately. Most of my app is build in coffeescript, which might produce unusual (but legal) javascript patterns.\r\n \r\nI think the bug is similar to #TC-1838, but I can reproduce it!\r\n\r\n*Error*\r\n{code}[ERROR] Exception occured while building Android project:\r\n[ERROR] Traceback (most recent call last):\r\n[ERROR] File \"/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/builder.py\", line 2630, in \r\n[ERROR] builder.build_and_run(True, None, key, password, alias, output_dir)\r\n[ERROR] File \"/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/builder.py\", line 2293, in build_and_run\r\n[ERROR] compiler.compile(compile_bytecode=self.compile_js, external_modules=self.modules)\r\n[ERROR] File \"/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/compiler.py\", line 287, in compile\r\n[ERROR] self.compile_into_bytecode(self.js_files)\r\n[ERROR] File \"/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/compiler.py\", line 202, in compile_into_bytecode\r\n[ERROR] self.compile_javascript(fullpath)\r\n[ERROR] File \"/Users/tijs/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/android/compiler.py\", line 192, in compile_javascript\r\n[ERROR] sys.stderr.write(\"[ERROR] unrecognized error encountered: \" % se)\r\n[ERROR] TypeError: not all arguments converted during string formatting\r\n[ERROR] : \b\b \bBuild process exited with code 1\r\n[ERROR] : \b\b \bProject failed to build after 52s 350ms{code}\r\n\r\n*Steps to reproduce*\r\n1. Include the attached file in a project\r\n2. Build for 'Distribute - Android App store'\r\n3. The error will appear.", "attachment": [ { "id": "41860", "filename": "demonstrateCrash.js", "author": { "name": "tinkertank", "key": "tinkertank", "displayName": "Tijs Zwinkels", "active": true, "timeZone": "Europe/London" }, "created": "2013-08-26T05:20:40.000+0000", "size": 3887, "mimeType": "text/javascript" } ], "flagged": false, "summary": "CLI: Python error (TypeError: not all arguments converted during string formatting) when building package for App Store", "creator": { "name": "tinkertank", "key": "tinkertank", "displayName": "Tijs Zwinkels", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "tinkertank", "key": "tinkertank", "displayName": "Tijs Zwinkels", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium SDK 3.2.0GA, Titanium Studio, build: 3.1.2.201308091617", "comment": { "comments": [ { "id": "268071", "author": { "name": "tinkertank", "key": "tinkertank", "displayName": "Tijs Zwinkels", "active": true, "timeZone": "Europe/London" }, "body": "After modifying the compiler.py script to show the error (as explained here: http://developer.appcelerator.com/question/137414/titanium-appcelerator-android-fails-to-build-with-exception-for-tiandroidcompilejs), it became clear that the closure-compiler would crash on the .js file:\n\n{code}\n[INFO] so se java.lang.RuntimeException: java.lang.RuntimeException: INTERNAL COMPILER ERROR.\nPlease report this problem.\nindex (1) must be less than size (1)\n Node(BLOCK): /Users/tijs/Dropbox/Titanium_Studio_Workspace/compass_git/appcelerator/compass/build/android/bin/assets/Resources/model/uitgaand_model.js:87:51\n UitgaandTableData.prototype.reset = function() {\n Parent(FUNCTION ): /Users/tijs/Dropbox/Titanium_Studio_Workspace/compass_git/appcelerator/compass/build/android/bin/assets/Resources/model/uitgaand_model.js:87:48\n UitgaandTableData.prototype.reset = function() {\n\n\tat com.google.javascript.jscomp.Compiler.runCallable(Compiler.java:629)\n\tat com.google.javascript.jscomp.Compiler.runInCompilerThread(Compiler.java:574)\n\tat com.google.javascript.jscomp.Compiler.compile(Compiler.java:556)\n\tat com.google.javascript.jscomp.Compiler.compile(Compiler.java:515)\n\tat com.google.javascript.jscomp.AbstractCommandLineRunner.doRun(AbstractCommandLineRunner.java:662)\n\tat com.google.javascript.jscomp.AbstractCommandLineRunner.run(AbstractCommandLineRunner.java:295)\n\tat com.google.javascript.jscomp.CommandLineRunner.main(CommandLineRunner.java:758)\nCaused by: java.lang.RuntimeException: INTERNAL COMPILER ERROR.\nPlease report this problem.\nindex (1) must be less than size (1)\n Node(BLOCK): /Users/tijs/Dropbox/Titanium_Studio_Workspace/compass_git/appcelerator/compass/build/android/bin/assets/Resources/model/uitgaand_model.js:87:51\n UitgaandTableData.prototype.reset = function() {\n Parent(FUNCTION ): /Users/tijs/Dropbox/Titanium_Studio_Workspace/compass_git/appcelerator/compass/build/android/bin/assets/Resources/model/uitgaand_model.js:87:48\n UitgaandTableData.prototype.reset = function() {\n\n\tat com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:301)\n\tat com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:280)\n\tat com.google.common.collect.Lists$ReverseList.reverseIndex(Lists.java:743)\n\tat com.google.common.collect.Lists$ReverseList.get(Lists.java:774)\n\tat com.google.javascript.jscomp.InlineObjectLiterals$InliningBehavior.replaceAssignmentExpression(InlineObjectLiterals.java:348)\n\tat com.google.javascript.jscomp.InlineObjectLiterals$InliningBehavior.splitObject(InlineObjectLiterals.java:411)\n\tat com.google.javascript.jscomp.InlineObjectLiterals$InliningBehavior.afterExitScope(InlineObjectLiterals.java:103)\n\tat com.google.javascript.jscomp.ReferenceCollectingCallback.exitScope(ReferenceCollectingCallback.java:187)\n\tat com.google.javascript.jscomp.NodeTraversal.popScope(NodeTraversal.java:560)\n\tat com.google.javascript.jscomp.NodeTraversal.traverseFunction(NodeTraversal.java:520)\n\tat com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:465)\n <..>\n{code}\n\nUpdating the closure-compiler fixes this problem. See pull request: https://github.com/appcelerator/titanium_mobile/pull/4602", "updateAuthor": { "name": "tinkertank", "key": "tinkertank", "displayName": "Tijs Zwinkels", "active": true, "timeZone": "Europe/London" }, "created": "2013-08-26T05:55:39.000+0000", "updated": "2013-08-26T05:55:39.000+0000" }, { "id": "268778", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Here's [~tinkertank]'s 3.1.x pull request: https://github.com/appcelerator/titanium_mobile/pull/4604", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-29T00:13:13.000+0000", "updated": "2013-08-29T00:13:13.000+0000" }, { "id": "299596", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Thanks for the pull request, however we rewrote the Android build scripts to be more awesome and now we use UglifyJS.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-02T05:39:35.000+0000", "updated": "2014-04-02T05:39:35.000+0000" }, { "id": "413702", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T16:49:23.000+0000", "updated": "2017-03-20T16:49:23.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }