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

scrcpy closes itself. Sometimes. #281

Closed
Azuite opened this issue Oct 1, 2018 · 6 comments
Closed

scrcpy closes itself. Sometimes. #281

Azuite opened this issue Oct 1, 2018 · 6 comments

Comments

@Azuite
Copy link

Azuite commented Oct 1, 2018

scrcpy starts normally and I am able to use it but sometimes this happens and it closes

scrcpy-server.jar: 1 file pushed. 3.0 MB/s (18570 bytes in 0.006s)
INFO: Initial texture: 480x272
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
[h264 @ 00000000026ecf80] Invalid level prefix
[h264 @ 00000000026ecf80] error while decoding MB 15 8
[h264 @ 00000000026ecf80] concealing 304 DC, 304 AC, 304 MV errors in P frame
WARN: Cannot terminate server
@rom1v
Copy link
Collaborator

rom1v commented Oct 1, 2018

Interesting, it seems the server had a problem. Are there any relevant logs in the output of adb logcat when this happens?

On which device does this occur?

@rom1v
Copy link
Collaborator

rom1v commented Oct 2, 2018

@Azuite Also see #283.

@ajaydono
Copy link

ajaydono commented Oct 2, 2018

Initial setup: Was using front PC USB 2.0

Error occurred:

scrcpy-server.jar: 1 file pushed. 0.6 MB/s (19342 bytes in 0.032s)
INFO: Initial texture: 720x1280
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
[h264 @ 000000000261cd00] corrupted macroblock 5 31 (total_coeff=-1)
[h264 @ 000000000261cd00] error while decoding MB 5 31
[h264 @ 000000000261cd00] concealing 2249 DC, 2249 AC, 2249 MV errors in P frame
WARN: Cannot terminate server

Trying to relaunch had an error:

adb: error: failed to get feature set: device offline
ERROR: "adb push" returned with value 1

Fixed: Changed the USB port behind PC directly from the motherboard
High possibility there was not enough power on the front USB port.

Thanks @rom1v for Scrcpy! Much better than Visor!

@Azuite
Copy link
Author

Azuite commented Oct 4, 2018

I was using Oppo R9.

It seems my problem is the same as @kr898. I will try using the USB port from my computer and see what happens.

Unfortunately I don't have the log of when it happened. The problem didn't occur when I'm using it in Virtual Box and it was running throughout the whole night and only occurs when I use it on my com sometimes.

@haytham-med
Copy link

When devive is offline, that means you didnot disconnect adb, you need to disconnect after the session to avoid offline problems.

@fdaf11
Copy link

fdaf11 commented May 23, 2022

@rom1v I Tried, but it still crash; and i think it is this problem:
https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions
and the command is :
setx ADB=/path/to/your/adb /M
it resolve my problem! Thanks This Tool!

PS:
I was inspired by the log output of this software ↓
https://github.com/barry-ran/QtScrcpy
about : error:adb server version (39) doesn't match this client (41); killing...

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

No branches or pull requests

5 participants