glib-compile-schemas trigger not run after installation GCalctool

Bug #602175 reported by Lee Jarratt
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gcalctool

Apparently the trigger 'glib-compile-schemas' isn't run after the upgrade of GCalctool, resulting in the applications crashing on start-up because it can't locate its settings schema.
This doesn't happen always.

Workaround: manually run the command 'sudo glib-compile-schemas /usr/share/glib-2.0/schemas'.

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: gcalctool 5.31.4-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-6.9-generic 2.6.35-rc3
Uname: Linux 2.6.35-6-generic x86_64
Architecture: amd64
CrashCounter: 1
Date: Tue Jul 6 09:27:14 2010
ExecutablePath: /usr/bin/gcalctool
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100630.2)
ProcCmdline: gcalctool
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
Signal: 5
SourcePackage: gcalctool
StacktraceTop:
 ?? () from /usr/lib/libgio-2.0.so.0
 ?? () from /usr/lib/libgio-2.0.so.0
 g_object_newv () from /usr/lib/libgobject-2.0.so.0
 g_object_new_valist ()
 g_object_new () from /usr/lib/libgobject-2.0.so.0
Title: gcalctool crashed with signal 5 in g_object_newv()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors: (polkit-gnome-authentication-agent-1:1463): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Related branches

Revision history for this message
Lee Jarratt (lee.jarratt-deactivatedaccount) wrote :
visibility: private → public
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 g_settings_schema_new (
 g_settings_constructed (
 g_object_newv (object_type=<value optimized out>,
 g_object_new_valist (object_type=38743808,
 g_object_new (object_type=38743808,

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gcalctool (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I can confirm this bug myself.

It seems that this is a packaging issue, the GSettings scheme isn't compiled with the glib-compile-schemas trigger.
However, not everyone is having this bug.

I am using the amd64 version of Ubuntu, just as the reporter.

summary: - gcalctool crashed with signal 5 in g_object_newv()
+ glib-compile-schemas trigger not run after installation GCalctool
description: updated
Changed in gcalctool (Ubuntu):
status: New → Triaged
status: Triaged → Confirmed
description: updated
tags: added: packaging
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is that the trigger registering schemas doesn't work when the directory is not there which is an issue when the first schemas is installed, reinstalling the deb should workaround the issue

affects: gcalctool (Ubuntu) → glib2.0 (Ubuntu)
Changed in glib2.0 (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib2.0 - 2.25.10-1ubuntu2

---------------
glib2.0 (2.25.10-1ubuntu2) maverick; urgency=low

  * Updated the trigger work to the current debian svn version,
    thanks to Josselin for the review of our changes and improvements
  * debian/libglib2.0-0.dirs, debian/rules:
    - the schemas directory needs to be available for the trigger to work
      (lp: #602175)
  * debian/control.in:
    - Recommends libdconf0 for gsettings dconf support
 -- Sebastien Bacher <email address hidden> Tue, 06 Jul 2010 16:58:41 +0200

Changed in glib2.0 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Yuri Khan (yurivkhan) wrote :

For me, the workaround command fails with:

> No such schema `org.gnome.Empathy.conversation' specified in override file `/usr/share/glib-2.0/schemas/ubuntu-artwork.gschema.override'

This is probably because I had uninstalled empathy before. After reinstalling empathy, `sudo glib-compile-schemas /usr/share/glib-2.0/schemas1` finishes successfully and gcalctool no longer crashes on startup.

When I remove empathy again, the trigger runs and fails with the same message.

I suppose removing adium-theme-ubuntu would fix this but it is a hard dependency of ubuntu-artwork which is a hard dependency of ubuntu-desktop, which is "also used to help proper upgrades, so it is recommended that it not be removed" (from package description).

Revision history for this message
Andreas Olsson (andol) wrote :

Experiencing the same symptoms as Yuri.

Removing Empathy shouldn't break other programs this way, should it?

Changed in glib2.0 (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
VinDSL (perfect-pecker) wrote :

I just added myself to the list as being effected by this bug...

I'm running Linux 2.6.35-19 generic i686 (fully updated Maverick) on an Intel P4 Extreme Edition based machine.

I don't care for Empathy. I purged Empathy from my system and installed Pidgin, when I first installed Maverick.

I check/install Maverick updates several times a day. I noticed, last week, that gcalctool was updated. Since then, gcalctool has not worked (won't open).

Running gcalctool from CLI, I received the following error:

GLib-GIO-ERROR **: Settings schema 'org.gnome.gcalctool' is not installed

aborting...
Trace/breakpoint trap (core dumped)

When I purged gcalctool, I received the following error (truncated):

Processing triggers for libglib2.0-0 ...
No such schema `org.gnome.Empathy.conversation' specified in override file `/usr/share/glib-2.0/schemas/ubuntu-artwork.gschema.override'

When I installed gcalctool, I received the same error (truncated):

Processing triggers for libglib2.0-0 ...
No such schema `org.gnome.Empathy.conversation' specified in override file `/usr/share/glib-2.0/schemas/ubuntu-artwork.gschema.override'

The workaround for me was:

Install Empathy
Install gcalctool
Purge Empathy

gcalctool is now working normally.

Hope this helps! :)

Revision history for this message
Tim Lunn (darkxst) wrote :

this bug also causes the same problems with evince

Revision history for this message
Sebastien Bacher (seb128) wrote :

The new issue is a different bug that the one described there, don't reopen closed bugs but open new ones rather

Changed in glib2.0 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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