[TIMOB-26293] Android: node-titanium-sdk 0.6.0 doesn't wait for Genymotion cold boot in 7_3_X
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2018-08-13T19:59:29.000+0000 |
Affected Version/s | Release 7.3.0, node-titanium-sdk 0.6.0 |
Fix Version/s | n/a |
Components | Android, CLI |
Labels | n/a |
Reporter | Jeroen van Dijk |
Assignee | Chris Barber |
Created | 2018-08-12T15:35:05.000+0000 |
Updated | 2018-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
---
Hello, Please provide the log "appc ti setup check" in here. Thanks.
Here you are