-
-
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
encoder problem or hardware problem #3120
Comments
This is a problem on the client side, it looks like a build problem. Could you build with sanitizer enabled please?
(or run in gdb to know where this "illegal instruction" happens) |
Because I don't want to recompile the server, I compiled it with reference to common steps and option 2 on the website
Sorry, I don't quite understand the method you gave. Can you be more detailed. |
This is correct 👍
You should not have this error: google/sanitizers#796 Maybe try building with rm -rf d
export CC=clang
meson d -Db_sanitize=address,undefined -Dprebuilt_server=/home/pi/scrcpy/scrcpy-server
ninja -Cd
./run d Otherwise, run it from export SCRCPY_SERVER_PATH=d/server/scrcpy-server
gdb d/app/scrcpy Then, in gdb:
And when it crashes with "illegal instruction":
It should print the backtrace. Paste it here. |
You could also try to remove meson d -Db_sanitize=address -Dprebuilt_server=/home/pi/scrcpy/scrcpy-server |
Hi (1) Common steps, with export CC = Lang, the results are as follows:
(2) Common steps, without export CC = Lang, in gdb , the results are as follows:
(3) build scrcpy in Simple, and run it in GDB, the result is as follows:
Let me remind again that my Linux host is the raspbian Linux system of arm32, Is the problem still due to the hardware codec I feel that test (3) can reflect the problem and help analyze it. How to solve it? Thanks a lot! |
Hello, moderator. After that, I did several experiments and installed clang. The compilation was successful, but there was still an illegal instruction error when running. The situation is as follows: pi@raspberrypi:~/scrcpy $ rm -rfv d pi@raspberrypi:~/scrcpy $ export CC=clang pi@raspberrypi:~/scrcpy $ meson d -Db_sanitize=address -Dprebuilt_server=/home/pi/scrcpy/scrcpy-server pi@raspberrypi:~/scrcpy $ ninja -Cd pi@raspberrypi:~/scrcpy $ ./run d
pi@raspberrypi:~/scrcpy $ export SCRCPY_SERVER_PATH=d/server/scrcpy-server pi@raspberrypi:~/scrcpy $ gdb -q d/app/scrcpy Thread 18 "scrcpy-demuxer" received signal SIGILL, Illegal instruction. The above is the specific test situation. Please help me to see if it can be solved. Thank you! |
Looks like an issue in your ffmpeg build (libavcodec). |
Is there any solution? Those library files are installed through apt. Or guide me to compile those ffmpeg library files on my own machine. |
Environment
Describe the bug
I installed raspbian Linux on Microsoft's surfacert
Then I want to use surfacert as a touch screen
Surfacert is an arm-32-bit NVIDIA processor
Connect my Xiaomi 10s mobile phone (Android 12)
Illegal command error while executing command
After reading the FAQ and other issues, they failed to solve the problem
I tried scrcpy - m1024, -m800, -m600, but all failed
But it's strange that this mobile phone can work normally on windows 10-64 bit system through scrcpy-1.23
The problem should be located on the surfacert device. It seems that it should be the problem of the encoder
I don't know if it can be solved. I hereby ask a question.
Terminal outputs
The text was updated successfully, but these errors were encountered: