Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24683

childprocess.spawn() BAD ARGUMENT : problem with Windows Phone SDK


    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.4
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Environment:

      Acer Aspire VN7-592G
      8Go Ram
      Windows 10 x64
      Visual Studio Community 2017
      Appcelerator Studio : build:
      Ti SDK: 6.0.4.GA

    • Story Points:
    • Sprint:
      2017 Sprint 14 Tooling


      1- Remove everything about Appcelerator, following these instructions : https://medium.com/all-titanium/reinstalling-appcelerator-titanium-on-windows-from-scratch-f7c50e2161f3

      2- "del /s /q .appcelerator" didn't work because of nested node_modules creating a too long path that Windows 10 was unable to move or delete (same for .titanium)
      Use 7-zip File Manager + "shift+delete" to delete these long paths.

      3- Install Appcelerator studio, let it download third parties like node.

      4- create a default mobile app for android only, launch on emulator or device

      5- see attached logs on this ticket (and custom logs for more info) for complete result :

      2017-05-10T18:19:57.879Z | DEBUG | [PLUGIN-LOAD] 0ms C:\Users\user\.appcelerator\install\6.2.0\package\appc.js
      2017-05-10T18:19:58.269Z | DEBUG | [PLUGIN-LOAD] 390ms C:\Users\user\.appcelerator\install\6.2.0\package\node_modules\appc-cli-titanium\appc.js
      2017-05-10T18:19:58.269Z | DEBUG | run plugin: C:\Users\user\.appcelerator\install\6.2.0\package\node_modules\appc-cli-titanium
      2017-05-10T18:19:58.269Z | DEBUG | [PLUGIN-LOAD] 0ms C:\Users\user\.appcelerator\install\6.2.0\package\node_modules\arrow\appc.js
      2017-05-10T18:19:58.269Z | DEBUG | run plugin: C:\Users\user\.appcelerator\install\6.2.0\package\node_modules\arrow
      2017-05-10T18:19:58.269Z | TRACE | plugin "arrow" failed its "when" function check, skipping...
      2017-05-10T18:19:58.269Z | TRACE | loading plugin "titanium" for command "run" CLI options via function
      2017-05-10T18:19:58.269Z | TRACE | loading plugin "titanium" for command "run" CLI options via array
      2017-05-10T18:19:58.269Z | TRACE | executing command "run" with the following plugins:
      2017-05-10T18:19:58.285Z | TRACE | Attempting to load session info from config file
      2017-05-10T18:19:58.285Z | TRACE | check if session is invalidated
      2017-05-10T18:19:58.519Z | TRACE | refresh session expiry to: 1495045206737
      2017-05-10T18:19:58.519Z | TRACE | session expiry 1495045206737 false
      2017-05-10T18:19:58.519Z | TRACE | session already loaded in opts.session
      2017-05-10T18:19:58.519Z | DEBUG | Titanium Downloads Last Checked: 1494402944711
      2017-05-10T18:19:58.597Z | TRACE | No project alloy hook; skipping update to 1.0.0
      2017-05-10T18:20:00.214Z | ERROR | An uncaught exception was thrown!
      Bad argument
      2017-05-10T18:20:00.214Z | ERROR | Bad argument
      2017-05-10T18:20:00.214Z | TRACE | TypeError: Bad argument
      at TypeError (native)
      at ChildProcess.spawn (internal/child_process.js:274:26)
      at exports.spawn (child_process.js:362:9)
      at winAppDeployCmdEnumerate (C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\lib\wptool.js:61:11)
      at C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\lib\wptool.js:154:5
      at C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\node_modules\async\lib\async.js:718:13
      at async.forEachOf.async.eachOf (C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\node_modules\async\lib\async.js:233:13)
      at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\node_modules\async\lib\async.js:717:9)
      at Object.async.parallel (C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\node_modules\async\lib\async.js:731:9)
      at C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\lib\wptool.js:151:9
      at C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\lib\windowsphone.js:210:11
      at C:\ProgramData\Titanium\mobilesdk\win32\6.0.4.GA\node_modules\windowslib\lib\utilities.js:49:3
      at nextTickCallbackWith0Args (node.js:420:9)
      at process._tickCallback (node.js:349:13)

      Maybe related to this error, I am not able to configure windows as suggested in the dashboard (see attached screenshots)

      Even when I try to select the Windows SDK location (see result on second screenshot)

      So Windows is never green-checked on dashboard (see background in screenshots).

      I don't understand why it searches for windows Phone SDK where I just want to build for android on this app though, and with registry keys that don't exist on my computer..


          Issue Links



              • Assignee:
                eharris Ewan Harris
                cfauconnier Clement Fauconnier
              • Watchers:
                1 Start watching this issue


                • Created:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    Sync status:
                    Last received:
                    Last sent:

                    Git Integration