Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26293] Android: node-titanium-sdk 0.6.0 doesn't wait for Genymotion cold boot in 7_3_X

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionDuplicate
Resolution Date2018-08-13T19:59:29.000+0000
Affected Version/sRelease 7.3.0, node-titanium-sdk 0.6.0
Fix Version/sn/a
ComponentsAndroid, CLI
Labelsn/a
ReporterJeroen van Dijk
AssigneeChris Barber
Created2018-08-12T15:35:05.000+0000
Updated2018-08-13T19:59:29.000+0000

Description

The 7_3_X branch was bumped to version 0.6.0 of the node-titanium-sdk. When using that branch to boot a Genymotion emulator (v2.12.0) the first run isn't working anymore. A second run with a running emulator does properly boot an Android app. Expected behaviour: ---
[INFO]  Launching emulator: emu-galaxy-s7
[TRACE] Starting emulator: emu-galaxy-s7
[TRACE] Checking if emulator emu-galaxy-s7 is running...
[TRACE] Detecting if emu-galaxy-s7 exists...
[TRACE] Found 2 emulators
[TRACE] Emulator exists, detecting all running emulators and connected devices...
[TRACE] Detected 0 running emulators and connected devices
[TRACE] Emulator not running, detecting emulator info
[TRACE] Found 2 emulators
[TRACE] Starting the emulator...
[INFO]  Running: /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player --vm-name "emu-galaxy-s7"
[TRACE] Emulator is starting, monitoring boot state...
[TRACE] Checking the boot state for the next 240000 ms
[TRACE] Waiting for emulator to register with ADB
[TRACE] Emulator process started
........
[TRACE] Found 1 devices, checking if any of them are the emulator...
[TRACE] Emulator is running!
[TRACE] Checking if boot animation has finished...
[TRACE] Emulator is not booted yet; checking again in 2000 ms
[TRACE] Emulator is not booted yet; checking again in 2000 ms
[TRACE] Emulator is not booted yet; checking again in 2000 ms
[TRACE] Emulator is booted, emitting booted event
[INFO]  Emulator is booted
[INFO]  SD card not required, skipping mount check
[INFO]  Emulator ready!
--- Current behaviour using (7.3.0.v20180809095942): ---
[INFO]  Launching emulator: emu-galaxy-s7
[TRACE] Starting emulator: emu-galaxy-s7
[TRACE] Checking if emulator emu-galaxy-s7 is running...
[TRACE] Detecting if emu-galaxy-s7 exists...
[TRACE] Found 2 emulators
[TRACE] Emulator exists, detecting all running emulators and connected devices...
[TRACE] Detected 0 running emulators and connected devices
[TRACE] Emulator not running, detecting emulator info
[TRACE] Found 2 emulators
[TRACE] Starting the emulator...
[INFO]  Running: /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player --vm-name "emu-galaxy-s7"

/Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulators/genymotion.js:41
		return finished(null, cache);
         ^
TypeError: Cannot set property 'child' of undefined
    at /Users/jvandijk/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/jvandijk/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/jvandijk/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/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:417:11)
    at /Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:110:4
    at Object.detect (/Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/android.js:77:10)
    at EmulatorManager.<anonymous> (/Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:85:11)
    at /Users/jvandijk/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/jvandijk/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/jvandijk/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/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:135:9)
    at ADB.devices (/Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/adb.js:438:23)
    at EmulatorManager.<anonymous> (/Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:145:7)
    at /Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:110:4
    at Object.detect (/Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/android.js:77:10)
    at EmulatorManager.<anonymous> (/Users/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/lib/emulator.js:85:11)
    at /Users/jvandijk/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/jvandijk/Library/Application Support/Titanium/mobilesdk/osx/7.3.0.v20180809095942/node_modules/node-titanium-sdk/node_modules/async/dist/async.js:473:16
---

