[TIMOB-1109] Android: JS Compilation Assumes Unlimited Command Line
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect |
Reporter | Don Thorp |
Assignee | Marshall Culpepper |
Created | 2011-04-15T02:44:18.000+0000 |
Updated | 2011-04-17T01:55:13.000+0000 |
Description
The javascript Rhino compiler addition assumes that there is no
command line limit and passes all files in one pass. Given a path
like C:\Documents and Settings\myuser\My
Documents\Projects\Titanium\KitchenSink\build\android\bin\assets\Resources\examples\sound_local.js
it fails to compile.
Customer verified that moving the KitchenSink example higher in the directory tree worked around the issue.
(from [54629899a5631d2d2e1ef9ca4025c5831f640d1a]) initial implementation of Rhino JS->bytecode compiler for production apps, dramatically decreasing startup time and runtime code execution in general. this falls back on dynamic/unoptimized evaluation when a compiled script isn't found, and each file is compiled separately to avoid the arg size limit in windows. added a "ti.android.threadstacksize" property that allows each app to control the stack size allocated for each JS thread (by default it's 16K, but this may not be big enough for some apps) [#1109] [#1805] http://github.com/appcelerator/titanium_mobile/commit/54629899a5631d2d2e1ef9ca4025c5831f640d1a"> http://github.com/appcelerator/titanium_mobile/commit/54629899a5631...
This has been fixed with both the Rhino compiler and javac w/ custom source from platform/android
Where/how should the Ti.android.threadstacksize be set in js ? How can I test this issue?
M.
pass, Titanium SDK version: 1.5.0 (12/07/10 10:00 8f4eea3...) just made a deep js file, bugtest, Android Sim 1.6/2.1