[TIMOB-1803] Kitchensink not fully compilling for Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-07-16T17:45:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, build |
Reporter | Fola |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:02:49.000+0000 |
Updated | 2017-03-10T18:22:51.000+0000 |
Description
Can anyone help on this problem that I am having with
Kitchensink on Android.
Setup:
SDK - 1.6 Screen - HVGA
Filter - Trace
Trying to Launch the app, but kept stopping at the same place with the following trace and error:
E:\Downloads\appcelerator-KitchenSink-1.4.0-1-g2528bba\appcelerator-KitchenSink-2528bba\KitchenSink\build\android\bin\assets\Resources\examples\yql_flickr.js
[TRACE] Traceback (most recent call last):
[TRACE] File
"C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\builder.py",
line 995, in [TRACE] s.build_and_run(False,avd_id)
[TRACE] File
"C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\builder.py",
line 847, in build_and_run [TRACE] compiler.compile() [TRACE] File
"C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\compiler.py",
line 167, in compile [TRACE]
self.compile_into_bytecode(self.js_files) [TRACE] File
"C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\compiler.py",
line 99, in compile_into_bytecode [TRACE] if count > 0: run.run(args)
[TRACE] File
"C:\ProgramData\Titanium\mobilesdk\win32\1.4.0\android\run.py",
line 21, in run TRACE =
subprocess.Popen(args, stderr=subprocess.PIPE,
stdout=subprocess.PIPE).communicate() [TRACE] File
"C:\ProgramData\Titanium\modules\win32\python\1.0.0\lib\subprocess.py",
line 594, in init [TRACE] errread, errwrite) [TRACE] File
"C:\ProgramData\Titanium\modules\win32\python\1.0.0\lib\subprocess.py",
line 822, in _execute_child [TRACE] startupinfo) [TRACE] WindowsError: [Error 87] The
parameter is incorrect
I have the same problem.
Tested under windows7 64 bit (Swedish), and windows 7 32 bit (english)
[TRACE] File "C:\ProgramData\Titanium\modules\win32\python\1.0.0\lib\subprocess.py", line 822, in _execute_child[TRACE] startupinfo)[TRACE] WindowsError: [Error 87] Felaktig parameter
HelloWorld example runs fine from the first introduction from the pdf, but the Kitchen sink breaks things and simply don't get loaded into the Android simualtor.
Very annoying when the demo examples from the vendor doesn't work.
Possible workaround -
Chose the project Kitchen sink, then the Edit tab, Titanium DSK -> Choose "1.2.0"
Works!
Seems that SDK "1.4.0" is bad.
When compiling KitchenSink it builds up to a commandline that might be longer than 8191 characters long and windows will cut there in the middle of a filename to be compiled. This generates an error that is not properly shown. I had simply extracted the KitchenSink file to: C:\titanium\appcelerator-KitchenSink-1.4.0-2-g5d6e950\appcelerator-KitchenSink-5d6e950\KitchenSink and this simply adds up to too many characters when many files are compiled at once.
Workaround, put the KitchenSink-folder directly under C: like this -> c:\KitchenSink\
Replace Line 100 in compiler.py with this code and you will recive a warning just before the error.
Going to assign to Don for triage. Not sure how much we can do about commandline limitations though. Might just be invalid.
Closing since this looks to be an ancient version of Mobile and Desktop/Developer. Neither of which we support anymore.
Closing ticket as the issue cannot be reproduced.