Bug 1327269

Summary: Missing adjustment to GTK+ 3.20 triggers repeated error messages
Product: [Community] Virtualization Tools Reporter: Peter Mattern <pmattern>
Component: virt-viewerAssignee: Daniel Berrangé <berrange>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: lemenkov, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-11 10:26:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Peter Mattern 2016-04-14 15:52:32 UTC
After compiling virt-viewer against GTK+ 3.20 there are two warnings
> (remote-viewer:2377): Gtk-WARNING **: Allocating size to SpiceDisplay \
> 0x2266480 without calling gtk_widget_get_preferred_width/height(). How \
> does the code know the size to allocate?
and
> (remote-viewer:2377): Gtk-WARNING **: Drawing a gadget with negative \
> dimensions. Did you forget to allocate a size? (node box owner ViewAutoDrawer)
upon launching remote-viewer from a virtual terminal.
A real malfunction corresponding to these messages doesn't seem to exist. But depending on protocol and displayed content the latter tends to get repeated to a degree that does pretty much impair the usage of the shell session. E. g. when using VNC it gets repeated upon each and every change in the desktop that's displayed by remote-viewer.

Similar findings in Rhythmbox, see https://bugzilla.gnome.org/show_bug.cgi?id=763435 suggest the problem isn't due to a bug in GTK+ but the applications in question need to get adjusted to some changes introduced in GTK+ 3.20.

Seen running a19659e compiled against spice-gtk 0.31 on Arch Linux.

Comment 1 Peter Lemenkov 2018-04-04 15:42:25 UTC
(In reply to Peter Mattern from comment #0)
> After compiling virt-viewer against GTK+ 3.20 there are two warnings
> > (remote-viewer:2377): Gtk-WARNING **: Allocating size to SpiceDisplay \
> > 0x2266480 without calling gtk_widget_get_preferred_width/height(). How \
> > does the code know the size to allocate?


This one is bug 1488249.

Comment 2 Daniel Berrangé 2020-09-11 10:26:35 UTC
The linked bug shows this was addressed in spice-gtk a while ago, so I'm closing this one.