Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1803] Kitchensink not fully compilling for Android

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-16T17:45:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, build
ReporterFola
AssigneeNeeraj Gupta
Created2011-04-15T03:02:49.000+0000
Updated2017-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

Comments

  1. Anders H. 2011-04-15

    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.

  2. Anders H. 2011-04-15

    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.

  3. Anders H. 2011-04-15

    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.

               if count > 0:
                   print '[INFO] Compiling into bytecode...'
                   cmd = args.__repr__()
                   if cmd.__len__() > 8191: #This length contains some python [''] characters that are stripped later in the call so only a warning.
                       print '[WARNING] Command might be too long to execute correctly.'
                   try:
                       run.run(args)
                   except WindowsError,err:
                       print '[ERROR] Failed to execute: ' + cmd 
                       print '[ERROR] ' + err.args.__repr__() #Raise only issues trace messages, need to tell user that there is an error.
                       raise
       
  4. Stephen Tramer 2011-04-15

    Going to assign to Don for triage. Not sure how much we can do about commandline limitations though. Might just be invalid.

  5. Josh Roesslein 2012-07-16

    Closing since this looks to be an ancient version of Mobile and Desktop/Developer. Neither of which we support anymore.
  6. Lee Morris 2017-03-10

    Closing ticket as the issue cannot be reproduced.

JSON Source