Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO Exception happened while getting device screenshot #43

Open
lesca opened this issue Aug 20, 2017 · 11 comments
Open

IO Exception happened while getting device screenshot #43

lesca opened this issue Aug 20, 2017 · 11 comments

Comments

@lesca
Copy link

lesca commented Aug 20, 2017

I got tons of error messages as below:

[ScreenCaptureRunnable.java:58]2017-08-21 00:56:57,952 [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-08-21 00:56:58,062 [Screen Capturer] �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.api.injector.ScreenCaptureRunnable - Failed to get device screenshot

They are just repeated again and again.

Platform is Android-x86 running in Hyper-V VM hosting on WS2016.

It's appreciated if you give me some advises to solve this.

@xSAVIKx
Copy link
Owner

xSAVIKx commented Aug 20, 2017

@lesca Hi, are you able to get a screenshot via adb directly?

I haven't tested the app against any VMs.

@lesca
Copy link
Author

lesca commented Aug 26, 2017

@xSAVIKx What's the command to take screenshot with "adb" ? I'd like to have a try.

@nazyrov
Copy link

nazyrov commented Sep 18, 2017

To get screenshot via adb
adb shell screencap /sdcard/screen.png && adb pull /sdcard/screen.png

@4EPHblN
Copy link

4EPHblN commented Nov 24, 2019

@xSAVIKx Hi, i get this problem for AndroidScreencast 0.0.13s on Win7 wiht JDK 13.0.1

 [ScreenCaptureRunnable.java:58]2019-11-24 14:22:43,775 [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]2019-11-24 14:22:43,876 [Screen Capturer]     �[34mINFO �[0;39m com.github.xsavikx.androidscreencast.api.injector.ScreenCaptureRunnable - Failed to get device screenshot

This warning shows in console around one/two times per second.

@xSAVIKx
Copy link
Owner

xSAVIKx commented Nov 25, 2019

@4EPHblN do you have the AndroidScreencast.log file? There should be more detailed logs.
Also, can you try to grab the screenshot manually?

The other suggestion is to use Java8 instead.

@4EPHblN
Copy link

4EPHblN commented Nov 25, 2019

@xSAVIKx
I have the same warning on JDK 8u231.
Manually the screenshot grabs without any problems.
ASUS PC Link which use similar technology works fine.
AndroidScreencast.log

@xSAVIKx
Copy link
Owner

xSAVIKx commented Nov 26, 2019

@4EPHblN yeah, the logs were not helpful here :-( Can you please try the new v0.0.16s version? I've updated some dependencies and the logs should be more reliable now.

@4EPHblN
Copy link

4EPHblN commented Nov 27, 2019

@xSAVIKx You link shows 404.

@xSAVIKx
Copy link
Owner

xSAVIKx commented Nov 27, 2019

Yeah, looks like draft releases are not publicly available :-(

Here are the bundles.
androidscreencast-0.0.16s-linux.tar.gz
androidscreencast-0.0.16s-macosx.tar.gz
androidscreencast-0.0.16s-windows.zip

@4EPHblN
Copy link

4EPHblN commented Nov 27, 2019

@xSAVIKx
An update solves this issue for me.
AndroidScreencast.log

@xSAVIKx
Copy link
Owner

xSAVIKx commented Nov 28, 2019

@4EPHblN that's great to hear! I've also released this version and it's now available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants