scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Segmentation fault (core dumped) in toolbox using the COPR version

Open Viliansh opened this issue 2 years ago • 3 comments

  • [x] I have read the FAQ.
  • [x] I have searched in existing issues.

Environment

  • OS: Fedora Kinoite 38
  • scrcpy version: scrcpy 2.0
  • installation method: COPR
  • device model: Samsung galaxy M21s
  • Android version: 12

Describe the bug scrcpy just show Segmentation fault in nothing more(even when using --verbosity=verbose)

⬢[vdaros@toolbox ~]$ scrcpy --verbosity=verbose
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
Segmentation fault (core dumped)
⬢[vdaros@toolbox ~]$ 

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

Viliansh avatar Mar 20 '23 13:03 Viliansh

Thank you for your report.

Please try installing the latest version manually: https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version (remove the copr package first)

Does it still segfault?

rom1v avatar Mar 20 '23 13:03 rom1v

Does it still segfault?

yep, i even created other toolbox to guaranteed that the COPR was completed removed, and same error

scrcpy --verbosity=verbose
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
Segmentation fault (core dumped)

Viliansh avatar Mar 21 '23 11:03 Viliansh

OK, then could you please build manually, but in debug mode with ASAN enabled:

# build
meson setup d -Db_sanitize=address -Dprebuilt_server=/path/to/scrcpy-server
ninja -Cd

# run
./run d

rom1v avatar Mar 21 '23 11:03 rom1v

Did you close because the is solved?

OK, then could you please build manually, but in debug mode with ASAN enabled:

What was reported by ASAN?

rom1v avatar Jun 10 '23 12:06 rom1v

Did you close because the is solved?

OK, then could you please build manually, but in debug mode with ASAN enabled:

What was reported by ASAN?

I have a similar setup as above (bluefin-dx; based on Fedora Silverblue 39) and did get the same segmentation fault error with the COPR version of scrcpy when installing it first try.

So I followed the steps of building it manually with the prebuilt server. ./run d works, but now so does scrcpy. I tried creating a new toolbox container and followed the same steps and suddenly scrcpy works OOTB.

Not sure what's going on. Here's the ASAN stderr output: https://gist.github.com/akippnn/dc3fabf58aa728f1024bef9a3ddb0486

akippnn avatar Dec 15 '23 17:12 akippnn

Looks like #4480.

rom1v avatar Dec 15 '23 19:12 rom1v