Genymobile / Genymobile/scrcpy
Scrcpy does not work on F1 VM
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.7k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
**Environment**
- OS: windows
- scrcpy version: 2.0
- installation method: Windows release
- Android version: 7.1.0
**bug description**
it simply does not work on my F1 VM app, basically emulating android on android, but it works on other multiple normal phones i have, his bug occurs only on F1 VM.
> C:\Users\galax\OneDrive\Desktop\ScreenCpy\scrcpy-server: 1 file pushed, 0 skipped. 1.4 MB/s (52867 bytes in 0.037s)
> [server] INFO: Device: Google Pixel XL (Android 7.1.2)
> [server] WARN: Audio disabled: it is not supported before Android 11
> [server] ERROR: Encoding error: java.lang.IllegalStateException: null
> [server] INFO: newMaxSize = 1920
> [server] INFO: Retrying with -m1920...
> [server] INFO: Retrying...
> INFO: Renderer: direct3d
> WARN: Demuxer 'audio': stream explicitly disabled by the device
> INFO: Initial texture: 1080x2312
> [server] INFO: newMaxSize = 1600
> [server] ERROR: Encoding error: java.lang.IllegalStateException: null
> [server] INFO: Retrying with -m1600...
> [server] INFO: Retrying...
> [server] ERROR: Exception on thread Thread[main,10,main]
> android.media.MediaCodec$CodecException: Error 0x80000000
> WARN: Device disconnected
> at android.media.MediaCodec.native_reset(Native Method)
> at android.media.MediaCodec.reset(MediaCodec.java:1796)
> at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:106)
> at com.genymobile.scrcpy.Server.scrcpy(Server.java:133)
> at com.genymobile.scrcpy.Server.main(Server.java:381)
> at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
> at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
>
and there is another one, this happens when i first boot F1 VM, the second time i try i get:
> C:\Users\galax\OneDrive\Desktop\ScreenCpy\scrcpy-server: 1 file pushed, 0 skipped. 10.7 MB/s (52867 bytes in 0.005s)
> Bad system call
> ERROR: Server connection failed
I disconnect and reconnect and I get the same first error
yea I'm sorry I don't know how to make special squares where I put code
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure on the F1 VM using the reported Windows release, Android 7.1.2 environment, and logs. Start with the reported stack frames in ScreenEncoder.java and Server.java; done means the server connects and screen encoding works without MediaCodec or “Bad system call” errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100