-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Error: WARN: Device disconnected + WARN: Could not terminate server #1074
Comments
This happens to me randomly while i'm using my device. Is there a way to look at logs and see what's causing it? It only happens on one machine. |
Run |
I swapped the USB cable and that fixed the issue. Thanks. |
Fixed: 02-28 16:39:29.402 8398 8398 E AndroidRuntime: catch exception for handle application crash
02-28 16:39:29.402 8398 8398 E AndroidRuntime: FATAL EXCEPTION: main
02-28 16:39:29.402 8398 8398 E AndroidRuntime: PID: 8398
02-28 16:39:29.402 8398 8398 E AndroidRuntime: android.media.MediaCodec$CodecException: Error 0xfffffc0e
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at android.media.MediaCodec.native_configure(Native Method)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at android.media.MediaCodec.configure(MediaCodec.java:2023)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at android.media.MediaCodec.configure(MediaCodec.java:1951)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:167)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:68)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at com.genymobile.scrcpy.Server.scrcpy(Server.java:34)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at com.genymobile.scrcpy.Server.main(Server.java:163)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
02-28 16:39:29.402 8398 8398 E AndroidRuntime: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
02-28 16:39:29.403 8398 8398 E scrcpy : Exception on thread Thread[main,5,main]
02-28 16:39:29.403 8398 8398 E scrcpy : android.media.MediaCodec$CodecException: Error 0xfffffc0e
02-28 16:39:29.403 8398 8398 E scrcpy : at android.media.MediaCodec.native_configure(Native Method)
02-28 16:39:29.403 8398 8398 E scrcpy : at android.media.MediaCodec.configure(MediaCodec.java:2023)
02-28 16:39:29.403 8398 8398 E scrcpy : at android.media.MediaCodec.configure(MediaCodec.java:1951)
02-28 16:39:29.403 8398 8398 E scrcpy : at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:167)
02-28 16:39:29.403 8398 8398 E scrcpy : at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:68)
02-28 16:39:29.403 8398 8398 E scrcpy : at com.genymobile.scrcpy.Server.scrcpy(Server.java:34)
02-28 16:39:29.403 8398 8398 E scrcpy : at com.genymobile.scrcpy.Server.main(Server.java:163)
02-28 16:39:29.403 8398 8398 E scrcpy : at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
02-28 16:39:29.403 8398 8398 E scrcpy : at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
02-28 16:39:29.406 8398 8398 E scrcpy : The hardware encoder is not able to encode at the given definition.
02-28 16:39:29.406 8398 8398 E scrcpy : Try with a lower definition:
02-28 16:39:29.406 8398 8398 E scrcpy : scrcpy -m 1024
02-28 16:39:29.407 8398 8398 I app_process: System.exit called, status: 0
02-28 16:39:29.407 8398 8398 I AndroidRuntime: VM exiting with result code 0. |
Excellent contribution, I was already desperate not to know how to correct the error. |
I had te same issue. |
Works for me, thanks. |
I use Fedora 36 and had installed Scrcpy through Snap, but the device connected and then disconnected. I solved by enabling the repository
|
I keep getting the following error every time I try to execute scrcpy:
INFO: scrcpy 1.12.1 https://github.com/Genymobile/scrcpy
C:\Users\david\OneDrive\Software\scrcpy-win64-v1.12.1\scrcpy-server: 1 file pushed. 3.1 MB/s (26202 bytes in 0.008s)
INFO: Initial texture: 1080x2216
WARN: Device disconnected
WARN: Could not terminate server
Press any key to continue...
After pressing enter, the entire thing closes.
Any help will be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: