Open trotinet65 opened 1 year ago
Do you use Wayland with SDL 2.0.24? If so, see https://github.com/Genymobile/scrcpy/issues/3431
(scrcpy -v
to get the version of all libraries)
adb server version (41) doesn't match this client (39); killing...
This is not related to your window not opening, but: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions
I'm not use Wayland.
I think adb is running because scrcpy -r blabla.mkv
works.
scrcpy -v
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
Dependencies (compiled / linked):
- SDL: 2.25.0 / 2.25.0
- libavcodec: 58.54.100 / 58.134.100
- libavformat: 58.29.100 / 58.76.100
- libavutil: 56.31.100 / 56.70.100
- libavdevice: 58.8.100 / 58.13.100
- libusb: - / 1.0.25
INFO: Renderer: opengles2
I'm surprised that it uses opengles2 rather than opengl.
Could you try with another render driver:
scrcpy --render-driver opengl
Nothing else. That's not working.
scrcpy --render-driver opengl
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server:...shed. 1.3 MB/s (41159 bytes in 0.029s)
[server] INFO: Device: samsung SM-G780G (Android 12)
INFO: Renderer: opengles2
INFO: OpenGL version: OpenGL ES 3.2 NVIDIA 510.85.02
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2400
There is probably an issue with your drivers then :/ I don't know what else could explain this.
I've tied to remove *nvidia and try "nouveau" but result is the same
I think I've found the problem. I had installed by a script. I think I've made a bad uninstall. Now, I've installed it with apt-get install but it not found it in /usr/local/bin/scrcpy. Environnement path seems to be wrong. How can clean all that please ?
Resolve after a fresh install. Thanks all
I ran into the same problem (Fedora 36, GNOME 42, NVIDIA GTX 1070 driver version 520.56.06).
I managed to fix it by running scrcpy under XWayland. This can be achieved by setting the SDL_VIDEODRIVER
environment variable to x11
.
So the new launch command becomes:
env SDL_VIDEODRIVER=x11 scrcpy <arguments here>
I had this issue on a new Ubuntu 22.04 with scrcpy
Turns out scrcpy was just running (apparently) with a size of 0x0 pixels, which made it effectively invisible. When the app was running, I clicked on it in the dock to bring to focus, then 'Alt + enter' and 'resize'. Solved my issue after a lot of headache
Turns out scrcpy was just running (apparently) with a size of 0x0 pixels
Weird. What are the logs in the console when you start scrcpy?
I ran into the same problem (Fedora 36, GNOME 42, NVIDIA GTX 1070 driver version 520.56.06). I managed to fix it by running scrcpy under XWayland. This can be achieved by setting the
SDL_VIDEODRIVER
environment variable tox11
. So the new launch command becomes:env SDL_VIDEODRIVER=x11 scrcpy <arguments here>
Thank you! This helps me to solve this problem :)
Environment
Hello,
I've a problem with my desktop computer and my devices. All work correctly on my laptop.
I think scrcpy works correctly but nothing displays any window :
I can record with :
My problem is there, when I lauch this command, nothing happens
Can you help me please ?
Thanks a lot