Project: titanium
Issue TIMOB-16077: Android: Large amounts of JavaScript breaks encryption process
If a project contains a large amount of JavaScript files (total number of bytes, rather than number of files), it will fail during the encryption process. [ERROR] : Failed to encrypt JavaScript files This is not a regression. Titanium SDK 3.2.0.GA max app.js size is 524,283 bytes. Titanium SDK 3.1.3.GA max app.js size is 017,688 bytes. Test Data: Titanium SDK 3.2.0.GA Test File: app.js.524,290 bytes (attached) app.js size Pass: 524,283 bytes Fail: 524,290 bytes Log: {code} [ERROR] : Failed to encrypt JavaScript files [ERROR] : {code} Titanium SDK 3.1.3.GA Test File: app.js.17,695 bytes (attached) app.js size Pass: 17,688 bytes Fail: 17,695 bytes Log: {code} [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py", line 2629, in [ERROR] builder.build_and_run(True, None, key, password, alias, output_dir) [ERROR] File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py", line 2292, in build_and_run [ERROR] compiler.compile(compile_bytecode=self.compile_js, external_modules=self.modules) [ERROR] File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/compiler.py", line 286, in compile [ERROR] self.compile_into_bytecode(self.js_files) [ERROR] File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/compiler.py", line 201, in compile_into_bytecode [ERROR] self.compile_javascript(fullpath) [ERROR] File "/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/compiler.py", line 191, in compile_javascript [ERROR] sys.stderr.write("[ERROR] unrecognized error encountered: " % se) [ERROR] TypeError: not all arguments converted during string formatting [INFO] Running finalize function in com.soasta.touchtest.android plugin [ERROR] : Build process exited with code 1 [ERROR] : Project failed to build after 2s 988ms {code}
Story points: 8