Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1109] Android: JS Compilation Assumes Unlimited Command Line

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeMarshall Culpepper
Created2011-04-15T02:44:18.000+0000
Updated2011-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.

Comments

  1. Don Thorp 2011-04-15

    Customer verified that moving the KitchenSink example higher in the directory tree worked around the issue.

  2. Marshall Culpepper 2011-04-15

    (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...

  3. Marshall Culpepper 2011-04-15

    This has been fixed with both the Rhino compiler and javac w/ custom source from platform/android

  4. Matt Schmulen 2011-04-15

    Where/how should the Ti.android.threadstacksize be set in js ? How can I test this issue?

    M.

  5. Matt Schmulen 2011-04-15

    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

JSON Source