Comments

  1. Sharif AbuDarda 2018-08-12

    Hello, Please provide the log "appc ti setup check" in here. Thanks.
  2. Jeroen van Dijk 2018-08-12

    Here you are
       Appcelerator Command-Line Interface, version 7.0.2
       Copyright (c) 2014-2018, Appcelerator, Inc.  All Rights Reserved.
       
       Enter ctrl-c at any time to quit.
       
       ──────────────────┤ Check Environment ├───────────────────
       
       Node.js
         ✓  node               installed (v8.11.3)
         ✓  npm                installed (v5.6.0)
       
       Titanium CLI
         ★  cli                new version v5.2.0 available (currently v5.0.14)
       
       Titanium CLI Dependencies
         ✓  acs                up-to-date (v2.0.8)
         ✓  alloy              up-to-date (v1.11.0)
         ✓  appc-cli-titanium  up-to-date (v4.4.8)
         ✓  appc-inquirer      up-to-date (v0.1.10)
         ✓  appc-logger        up-to-date (v1.1.27)
         ✓  appc-platform-sdk  up-to-date (v3.0.1)
         ✓  appcd              up-to-date (v1.0.1)
         ✓  arrow              up-to-date (v3.0.0)
         ✓  async              up-to-date (v1.5.2)
         ✓  chalk              up-to-date (v1.1.3)
         ✓  char-spinner       up-to-date (v1.0.1)
         ✓  columnify          up-to-date (v1.5.4)
         ✓  commander          up-to-date (v2.9.0)
         ✓  debug              up-to-date (v2.6.9)
         ✓  ejs                up-to-date (v2.5.7)
         ✓  fields             up-to-date (v0.1.24)
         ✓  fs-extra           up-to-date (v0.26.7)
         ✓  inquirer           up-to-date (v0.11.4)
         ✓  ip                 up-to-date (v1.1.5)
         ✓  jwt-simple         up-to-date (v0.3.1)
         ✓  lodash             up-to-date (v3.10.1)
         ✓  mkdirp             up-to-date (v0.5.1)
         ✓  node-appc          up-to-date (v0.2.43)
         ✓  node-forge         up-to-date (v0.6.49)
         ✓  node-ios-device    up-to-date (v1.5.0)
         ✓  npm-conf           up-to-date (v1.1.3)
         ✓  pac-proxy-agent    up-to-date (v2.0.0)
         ✓  plural             up-to-date (v0.2.1)
         ✓  progress           up-to-date (v1.1.8)
         ✓  recursive-readdir  up-to-date (v2.2.1)
         ✓  request            up-to-date (v2.83.0)
         ✓  retire             up-to-date (v1.4.0)
         ✓  semver             up-to-date (v5.5.0)
         ✓  tar                up-to-date (v4.0.2)
         ✓  tiapp.xml          up-to-date (v0.2.2)
         ✓  titanium           up-to-date (v5.0.14)
         ✓  version-bump-prompt up-to-date (v3.1.2)
         ✓  which              up-to-date (v1.3.0)
         ✓  wrench             up-to-date (v1.5.9)
       
       Titanium SDK
         ✓  latest sdk         installed (v7.3.0.v20180809095942)
         ✓  selected sdk       up-to-date (v7.3.0.v20180809095942)
       
       Mac OS X Environment
         ✓  CLI Tools          installed
       
       iOS Environment
         ✓  Xcode              installed (9.4.1)
         ✓  iOS SDK            installed (11.4)
         ✓  WWDR cert          installed
         ✓  developer cert     installed (6 found)
         ✓  distribution cert  installed (5 found)
         ✓  dev provisioning   installed (19 found)
         ✓  dist provisioning  installed (14 found)
       
       Android Environment
         ✓  sdk                installed (/usr/local/share/android-sdk)
         ✓  tools              installed (v26.1.1)
         ✓  platform tools     installed (v27.0.1)
         ✓  build tools        installed (v25.0.3)
         ✓  adb                installed /usr/local/share/android-sdk/platform-tools/adb
         ✕  android            "android" executable not found; please reinstall Android SDK
         ✓  emulator           installed /usr/local/share/android-sdk/emulator/emulator
         ✓  mksdcard           installed /usr/local/share/android-sdk/tools/mksdcard
         ✓  zipalign           installed /usr/local/share/android-sdk/build-tools/25.0.3/zipalign
         ✓  aapt               installed /usr/local/share/android-sdk/build-tools/25.0.3/aapt
         ✓  aidl               installed /usr/local/share/android-sdk/build-tools/25.0.3/aidl
         ✓  targets            installed (4 found)
         !  avds               no avds found
         ✓  ndk                installed (14.1.3816874)
         ✓  ndk-build          installed (/usr/local/share/android-sdk/ndk-bundle/ndk-build)
       
       Java Development Kit
         ✓  jdk                installed (v1.8.0)
         ✓  java               installed /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/java
         ✓  javac              installed /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/javac
         ✓  keytool            installed /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/keytool
         ✓  jarsigner          installed /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/jarsigner
       
       Intel® Hardware Accelerated Execution Manager (HAXM)
         ✓  compatible
         ✓  installed
       
       Network
         ✓  online
         -  no proxy server configured
         ✕  http://preview.appcelerator.com (HTTP status: 502) is unreachable
         ✕  https://preview.appcelerator.com (HTTP status: 502) is unreachable
         ✓  Java-based connection test
       
       Directory Permissions
         ✓  home directory
         ✓  titanium config directory
         ✓  titanium sdk install directory
         ✓  temp directory
       

JSON Source