Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.84k stars 10.62k forks source link

SCRCPY Broken for Bliss OS #4784

Open FRTI64 opened 7 months ago

FRTI64 commented 7 months ago

Environment

Describe the bug A clear and concise description of what the bug is.

On errors, please provide the output of the console (and adb logcat if relevant).

$> .\scrcpy.exe
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  172.23.194.55:5555              device  Virtual_Machine
C:\Users\FRTI64\Downloads\scrcpy-win64-v2.4\scrcpy-win64-v... file pushed, 0 skipped. 97.3 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [Microsoft Corporation] Microsoft Corporation Virtual Machine (Android 13)
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]
java.lang.UnsupportedOperationException: Cannot create AudioRecord
        at android.media.AudioRecord$Builder.build(AudioRecord.java:977)
        at com.genymobile.scrcpy.FakeContext$$ExternalSyntheticApiModelOutline0.m(Unknown Source:0)
        at com.genymobile.scrcpy.AudioCapture.createAudioRecord(AudioCapture.java:68)
        at com.genymobile.scrcpy.AudioCapture.startRecording(AudioCapture.java:111)
        at com.genymobile.scrcpy.AudioCapture.start(AudioCapture.java:130)
        at com.genymobile.scrcpy.AudioEncoder.encode(AudioEncoder.java:190)
        at com.genymobile.scrcpy.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-AudioEncoder(AudioEncoder.java:121)
        at com.genymobile.scrcpy.AudioEncoder$$ExternalSyntheticLambda1.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:1012)
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m800...
[server] INFO: Retrying...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.IllegalStateException
        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3572)
        at com.genymobile.scrcpy.SurfaceEncoder.encode(SurfaceEncoder.java:157)
        at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:76)
        at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253)
        at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:1012)
INFO: Renderer: direct3d
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1024x768
WARN: Device disconnected

Please do not post screenshots of your terminal, just post the content as text instead.

helamonster commented 3 weeks ago

I'm experiencing the same problem with BlissOS 16.9.7 and scrcpy ( both versions 1.25 AND 2.7 ) on Ubuntu 24.04.

nikandlv commented 5 days ago

Same issue