Bug 1517022 - spice: no gl-draw-done within one second
Summary: spice: no gl-draw-done within one second
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-viewer
Version: 27
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-24 01:01 UTC by Chen_Min_Chin
Modified: 2018-06-27 09:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-27 09:12:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot of remote-viewer and script which runned (73.06 KB, image/png)
2017-11-24 01:01 UTC, Chen_Min_Chin
no flags Details
SPICE_DEBUG=1 wayland log (12.09 KB, text/plain)
2018-06-20 17:57 UTC, Matías Zúñiga
no flags Details
SPICE_DEBUG=1 x11 log (11.22 KB, text/plain)
2018-06-20 17:57 UTC, Matías Zúñiga
no flags Details

Description Chen_Min_Chin 2017-11-24 01:01:20 UTC
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.

Comment 1 James Thomas 2017-11-30 11:12:06 UTC
Can confirm this issue is still present on fedora 27 even after moving to latest qemu (c11d61271b9e6e7a1f0479ef1ca8fb55fa457a62)

Comment 2 Chen_Min_Chin 2018-05-04 06:01:08 UTC
Can confirm this issue is still present on fedora 28 with remote-viewer-6.0-3.fc28 and qemu-2.11.1-2.fc28

Comment 3 Marc-Andre Lureau 2018-05-15 15:09:16 UTC
I can't reproduce, what graphics card do you have?

Comment 4 Marc-Andre Lureau 2018-05-15 15:09:35 UTC
(gpu)

Comment 5 Matías Zúñiga 2018-06-20 02:07:46 UTC
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

Comment 6 Marc-Andre Lureau 2018-06-20 13:37:32 UTC
wayland or x11?

could you provide SPICE_DEBUG=1 log when you launch remote-viewer ?

Thanks

Comment 7 Matías Zúñiga 2018-06-20 17:57:34 UTC
Created attachment 1453261 [details]
SPICE_DEBUG=1 wayland log

Comment 8 Matías Zúñiga 2018-06-20 17:57:46 UTC
Created attachment 1453262 [details]
SPICE_DEBUG=1 x11 log

Comment 9 Matías Zúñiga 2018-06-20 17:58:55 UTC
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

Comment 10 Marc-Andre Lureau 2018-06-26 14:11:19 UTC
(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.

Comment 11 Matías Zúñiga 2018-06-27 04:30:38 UTC
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

Comment 12 Marc-Andre Lureau 2018-06-27 09:12:14 UTC
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


Note You need to log in before you can comment on or make changes to this bug.