Bug 1539816

Summary: evince throws Gtk-WARNING **: Allocating size to EvSidebar 0x0 without calling gtk_widget_get_preferred_width/height()
Product: Red Hat Enterprise Linux 7 Reporter: Andreas Bleischwitz <ableisch>
Component: gtk3Assignee: Benjamin Otte <otte>
Status: CLOSED UPSTREAM QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 7.4CC: cww, lemenkov, mclasen, otte
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-25 14:18:31 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:
Embargoed:

Description Andreas Bleischwitz 2018-01-29 16:43:05 UTC
Description of problem:
Evince started from console (not ssh) will throw the following warnings to the user:

$ evince /usr/share/doc/libtasn1-4.10/libtasn1.pdf

(evince:2013): Gtk-WARNING **: Allocating size to EvSidebar 0x27c14e0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

Version-Release number of selected component (if applicable):
$ rpm -q evince
evince-3.22.1-5.2.el7_4.x86_64

How reproducible:


Steps to Reproduce:
1. start evince with any pdf 
2. see the Gtk-WARNING message
3.

Actual results:
Gtk-WARNING **: Allocating size to EvSidebar shown

Expected results:
No warning shown

Additional info:
Still valid on FC-27's version of evince:

$ evince /usr/share/doc/libsrtp/libsrtp.pdf

(evince:13531): Gtk-WARNING **: Allocating size to EvSidebar 0x5611d0afa710 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

$ rpm -q evince
evince-3.26.0-1.fc27.x86_64

Comment 6 Peter Lemenkov 2018-04-04 15:41:27 UTC
(In reply to Andreas Bleischwitz from comment #0)
> Description of problem:
> Evince started from console (not ssh) will throw the following warnings to
> the user:
> 
> $ evince /usr/share/doc/libtasn1-4.10/libtasn1.pdf
> 
> (evince:2013): Gtk-WARNING **: Allocating size to EvSidebar 0x27c14e0
> without calling gtk_widget_get_preferred_width/height(). How does the code
> know the size to allocate?

This is an issue in GTK. See bug 1488249 for further details.

Comment 7 Andreas Bleischwitz 2018-06-14 08:53:47 UTC
Hi Benjamin,

couldn't we include that patch in the gtk3 version so that the messages would only be seen if G_ENABLE_CONSISTENCY_CHECKS is enabled?