The app hangs if the emulator is unresponsive

Issue #67 resolved
Mikhail Lopatkin repo owner created an issue

Start the emulator

Start the app

The app cannot connect to the emulator. If I try to use "Connect to device", the app hangs completely.

Here is the log: {{{ 2011-10-13 11:41:49,387 [main] INFO org.bitbucket.mlopatkin.android.logviewer.Main - Android Log Viewer 0.17.2 2011-10-13 11:41:49,872 [main] DEBUG org.bitbucket.mlopatkin.android.liblogcat.ddmlib.AdbConnectionManager - ADB library initialization 2011-10-13 11:41:50,044 [Device List Monitor] DEBUG org.bitbucket.mlopatkin.android.liblogcat.ddmlib.AdbDeviceManager - Device connected: emulator-5554 2011-10-13 11:41:55,996 [pool-2-thread-1] WARN org.bitbucket.mlopatkin.android.liblogcat.ddmlib.AdbDataSource - Connection to adb failed due to timeout com.android.ddmlib.TimeoutException at com.android.ddmlib.AdbHelper.read(AdbHelper.java:648) at com.android.ddmlib.AdbHelper.read(AdbHelper.java:616) at com.android.ddmlib.AdbHelper.readAdbResponse(AdbHelper.java:216) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:378) at com.android.ddmlib.Device.executeShellCommand(Device.java:284) at org.bitbucket.mlopatkin.android.liblogcat.ddmlib.AdbDataSource$AdbShellCommand.run(AdbDataSource.java:167) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2011-10-13 11:41:55,996 [pool-2-thread-1] DEBUG org.bitbucket.mlopatkin.android.liblogcat.ddmlib.AdbDataSource - The command 'ls /dev/log/' sucessfully terminated

}}}

Comments (2)

  1. Mikhail Lopatkin reporter

    Fixed #67 - closing the shell reader if an exception occurs during adb command processing. Needs further rework to notify user about failure.

    Wiki macro error: Changeset 31ca0220fb94 not found.

  2. Log in to comment