Bug#867427: evince: Gtk-WARNING **: Allocating size to EvWindow 0x55db4fdbf0f0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Jul 6 15:58:21 UTC 2017


Package: evince
Version: 3.22.1-3
Severity: minor

When using evince, i regularly get these sorts of Gtk warnings:

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

I suspect it's from this call to gtk_widget_size_allocate():

  https://sources.debian.net/src/evince/3.22.1-3/libview/ev-view.c/?hl=4114#L4114

Since the other calls to gtk_widget_size_allocate are in
libview/ev-media-player.c, and the documents i'm looking at have no
media in them for a media player to deal with.

I note that clutter uses a dummy gtk_widget_get_preferred_width to
silence a similar warning:

https://sources.debian.net/src/clutter-gtk/1.8.2-2/clutter-gtk/gtk-clutter-actor.c/?hl=325#L325

This all seems a bit silly to me, but it'd be nice to keep stderror
clean so that real errors/warnings will be noticable.

      --dkg

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.11.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages evince depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.26.0-2+b1
ii  evince-common                                3.22.1-3
ii  gsettings-desktop-schemas                    3.22.0-1
ii  libatk1.0-0                                  2.22.0-1
ii  libc6                                        2.24-12
ii  libcairo-gobject2                            1.14.8-1
ii  libcairo2                                    1.14.8-1
ii  libevdocument3-4                             3.22.1-3
ii  libevview3-3                                 3.22.1-3
ii  libgdk-pixbuf2.0-0                           2.36.5-2
ii  libglib2.0-0                                 2.52.3-1
ii  libgnome-desktop-3-12                        3.22.2-1
ii  libgtk-3-0                                   3.22.16-1
ii  libnautilus-extension1a                      3.22.3-1
ii  libpango-1.0-0                               1.40.5-1
ii  libsecret-1-0                                0.18.5-3.1
ii  shared-mime-info                             1.8-1

Versions of packages evince recommends:
ii  dbus-user-session [default-dbus-session-bus]  1.10.20-1
ii  dbus-x11 [dbus-session-bus]                   1.10.20-1

Versions of packages evince suggests:
pn  gvfs             <none>
pn  nautilus-sendto  <none>
ii  poppler-data     0.4.7-8
ii  unrar            1:5.5.5-1

-- no debconf information



More information about the pkg-gnome-maintainers mailing list