Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26280] Android: Build for genymotion emulator fails with "Cannot set property 'child' of undefined" in node-titanium-sdk

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-08-21T12:57:20.000+0000
Affected Version/sRelease 7.3.0
Fix Version/sRelease 7.3.1
ComponentsAndroid
Labelsregression
ReporterLokesh Choudhary
AssigneeChris Barber
Created2018-08-09T23:38:23.000+0000
Updated2018-08-22T09:18:49.000+0000

Description

Steps to reproduce:

1. Try to build for genymotion emulator with the specified SDK.

Actual results:

1. The build fails with error:
[INFO] :   Launching emulator: Google Nexus 6P - 6.0.0 - API 23 - 1440x2560
[TRACE] :  Starting emulator: Google Nexus 6P - 6.0.0 - API 23 - 1440x2560
[TRACE] :  Checking if emulator Google Nexus 6P - 6.0.0 - API 23 - 1440x2560 is running...
[TRACE] :  Detecting if Google Nexus 6P - 6.0.0 - API 23 - 1440x2560 exists...
[TRACE] :  Found 26 emulators
[TRACE] :  Emulator exists, detecting all running emulators and connected devices...
[TRACE] :  Detected 1 running emulators and connected devices
[TRACE] :  Checking 1 devices to see if it's the emulator we want
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[TRACE] :  The emulator is NOT running
[TRACE] :  Emulator not running, detecting emulator info
[TRACE] :  Found 26 emulators
[TRACE] :  Starting the emulator...
[INFO] :   Running: /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player --vm-name "Google Nexus 6P - 6.0.0 - API 23 - 1440x2560"
2018-08-09T23:23:34.385Z | ERROR  | An uncaught exception was thrown!
Cannot set property 'child' of undefined
2018-08-09T23:23:34.385Z | ERROR  | Cannot set property 'child' of undefined
2018-08-09T23:23:34.385Z | TRACE  | TypeError: Cannot set property 'child' of undefined
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:531:26
    at Object.detect (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:41:10)
    at Object.start (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:500:10)
    at EmulatorManager.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:417:11)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:110:4
    at Object.detect (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/android.js:77:10)
    at EmulatorManager.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:85:11)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3888:9
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1064:13)
---------------------------------------------
    at Socket.Readable.on (_stream_readable.js:772:35)
    at Connection.exec (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:135:9)
    at ADB.shell (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:524:7)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:386:11
    at ChildProcess.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:61:3)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
---------------------------------------------
    at Object.run (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:60:8)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:341:21
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3880:24
    at eachOfArrayLike (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1069:9)
    at eachOf (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1117:5)
    at _parallel (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3879:5)
    at Object.parallelLimit [as parallel] (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3962:5)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:321:9
    at ChildProcess.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:61:3)
---------------------------------------------
    at Object.run (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:60:8)
    at getVMInfo (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:316:18)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:440:5
    at Object.detect (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:41:10)
    at Object.isRunning (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:438:8)
    at EmulatorManager.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:159:65)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:429:3
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3888:9
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:473:16
---------------------------------------------
    at Socket.Readable.on (_stream_readable.js:772:35)
    at Connection.exec (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:135:9)
    at ADB.shell (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:524:7)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:386:11
    at ChildProcess.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:61:3)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
---------------------------------------------
    at Object.run (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:60:8)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:341:21
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3880:24
    at eachOfArrayLike (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1069:9)
    at eachOf (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1117:5)
    at _parallel (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3879:5)
    at Object.parallelLimit [as parallel] (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3962:5)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:321:9
    at ChildProcess.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:61:3)
---------------------------------------------
    at Object.run (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/node-appc/lib/subprocess.js:60:8)
    at getVMInfo (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:316:18)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:466:4
    at Object.detect (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:41:10)
    at Object.isEmulator (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:464:7)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:196:13
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:3880:24
    at eachOfArrayLike (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1069:9)
    at eachOf (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:1117:5)
---------------------------------------------
    at Socket.Readable.on (_stream_readable.js:772:35)
    at Connection.exec (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:274:9)
    at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:528:9
    at Connection.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:192:8)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)

Expected result:

1. The build should not fail & build the app successfully.

Comments

  1. Chris Barber 2018-08-13

    node-titanium-sdk PR: https://github.com/appcelerator/node-titanium-sdk/pull/43 Fun fact: this bug has been around since Titanium SDK 3.2.0 (4 years ago) and secondly, the AVD code had the same bug and was fixed in June 2018 in [917b0d8](https://github.com/appcelerator/node-titanium-sdk/commit/917b0d8cd6d85a7419f52ee769c9611323a29f29).
  2. Jeroen van Dijk 2018-08-13

  3. Chris Barber 2018-08-13

    Correct you are [~jvandijk]! Thank you!
  4. Lokesh Choudhary 2018-08-13

    FR Passed. Waiting for CR.
  5. Christopher Williams 2018-08-21

    Merged, released node-titanium-sdk 0.6.1. Updated 7_3_X, master, and next branches to node-titanium-sdk 0.6.1.
  6. Samir Mohammed 2018-08-22

    *Closing ticket* Verified fix in SDK Version: 7.3.1.v20180821233955, 7.4.0.v20180821233840 and SDK Version: 7.5.0.v20180821233900 Test and other information can be found at: https://github.com/appcelerator/node-titanium-sdk/pull/43

JSON Source