[UnhandledException]: IOException android.system.ErrnoException open failed: ENOENT (No such file or directory) (original) (raw)

Please read the prerequisites to run scrcpy.

Also read the FAQ and check if your issue already exists.

Environment

Describe the bug

Execute scrcpy --no-video --audio-buffer=200

[server] INFO: Device: [HUAWEI] HUAWEI ICSA-F1 (Android 12)
[server] ERROR: Controller error
java.io.IOException: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
        at com.genymobile.scrcpy.control.UhidManager.open(UhidManager.java:69)
        at com.genymobile.scrcpy.control.Controller.handleEvent(Controller.java:213)
        at com.genymobile.scrcpy.control.Controller.control(Controller.java:102)
        at com.genymobile.scrcpy.control.Controller.lambda$start$0$com-genymobile-scrcpy-control-Controller(Controller.java:110)
        at com.genymobile.scrcpy.control.Controller$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:933)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
        at libcore.io.Linux.open(Native Method)
        at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273)
        at android.system.Os.open(Os.java:501)
        at com.genymobile.scrcpy.control.UhidManager.open(UhidManager.java:52)
        ... 5 more
INFO: Renderer: direct3d
ERROR: Demuxer 'audio': stream disabled due to connection error
WARN: Device disconnected

Any clue?