Created attachment 1358468 [details] screenshot of remote-viewer and script which runned Description of problem: remote-viewer can't see vga output. Version-Release number of selected component (if applicable): qemu-system-x86_64 2.10.1-1.fc27 virt-viewer.x86_64 6.0-1.fc27 How reproducible: Run qemu vm with "-spice gl=on". Steps to Reproduce: 1. run qemu vm: qemu-system-x86_64 \ -nodefaults \ -vga virtio \ -spice disable-ticketing,image-compression=auto_glz,unix,addr=gl-test.sock,gl=on & 2. remote-viewer vm: remote-viewer "spice+unix://gl-test.sock" & Actual results: No vga output in remote-viewer. Terminal show "WARNING: spice: no gl-draw-done within one second" Expected results: Show vga output in remote-viewer.
Can confirm this issue is still present on fedora 27 even after moving to latest qemu (c11d61271b9e6e7a1f0479ef1ca8fb55fa457a62)
Can confirm this issue is still present on fedora 28 with remote-viewer-6.0-3.fc28 and qemu-2.11.1-2.fc28
I can't reproduce, what graphics card do you have?
(gpu)
Same problem git gl-spice for me with virt-viewer-6.0-3.fc28 & qemu-2.12.0-2.fc29 (was trying intel gvt) If i use the new gtk output instead of spice, the display shows fine. (just as root, if i do it with my user i get a crash) qemu-system-x86_64 -nodefaults -vga virtio -display gtk,gl=on OpenGL renderer string: Mesa DRI Intel(R) Iris Pro 6200 (Broadwell GT3e) OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.5 My cpu is i7-5775C
wayland or x11? could you provide SPICE_DEBUG=1 log when you launch remote-viewer ? Thanks
Created attachment 1453261 [details] SPICE_DEBUG=1 wayland log
Created attachment 1453262 [details] SPICE_DEBUG=1 x11 log
Happens both with wayland and x11. The logs are almost the same, excepting some 'clipboard' lines that i get on wayland In both cases, the qemu windows shows the lines from the screenshot attached by tcfxfzoi: main_channel_link: add main channel client inputs_connect: inputs channel client create red_qxl_set_cursor_peer: qemu-system-x86_64: warning: spice: no gl-draw-done within one second
(In reply to Matías Zúñiga from comment #7) > Created attachment 1453261 [details] > SPICE_DEBUG=1 wayland log GSpice-DEBUG: 13:29:45.634: channel-display.c:1882 display-2:0: gl draw 720x400+0+0 Weird, you should have a spice-widget gl_draw debug line right after that unless EGL header wasn't available at compile time. Looking at fedora build log, it seems to be there. Not sure what's going on.
So i was going to make my own builds to debug... updated my system first, and now everything works. The updated packages includes spice-gtk-0.34-5 (pushed today to stable). Downgrading to 0.34-4 makes the bug reappear. The only changes in this version are keyboard/xwayland related, but looking at 0.34-4 build logs, it has many `epoxy/egl.h` errors... but again, looking at the 0.34-4 logs i see libepoxy-devel-1.4.3-5.fc28 installed, which includes `epoxy/egl.h`... so i don't know why it didn't see the headers, but at least it works now. Anyway, thanks for your help
I think we should have a warning dialog if GL is disabled. I opened a bug to upstream: https://gitlab.freedesktop.org/spice/spice-gtk/issues/69