Bug 1327269 - Missing adjustment to GTK+ 3.20 triggers repeated error messages
Summary: Missing adjustment to GTK+ 3.20 triggers repeated error messages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-viewer
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-14 15:52 UTC by Peter Mattern
Modified: 2020-09-11 10:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-11 10:26:35 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 94495 0 None None None 2016-04-15 06:45:36 UTC

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.


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