scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

lost race to create dir /tmp/snap.1000_scrcpy_XXXXXX too many times: No such file or directory

Open matthiasleitner opened this issue 2 years ago • 9 comments

Environment

  • OS: Rasbian
  • scrcpy version: scrcpy (beta) v1.23-2-gadbe7908 from sisco311
  • installation method: snap
  • device model: Rasperry Pi 4
  • Android version: 10

Describe the bug When trying to launch scrcpy we always get the following message in the terminal: lost race to create dir /tmp/snap.1000_scrcpy_XXXXXX too many times: No such file or directory

Cleaning tmp directory did not help, tmp directory permissions are 777

Packages are up to date.

lost race to create dir /tmp/snap.1000_scrcpy_XXXXXX too many times: No such file or directory

matthiasleitner avatar Mar 04 '22 17:03 matthiasleitner

An issue with the snap package. (cc @sisco311)

Meanwhile, you could try a non-snap version.

rom1v avatar Mar 04 '22 17:03 rom1v

@rom1v thanks for the quick response. Any suggestions how to install without snap on Raspbian?

matthiasleitner avatar Mar 04 '22 17:03 matthiasleitner

https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#simple

rom1v avatar Mar 04 '22 18:03 rom1v

@rom1v Thank you, starting scrcpy then works but causes a very distorted image

matthiasleitner avatar Mar 07 '22 13:03 matthiasleitner

but causes a very distorted image

Screenshot?

rom1v avatar Mar 07 '22 13:03 rom1v

Screenshot 2022-03-07 at 12 51 41

Connection to same android device working well from another scrcpy installation.

matthiasleitner avatar Mar 07 '22 13:03 matthiasleitner

If you record, is the result ok?

scrcpy --record file.mp4

In any case, see #55.

Try with another encoder or give a max size with -m so that the dimensions are multiple of 16.

rom1v avatar Mar 07 '22 13:03 rom1v

Connection to same android device working well from another scrcpy installation.

Interesting, this suggests that the problem is in the decoder.

What are the dimensions, as printed in the console?

INFO: Initial texture: 1440x3120

rom1v avatar Mar 07 '22 13:03 rom1v

@sisco311 any ideas on how to fix this on the snap package?

matthiasleitner avatar Jul 18 '22 12:07 matthiasleitner