Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1020517: scrcpy: Does not display the Android window.

1,710 views
Skip to first unread message

Xerxes

unread,
Sep 22, 2022, 11:20:03 AM9/22/22
to
Package: scrcpy
Version: 1.24-1
Severity: important
X-Debbugs-Cc: xerxe...@gmail.com

Dear Maintainer,

After using the "scrcpy" command, everything seems to be normal, but the window with the Android system image does not open. Just for comparison, using the flatpak version of the "guiscrcpy" program, it's working.

After executing the command, the message that appears is:

scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 1.6 MB/s (40683 bytes in 0.024s)
[server] INFO: Device: samsung SM-A730F (Android 9)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 22.2.0-rc3
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2216

And nothing happens after that.

The window with the Android system should appear. I already checked the "debug mode" and permissions on the device.


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages scrcpy depends on:
ii libavcodec59 7:5.1.1-2
ii libavdevice59 7:5.1.1-2
ii libavformat59 7:5.1.1-2
ii libavutil57 7:5.1.1-2
ii libc6 2.34-8
ii libsdl2-2.0-0 2.24.0+dfsg-1
ii libusb-1.0-0 2:1.0.26-1
ii scrcpy-server 1.24-1

Versions of packages scrcpy recommends:
ii adb 1:29.0.6-21

scrcpy suggests no packages.

-- no debconf information

Yangfl

unread,
Sep 22, 2022, 3:30:03 PM9/22/22
to
Xerxes <xerxe...@gmail.com> 于2022年9月22日周四 23:15写道:
>
> Package: scrcpy
> Version: 1.24-1
> Severity: important
> X-Debbugs-Cc: xerxe...@gmail.com
>
> Dear Maintainer,
>
> After using the "scrcpy" command, everything seems to be normal, but the window with the Android system image does not open. Just for comparison, using the flatpak version of the "guiscrcpy" program, it's working.
>
> After executing the command, the message that appears is:
>
> scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
> /usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 1.6 MB/s (40683 bytes in 0.024s)
> [server] INFO: Device: samsung SM-A730F (Android 9)
> INFO: Renderer: opengl
> INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 22.2.0-rc3
> INFO: Trilinear filtering enabled
> INFO: Initial texture: 1080x2216
>
> And nothing happens after that.
>
> The window with the Android system should appear. I already checked the "debug mode" and permissions on the device.

Strange. Android 9 too, works fine to me. Does `scrcpy -V debug` help?

Xerxes

unread,
Sep 26, 2022, 10:30:04 AM9/26/22
to
Package: scrcpy
Version: 1.24-1
Followup-For: Bug #1020517
X-Debbugs-Cc: xerxe...@gmail.com

scrcpy -V debug
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG: --> (usb) 52008c82b4ba559b device SM_A730F
DEBUG: Device serial: 52008c82b4ba559b
DEBUG: Using server: /usr/share/scrcpy/scrcpy-server
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 2.4 MB/s (40683
bytes in 0.016s)
[server] INFO: Device: samsung SM-A730F (Android 9)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using encoder: 'OMX.Exynos.AVC.Encoder'
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 22.2.0
INFO: Trilinear filtering enabled
DEBUG: Using icon: /usr/share/icons/hicolor/256x256/apps/scrcpy.png
INFO: Initial texture: 1080x2216
DEBUG: Starting demuxer thread

After that nothing happens. The window does not open.


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages scrcpy depends on:
ii libavcodec59 7:5.1.1-2+b1
ii libavdevice59 7:5.1.1-2+b1
ii libavformat59 7:5.1.1-2+b1
ii libavutil57 7:5.1.1-2+b1

Yangfl

unread,
Sep 26, 2022, 11:50:03 AM9/26/22
to
Control: forwarded -1 https://github.com/Genymobile/scrcpy/issues/3510

See original author comment; are you using wayland?

Xerxes

unread,
Oct 4, 2022, 10:30:04 AM10/4/22
to
Package: scrcpy
Followup-For: Bug #1020517
X-Debbugs-Cc: xerxe...@gmail.com

Today I ran "scrcpy" on both xorg and wayland. And in both it worked without
problems. The problem no longer exists.

But I don't know what solved the problem, because since when I reported the
bug, I performed the "apt upgrade" a few times.

What I noticed of difference, however, is that in the output of the command it
appears:

mesa 22.2.0

scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 3.7 MB/s (40683
bytes in 0.011s)
[server] INFO: Device: samsung SM-A730F (Android 9)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 22.2.0
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2216


And before, when the bug existed, it appeared:

mesa 22.2.0-rc3

scrcpy dependencies have also been updated since then and it could be that
these updates explain the bug fix.

Thanks!


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages scrcpy depends on:
ii libavcodec59 7:5.1.2-1
ii libavdevice59 7:5.1.2-1
ii libavformat59 7:5.1.2-1
ii libavutil57 7:5.1.2-1
ii libc6 2.35-1
0 new messages