After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 723701 - Critical warnings on start
Critical warnings on start
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
3.11.x
Other Linux
: Normal minor
: ---
Assigned To: Michael Catanzaro
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-02-05 17:20 UTC by Michael Catanzaro
Modified: 2014-03-01 16:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Backtrace (59.89 KB, text/plain)
2014-02-25 15:00 UTC, Michael Catanzaro
Details
New backtrace (44.86 KB, text/plain)
2014-02-26 15:14 UTC, Michael Catanzaro
Details
Backtrace #3 (15.00 KB, text/plain)
2014-03-01 01:20 UTC, Michael Catanzaro
Details

Description Michael Catanzaro 2014-02-05 17:20:45 UTC
I did a 'jhbuild build gnome-software' today.  I saw a bunch of critical warnings when I start gnome-software.  I closed gnome-software launched again with G_DEBUG=fatal-criticals to get a backtrace, but the warnings didn't occur again. The first time I had to wait a while for all the images and programs on the start page to load, whereas the second time everything was cached and loaded immediately.

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'help-about' for stock: Icon 'help-about' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'help-about' for stock: Icon 'help-about' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'help-about' for stock: Icon 'help-about' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'help-about' for stock: Icon 'help-about' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'help-about' for stock: Icon 'help-about' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(gnome-software:11853): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme
Comment 1 Richard Hughes 2014-02-25 10:21:54 UTC
Can you get a backtrace on the critical warning please?
Comment 2 Michael Catanzaro 2014-02-25 15:00:14 UTC
Created attachment 270283 [details]
Backtrace

Sure.  I rebuilt from master again today.
Comment 3 Richard Hughes 2014-02-25 15:55:13 UTC
This might fix things:

commit 6f4d6c8238bc267abd2d0adfb6e83695d989892c
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Feb 25 14:43:51 2014 +0000

    Warn when overwriting metadata keys that already exist
    
    Also, ignore setting an existing key with the same value as we're trying to set,
    we don't want the memory address to be changed for no reason.
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=723702

:100644 100644 955a601... d7411ff... M  src/gs-app.c

Can you try again please. Thanks.
Comment 4 Michael Catanzaro 2014-02-25 18:36:50 UTC
Do you have a way to clear/reset the metadata so that I can reproduce this reliably without the patch?  I was getting the criticals this morning, but not any more.
Comment 5 Richard Hughes 2014-02-26 09:56:35 UTC
"sudo rm /var/cache/PackageKit/* -rf" should do the trick.
Comment 6 Michael Catanzaro 2014-02-26 15:14:06 UTC
Created attachment 270393 [details]
New backtrace

Still broken, backtrace looks mostly the same.
Comment 7 Richard Hughes 2014-02-28 15:01:26 UTC
commit 6a3215403d04cfc99efbb5e04c8e84670d012342
Author: Richard Hughes <richard@hughsie.com>
Date:   Fri Feb 28 14:57:53 2014 +0000

    Do not use gtk_icon_theme_load_icon() as it's not thread safe
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=723701

Can you verify with master please? Thanks.
Comment 8 Michael Catanzaro 2014-03-01 01:20:48 UTC
Created attachment 270616 [details]
Backtrace #3

I'm not sure if that fixed it or not. I still hit a critical, but this one is different.
Comment 9 Richard Hughes 2014-03-01 14:36:38 UTC
Ahh, that was the last patch from mclasen -- this fixes it up:

commit 65181166cbc355fd91121afb568c79d50b9eca15
Author: Richard Hughes <richard@hughsie.com>
Date:   Sat Mar 1 14:35:57 2014 +0000

    Don't connect to signals of the previously removed widgets
Comment 10 Michael Catanzaro 2014-03-01 16:42:27 UTC
Seems good, thanks!