-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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 crashes when using --no-window mode and turning off the PC's monitor #5902
Comments
What's the error? (something is written in chinese in the screenshot) Please post the console output as text. Can you reproduce with |
still crash, the output is
段错误 is Segmentation fault |
I cannot reproduce. It seems you installed the binary from linuxbrew. Can you reproduce the problem with:
? |
the official static binary is also crash.
|
ulimit -c unlimited
./scrcpy --record=file.mp4 --no-window # make it crash
# it will generate a core dump in the current directory, a file core.NUMBER
gdb ./scrcpy ./core.NUMBER # adapt NUMBER What's the output? |
I can not find core dump file on Ubuntu 24.10 |
Let's do differently, by compiling the client with ASAN enabled: sudo apt install ffmpeg libsdl2-2.0-0 adb \
gcc git pkg-config meson ninja-build libsdl2-dev \
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
git clone https://github.com/Genymobile/scrcpy
cd scrcpy
meson setup x --buildtype=debug -Db_sanitize=address \
-Dprebuilt_server=/home/xwu/Downloads/scrcpy-linux-x86_64-v3.1/scrcpy-server
meson compile -Cx Then run: meson devenv -Cx
scrcpy --record=file.mp4 --no-window Once it crashes, you should get a stack trace. |
Environment
Describe the bug
Start scrcpy with
scrcpy --v4l2-sink=/dev/video0 --no-window --audio-source=playback --audio-dup
Turn off the PC's monitor
The text was updated successfully, but these errors were encountered: