Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16961] Build fails with error 'Object.keys called on non-object'

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-05-15T20:36:08.000+0000
Affected Version/sRelease 3.3.0
Fix Version/s2014 Sprint 10, 2014 Sprint 10 Tooling, Release 3.3.0
ComponentsCLI
Labelsmodule_cli, qe-3.3.0, qe-testadded
ReporterLokesh Choudhary
AssigneeChris Barber
Created2014-05-14T22:41:03.000+0000
Updated2014-07-04T02:54:21.000+0000

Description

Description:

1. Use the environment mentioned to produce the issue. 2. Create an alloy & classic app in studio. 3. Build/run on device/emulator on any platform.

Actual Result:

1. The build fails & we get the following errors:
C:\Users\Tester\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:185
        throw e;
              ^
TypeError: Object.keys called on non-object
    at Function.keys (native)
    at async.parallel.devices (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\titanium-sdk\lib\windows.js:331:23)
    at C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:524:25
    at C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:111:13
    at Array.forEach (native)
    at _each (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:32:24)
    at async.each (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:110:9)
    at _parallel (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:523:20)
    at async.parallel (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:539:9)
    at C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\titanium-sdk\lib\windows.js:290:9
---------------------------------------------
    at Object.run (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\node-appc\lib\subprocess.js:59:8)
    at C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\titanium-sdk\lib\windows.js:186:22
    at C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:511:21
    at C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:227:13
    at C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:111:13
    at Array.forEach (native)
    at _each (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:32:24)
    at async.each (C:\Users\Tester\AppData\Roaming\Titanium\mobilesdk\win32\3.3.0.v20140514121712\node_modules\async\lib\async.js:110:9)

Expected Result:

1. The app should Build/Run fine without any errors.

Comments

  1. Chris Barber 2014-05-15

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/5686 To test, build an app on a Windows machine that does NOT have any Windows Phone SDKs installed.
  2. Chris Barber 2014-05-17

    Windows specific bug fix: https://github.com/appcelerator/titanium_mobile/pull/5700
  3. Olga Romero 2014-05-30

    Environment tested: Windows 7-32 bit Appcelerator Studio, build: 3.3.0.201405271647 Titanium SDK, build: 3.3.0.v20140530150912 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-beta npm@1.3.2 titanium@3.3.0-beta titanium-code-processor@1.1.1 Device: Galaxy S3 Android version 4.3

JSON Source