assertion failure on start-up: gdk_screen_get_font_options

Bug #65926 reported by Laurent Bonnaud
2
Affects Status Importance Assigned to Milestone
openoffice.org (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,

here is the problem:

$ ooffice

(process:7014): Gdk-CRITICAL **: gdk_screen_get_font_options: assertion `GDK_IS_SCREEN (screen)' failed

This is in edgy, with the following package versions:

Package: openoffice.org-core
Version: 2.0.4~rc3-0ubuntu4

-- System Information:
Debian Release: testing/unstable
  APT prefers edgy-updates
  APT policy: (500, 'edgy-updates'), (500, 'edgy-security'), (500, 'edgy-proposed'), (500, 'edgy-backports'), (500, 'edgy')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-10-generic
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages openoffice.org-core depends on:
ii debconf [debconf-2. 1.5.2ubuntu2 Debian configuration management sy
ii fontconfig 2.3.2-7ubuntu2 generic font configuration library
ii libaudio2 1.8-2 The Network Audio System (NAS). (s
ii libc6 2.4-1ubuntu12 GNU C Library: Shared libraries
ii libcairo2 1.2.4-1ubuntu2 The Cairo 2D vector graphics libra
ii libcurl3 7.15.4-1ubuntu2 Multi-protocol file transfer libra
ii libdb4.4 4.4.20-6ubuntu1 Berkeley v4.4 Database Libraries [
ii libexpat1 1.95.8-3.2 XML parsing C library - runtime li
ii libfontconfig1 2.3.2-7ubuntu2 generic font configuration library
ii libfreetype6 2.2.1-5 FreeType 2 font engine, shared lib
ii libgcc1 1:4.1.1-13ubuntu5 GCC support library
ii libglib2.0-0 2.12.4-0ubuntu1 The GLib library of C routines
ii libgstreamer-plugin 0.10.10-1ubuntu1 GStreamer libraries from the "base
ii libgstreamer0.10-0 0.10.10-1ubuntu2 Core GStreamer libraries and eleme
ii libgtk2.0-0 2.10.6-0ubuntu1 The GTK+ graphical user interface
ii libice6 2:1.0.1-1ubuntu1 X11 Inter-Client Exchange library
ii libicu34 3.4.1a-1ubuntu1 International Components for Unico
ii libjpeg62 6b-13 The Independent JPEG Group's JPEG
ii libldap2 2.1.30-13build1 OpenLDAP libraries
ii libneon25 0.25.5.dfsg-5 An HTTP and WebDAV client library
ii libpam0g 0.79-3.1ubuntu1 Pluggable Authentication Modules l
ii libpango1.0-0 1.14.5-0ubuntu1 Layout and rendering of internatio
ii libportaudio0 18.1-4 Portable audio I/O - shared librar
ii libsm6 2:1.0.1-1ubuntu1 X11 Session Management library
ii libsndfile1 1.0.16-1 Library for reading/writing audio
ii libstartup-notifica 0.8-1ubuntu1 library for program launch feedbac
ii libstdc++6 4.1.1-13ubuntu5 The GNU Standard C++ Library v3
ii libstlport4.6c2 4.6.2-3build1 STLport C++ class library
ii libx11-6 2:1.0.3-0ubuntu3 X11 client-side library
ii libxau6 1:1.0.1-1 X11 authorisation library
ii libxaw7 2:1.0.2-0ubuntu1 X11 Athena Widget library
ii libxcursor1 1.1.7-0ubuntu1 X cursor management library
ii libxext6 2:1.0.1-1ubuntu1 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.1-0ubuntu1 X11 miscellaneous 'fixes' extensio
ii libxi6 2:1.0.1-0ubuntu1 X11 Input extension library
ii libxinerama1 2:1.0.1-4build1 X11 Xinerama extension library
ii libxml2 2.6.26.dfsg-2ubuntu3 GNOME XML library
ii libxmlsec1 1.2.9-3ubuntu2 XML security library
ii libxmlsec1-nss 1.2.9-3ubuntu2 Nss engine for the XML security li
ii libxmlsec1-openssl 1.2.9-3ubuntu2 Openssl engine for the XML securit
ii libxrandr2 2:1.1.1-0ubuntu1 X11 RandR extension library
ii libxrender1 1:0.9.1-0ubuntu1 X Rendering Extension client libra
ii libxslt1.1 1.1.17-2build1 XSLT processing library - runtime
ii libxt6 1:1.0.2-1ubuntu1 X11 toolkit intrinsics library
ii openoffice.org-comm 2.0.4~rc3-0ubuntu4 OpenOffice.org office suite archit
ii ttf-opensymbol 2.0.4~rc3-0ubuntu4 The OpenSymbol TrueType font
ii zlib1g 1:1.2.3-13ubuntu2 compression library - runtime

openoffice.org-core recommends no packages.

-- no debconf information

Revision history for this message
Matthias Klose (doko) wrote :

please recheck with the final version in edgy; what you see is just a warning, does OOo start?

Changed in openoffice.org:
status: Unconfirmed → Needs Info
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

> please recheck with the final version in edgy;

The assertion failure is still there:

$ ooffice

(process:25781): Gdk-CRITICAL **: gdk_screen_get_font_options: assertion
`GDK_IS_SCREEN (screen)' failed

> what you see is just a warning, does OOo start?

OOo does start and work, but a "CRITICAL" assertion failure in such an
important software as OOo should be fixed IMHO.

Revision history for this message
Matthias Klose (doko) wrote :

still unable to reproduce this warning on startup

Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote :

I can confirm this on up to date edgy at least if i start OO under KDE
even with running gnome-settings-daemon.

In addition to this fonts in OO look very ugly, like dpi is detected wrong.
I use 96 dpi setting in xorg.conf, kde and gnome and mostly Arial.
It works nice everywere except in OO.
I can set OO to use system fonts or not, both look very ugly.

I will write a second report for this using subject
OpenOffice font rendering bad

Revision history for this message
Daniel Hahler (blueyed) wrote :

I can confirm this with current feisty.

I could not find a bug about this upstream.

Revision history for this message
Daniel Hahler (blueyed) wrote :

I get four assertions on startup and a lot more (>20) when opening a file on startup.

There seems to get passed a wrong "screen" reference around.

From a quick google it appears to be a Ubuntu specific problem!

Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote :

On kubuntu feisty when I start oocalc I get 14 of

(process:6036): Gdk-CRITICAL **: gdk_screen_get_font_options: assertion `GDK_IS_SCREEN (screen)' failed

When opening some document I get some more of the same.

The ugly font problem has gone away since I upgraded.

When starting oowriter, I get five of

(process:6696): Gdk-CRITICAL **: gdk_screen_get_font_options: assertion `GDK_IS_SCREEN (screen)' failed

Whether gnome-settings-daemon is running or not does not matter.

When using a different user with kde it is allmost the same.

When using a different user with gnome there seem to be no problem at all.

BTW
I have two X-screens (:0.0 for VGA and :0.1 for TV) with nvidia binary driver installed. All above was done on :0.1

Revision history for this message
Daniel Hahler (blueyed) wrote :

OOo does start, but the warning is critical and should get fixed, as said before.

Changed in openoffice.org:
status: Needs Info → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

> OOo does start, but the warning is critical and should get fixed,
> as said before.

why is it critical?

Revision history for this message
Daniel Hahler (blueyed) wrote :

At least it's named "Gdk-CRITICAL"..

Revision history for this message
Daniel Hahler (blueyed) wrote :

It seems to be caused by
  ooo-build/patches/src680/ooo59127.vcl.honourcairofont.diff
where gdk_screen_get_default() return no screen probably.

$ find /tmp/openoffice.org-2.2.0 | xargs grep gdk_screen_get_font_options
/tmp/openoffice.org-2.2.0/ooo-build/patches/src680/ooo59127.vcl.honourcairofont.diff:+ if (const cairo_font_options_t *pOptions = gdk_screen_get_font_options(gdk_screen_get_default()))

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug no longer exists in the latest gutsy (Version: 1:2.3.0~rc1-1ubuntu2)

Changed in openoffice.org:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.