Jørgen Tjernø updated JENKINS-11952:
------------------------------------
Description:
Sometimes the emulator will fail to start up, this seems to only (or mostly) happen when snapshots are enabled. When this happens, it'll go in a loop of, until it times out:
{code}$ /opt/android-sdk/platform-tools/adb connect emu:38996,48597
$ /opt/android-sdk/platform-tools/adb -s emulator-38996 shell getprop dev.bootcomplete{code}
This seems to be because sometimes the adb server never moves the device from the "offline" to the "online" status. Forcing a reconnect seems to fix this - like restarting the adb server.
was:
Sometimes the emulator will fail to start up, this seems to only (or mostly) happen when snapshots are enabled. When this happens, it'll go in a loop of, until it times out:
{code} $ /opt/android-sdk/platform-tools/adb connect emu:38996,48597
$ /opt/android-sdk/platform-tools/adb -s emulator-38996 shell getprop dev.bootcomplete{code}
This seems to be because sometimes the adb server never moves the device from the "offline" to the "online" status. Forcing a reconnect seems to fix this - like restarting the adb server.
> Emulator occasionally hangs indefinitely on startup, unable to connect adb
> --------------------------------------------------------------------------
>
> Key: JENKINS-11952
> URL: https://issues.jenkins-ci.org/browse/JENKINS-11952
> Project: Jenkins
> Issue Type: Bug
> Components: android-emulator
> Affects Versions: current
> Environment: Android-Emulator 1.19-SNAPSHOT (from git)
> Jenkins 1.438
> SDK r15
> Reporter: Jørgen Tjernø
> Assignee: Christopher Orr
>
> Sometimes the emulator will fail to start up, this seems to only (or mostly) happen when snapshots are enabled. When this happens, it'll go in a loop of, until it times out:
> {code}$ /opt/android-sdk/platform-tools/adb connect emu:38996,48597
> $ /opt/android-sdk/platform-tools/adb -s emulator-38996 shell getprop dev.bootcomplete{code}
> This seems to be because sometimes the adb server never moves the device from the "offline" to the "online" status. Forcing a reconnect seems to fix this - like restarting the adb server.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
Summary: Emulator occasionally hangs indefinitely on startup, unable to connect adb
Jørgen Tjernø commented on JENKINS-11952:
-----------------------------------------
I've submitted a proposed fix for this here:
https://github.com/jorgenpt/android-emulator-plugin/commit/4aff0222c3be662cb4e5db11834dc69b79f686c4
It's a part of this pull request:
https://github.com/jenkinsci/android-emulator-plugin/pull/8
The change makes it use TCP connections for the emulators, which can be killed & reconnected.
> Emulator occasionally hangs indefinitely on startup, unable to connect adb
> --------------------------------------------------------------------------
Christopher Orr closed JENKINS-11952.
-------------------------------------
Resolution: Fixed
Version 2.0 has now been released, which includes your patch.
> Emulator occasionally hangs indefinitely on startup, unable to connect adb
> --------------------------------------------------------------------------
|
|
|||||||||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
|
|
|
|
||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
|
||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
This message is automatically generated by JIRA. |
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
This message is automatically generated by JIRA. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|