App gets stuck on exit
ohadschn opened this issue · 5 comments
OSX El Capitan.
Whenever I quit the program it hangs and I'm forced to kill it:
java -jar androidscreencast-0.0.10s-executable.jar
19:56:35 [main] INFO DeviceChooserApplication - Starting application
19:56:38 [main] INFO DeviceChooserApplication - 1 device was found by ADB
19:56:38 [main] INFO DeviceChooserApplication - huawei-nexus_6p-ENU7N15B30002736 was chosen
19:56:39 [main] INFO AndroidScreencastApplication - Starting application
19:56:39 [Screen Capturer] INFO ScreenCaptureRunnable - Starting screen capturing
19:57:08 [Thread-2] INFO AndroidScreencastApplication - Stopping application
19:57:08 [Screen Capturer] WARN ScreenCaptureRunnable - IO Exception happened while getting device screenshot. Will try again in 100 ms.
19:57:08 [Screen Capturer] INFO ScreenCaptureRunnable - Failed to get device screenshot
19:57:08 [Screen Capturer] INFO ScreenCaptureRunnable - Stopping screen capturing
Killed: 9
Hi @ohadschn.
Thanks for the info, unfortunately I don't have anything with OSX near, so I wouldn't be able to verify it, but could you please share AndroidScreencast.log file? It should be somewhere near the .jar
executable.
Sure:
2017-03-14 20:28:16,872 [main] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.app.DeviceChooserApplication - Starting application
[DeviceChooserApplication.java:44]2017-03-14 20:28:17,053 [main] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.app.DeviceChooserApplication - 1 device was found by ADB
[DeviceChooserApplication.java:53]2017-03-14 20:28:17,103 [main] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.app.DeviceChooserApplication - huawei-nexus_6p-XXXXXXXXXX was chosen
[DeviceChooserApplication.java:64]2017-03-14 20:28:17,701 [main] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.app.AndroidScreencastApplication - Starting application
[AndroidScreencastApplication.java:52]2017-03-14 20:28:17,796 [Screen Capturer] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.api.injector.ScreenCaptureRunnable - Starting screen capturing
[ScreenCaptureRunnable.java:51]2017-03-14 20:28:25,381 [Thread-2] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.app.AndroidScreencastApplication - Stopping application
[AndroidScreencastApplication.java:37]2017-03-14 20:28:25,401 [Screen Capturer] �[31mWARN �[0;39m com.github.xsavikx.androidscreencast.api.injector.ScreenCaptureRunnable - IO Exception happened while getting device screenshot. Will try again in 100 ms.
[ScreenCaptureRunnable.java:87]2017-03-14 20:28:25,502 [Screen Capturer] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.api.injector.ScreenCaptureRunnable - Failed to get device screenshot
[ScreenCaptureRunnable.java:58]2017-03-14 20:28:25,502 [Screen Capturer] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.api.injector.ScreenCaptureRunnable - Stopping screen capturing
[ScreenCaptureRunnable.java:68]
Hm. Weird that there is no debug logging at all.
Are you using released version or you compiled sources on you own?
@ohadschn , Have just tried to reproduce on Win10 but it works as expected - everything is shutting down.
I won't have ability to invest additional time until weekends, but it would be great, if you could test some changes during weekends. I'd add some additional logging and probably will check the problem with ddmlib
doesn't start ADB server when ADB is not configured via app.properies regarding to #16
I'm using the released version: https://github.com/xSAVIKx/AndroidScreencast/releases/download/0.0.10s/androidscreencast-0.0.10s-executable.jar.
Sure, just let me know exactly what you want me to run and I'll try it out..