GNOME Bugzilla – Bug 723839
audioscrobbler: Invalid path passed to g_settings_new_with_path()
Last modified: 2014-02-07 12:07:05 UTC
On my rawhide system, rhythmbox 3.0.1 crashes on startup after spewing a number of criticals. The first one is in audioscrobbler plugin code: GLib-GIO-CRITICAL **: g_settings_new_with_path: assertion 'path_is_valid (path)' failed Program received signal SIGTRAP, Trace/breakpoint trap. g_logv (log_domain=0x7ffff129fb38 "GLib-GIO", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffc5a0) at gmessages.c:1038 1038 g_private_set (&g_log_depth, GUINT_TO_POINTER (depth)); (gdb) bt
+ Trace 233139
This seems to be because the schema path (/org/gnome/rhythmbox/plugins/audioscrobbler/Last.fm) doesn't end with a slash. From g_settings_new_with_path() docs: "It is a programmer error if path is not a valid path. A valid path begins and ends with '/' and does not contain two consecutive '/' characters."
Created attachment 268393 [details] [review] audioscrobbler: Make sure gsettings schema path ends with a slash This fixes criticals complaining about invalid path passed to g_settings_new_with_path() at plugin startup.
The patch above fixes the audioscrobbler criticals I was seeing. It doesn't actually fix the startup crash though, which was unrelated to the gsettings criticals and something in the daap plugin instead.
Review of attachment 268393 [details] [review]: sure
Thanks! Attachment 268393 [details] pushed as 8cf18a3 - audioscrobbler: Make sure gsettings schema path ends with a slash