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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 7.3.0
    • Fix Version/s: Release 7.3.1
    • Component/s: Android
    • Labels:
    • Environment:
    • Sprint:
      2016 Sprint 17 SDK

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                lchoudhary Lokesh Choudhary
                Reviewer:
                Christopher Williams
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • It looks like Backbone Issue Sync is not enabled for your project.

                    Git Source Code