The reason I'm reporting this bug is because, no-one else has reported this yet that I could find, and this bug is effecting my ability to change the appearance of XFCE and needs to be fixed ASAP, and the next update should be postponed until you successfully fixed this bug!
First of all, please never put the bug description into the bug title. Secondly, we need more information about your system. Obviously I cannot reproduce the bug. (Distribution? did you build it yourself? how many themes? any terminal output if run from there? etc.)
Distro: Manjaro Linux 0.8.12 (unstable) Built by myself: No Number of themes installed (gtk2+): 51 Terminal Output when running xfce4-appearance-settings: /usr/share/themes/Color-UI/gtk-2.0/styles/tabwin:20: error: invalid string constant "xfwm-tabwin-button", expected valid string constant (xfce4-appearance-settings:20682): xfce4-appearance-settings-WARNING **: Couldn't load icon: Error opening file: No such file or directory (xfce4-appearance-settings:20682): Gtk-CRITICAL **: IA__gtk_icon_theme_load_icon: assertion 'error == NULL || *error == NULL' failed (xfce4-appearance-settings:20682): xfce4-appearance-settings-WARNING **: Couldn't load icon: (null) Segmentation fault
(In reply to jkc09161997personal from comment #3) > Distro: Manjaro Linux 0.8.12 (unstable) > Built by myself: No > Number of themes installed (gtk2+): 51 > > Terminal Output when running xfce4-appearance-settings: > > /usr/share/themes/Color-UI/gtk-2.0/styles/tabwin:20: error: invalid string > constant "xfwm-tabwin-button", expected valid string constant > > (xfce4-appearance-settings:20682): xfce4-appearance-settings-WARNING **: > Couldn't load icon: Error opening file: No such file or directory > > (xfce4-appearance-settings:20682): Gtk-CRITICAL **: > IA__gtk_icon_theme_load_icon: assertion 'error == NULL || *error == NULL' > failed > > (xfce4-appearance-settings:20682): xfce4-appearance-settings-WARNING **: > Couldn't load icon: (null) > Segmentation fault Let me see if changing my gtk2 and icon themes to something else works around this bug!
(In reply to jkc09161997personal from comment #3) > Distro: Manjaro Linux 0.8.12 (unstable) > Built by myself: No > Number of themes installed (gtk2+): 51 > > Terminal Output when running xfce4-appearance-settings: > > /usr/share/themes/Color-UI/gtk-2.0/styles/tabwin:20: error: invalid string > constant "xfwm-tabwin-button", expected valid string constant > > (xfce4-appearance-settings:20682): xfce4-appearance-settings-WARNING **: > Couldn't load icon: Error opening file: No such file or directory > > (xfce4-appearance-settings:20682): Gtk-CRITICAL **: > IA__gtk_icon_theme_load_icon: assertion 'error == NULL || *error == NULL' > failed > > (xfce4-appearance-settings:20682): xfce4-appearance-settings-WARNING **: > Couldn't load icon: (null) > Segmentation fault Well changing the icon and gtk2+ theme did not help matters at all! Output of xfce4-appearance-settings: (xfce4-appearance-settings:20965): xfce4-appearance-settings-WARNING **: Couldn't load icon: Error opening file: No such file or directory (xfce4-appearance-settings:20965): Gtk-CRITICAL **: IA__gtk_icon_theme_load_icon: assertion 'error == NULL || *error == NULL' failed (xfce4-appearance-settings:20965): xfce4-appearance-settings-WARNING **: Couldn't load icon: (null) Segmentation fault
Can confirm this bug on Xubuntu 14.04 terminal output: (xfce4-appearance-settings:20873): GLib-ERROR **: /build/buildd/glib2.0-2.40.2/./glib/gmem.c:133: failed to allocate 2048 bytes Trace/breakpoint trap (core dumped)
Thanks for your bug report. I investigated the issue and found that this bug occurs when an icon theme is missing both the expected preview icon and the fallback "image-missing" icon. I have committed a fix here: http://git.xfce.org/xfce/xfce4-settings/commit/?id=8e8c49258bd1f9dade8508f59346f6ee6327a663 If at all possible, can you compile xfce4-settings from source, and see if this issue is resolved with the above commit?
(In reply to Sean Davis from comment #7) I downloaded xfce4-settings-8e8c49258bd1f9dade8508f59346f6ee6327a663.tar.bz2 from > http://git.xfce.org/xfce/xfce4-settings/commit/ > ?id=8e8c49258bd1f9dade8508f59346f6ee6327a663 and got an error after trying to ./configure I then downloaded xfce4-settings 4.11.4 from http://archive.xfce.org and copy and pasted the file main.c from dialogs/appearance-settings/ from the first link (commit) into the dialogs/appearance-settings/ directory of the standard xfce4-settings 4.11.4 file Then I ran successfully ./configure make make install However, nothing has changed, the bug is still there after running xfce4-appearance-settings in Terminal the Appearance Settings window opens, freezes and then crashes Terminal output: >GLib-ERROR **: (NULL) message >Trace/breakpoint trap (core dumped)
>Trace/breakpoint trap (core dumped) If there's a core dump, maybe we can get a backtrace and narrow down the issue that way. Can you try following the backtrace section to hopefully provide the information we need to fix the issue you're having? http://docs.xfce.org/contribute/bugs/start#backtraces
(In reply to Eric Koegel from comment #9) Ok, I typed >gdb xfce4-appearance-settings >(gdb) set pagination 0 >(gdb) run in the Terminal, the output was: >Starting program: /usr/local/bin/xfce4-appearance-settings >[Thread debugging using libthread_db enabled] >Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". >[New Thread 0xb0dfeb40 (LWP 7877)] >[New Thread 0xafd23b40 (LWP 7878)] >[New Thread 0xaf522b40 (LWP 7879)] >[New Thread 0xaed21b40 (LWP 7880)] >[New Thread 0xaa014b40 (LWP 7882)] >[Thread 0xaed21b40 (LWP 7880) exited] >GLib-ERROR **: (NULL) message >Program received signal SIGTRAP, Trace/breakpoint trap. >0xb780f40a in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0 Then I ran it another time in gdb but this time the error output at the end was: >***MEMORY-ERROR***: xfce4-appearance-settings[8587]: GSlice: failed to allocate 504 bytes (alignment: 512): Cannot allocate memory >Program received signal SIGABRT, Aborted. 0xb7fdd424 in __kernel_vsyscall () (There were also some Gtk-Warnings about missing size fields for icon themes and about depreciated locations for font configs, I didn't list these because I had these warnings already before xfce-appearance-settings stopped working, which happened after updating to latest xfce 4.12 packages)
@tomax: First of all, just copying the relevant commit in the directory of 4.11.4 and then compiling won't do anything unless you meant you actually applied the patch. If you don't know how to use git but want to try the latest version of the appearance settings including the patch, you can get the up-to-date tarball e.g. here: https://github.com/xfce-mirror/xfce4-settings/archive/master.zip Please check if that fixes your issue! About gdb, you didn't follow through and get the actual backtrace. As the tutorials Eric linked you to (e.g. https://wiki.debian.org/HowToGetABacktrace) state, you need to run "bt" after the crash happens to get the useful information. Then dump that to a file and attach it here.
Typing in "bt" after the crash results: Program received signal SIGTRAP, Trace/breakpoint trap. 0xb780f40a in _g_log_abort (breakpoint=1) at /build/buildd/glib2.0-2.40.2/./glib/gmessages.c:308 308 /build/buildd/glib2.0-2.40.2/./glib/gmessages.c: No such file or directory. (gdb) bt #0 0xb780f40a in _g_log_abort (breakpoint=1) at /build/buildd/glib2.0-2.40.2/./glib/gmessages.c:308 #1 g_logv (log_domain=log_domain@entry=0xb7850f4e "GLib", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0xb7859874 "%s: failed to allocate %u bytes", args=args@entry=0xbfffe88c "\224\230\205\267") at /build/buildd/glib2.0-2.40.2/./glib/gmessages.c:1033 #2 0xb780f523 in g_log (log_domain=log_domain@entry=0xb7850f4e "GLib", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0xb7859874 "%s: failed to allocate %u bytes") at /build/buildd/glib2.0-2.40.2/./glib/gmessages.c:1071 #3 0xb780dc86 in g_malloc0 (n_bytes=n_bytes@entry=16384) at /build/buildd/glib2.0-2.40.2/./glib/gmem.c:132 #4 0xb780df2b in g_malloc0_n (n_blocks=4096, n_block_bytes=n_block_bytes@entry=4) at /build/buildd/glib2.0-2.40.2/./glib/gmem.c:362 #5 0xb77f61b8 in g_hash_table_resize (hash_table=hash_table@entry=0xbfaadef8) at /build/buildd/glib2.0-2.40.2/./glib/ghash.c:541 #6 0xb77f684b in g_hash_table_maybe_resize (hash_table=0xbfaadef8) at /build/buildd/glib2.0-2.40.2/./glib/ghash.c:597 #7 g_hash_table_insert_node (hash_table=hash_table@entry=0xbfaadef8, node_index=node_index@entry=1378, key_hash=key_hash@entry=1046713437, new_key=<optimized out>, new_key@entry=0xbfe9d360, new_value=new_value@entry=0x2, keep_new_key=keep_new_key@entry=1, reusing_key=reusing_key@entry=0) at /build/buildd/glib2.0-2.40.2/./glib/ghash.c:923 #8 0xb77f695a in g_hash_table_insert_internal (hash_table=0xbfaadef8, key=0xbfe9d360, value=0x2, keep_new_key=1) at /build/buildd/glib2.0-2.40.2/./glib/ghash.c:1173 #9 0xb7c31f27 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 #10 0xb7c32cf3 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 #11 0xb7c33e12 in gtk_icon_theme_has_icon () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 #12 0x0804c243 in appearance_settings_load_icon_themes (pd=pd@entry=0x810b660) at main.c:724 #13 0xb7804c50 in g_idle_dispatch (source=source@entry=0x80d4890, callback=0x804bf20 <appearance_settings_load_icon_themes>, user_data=0x810b660) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:5319 #14 0xb78080a7 in g_main_dispatch (context=0x808a1a8, context@entry=0x80d4890) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3064 #15 g_main_context_dispatch (context=context@entry=0x808a1a8) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3663 #16 0xb7808468 in g_main_context_iterate (context=0x808a1a8, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3734 #17 0xb780876b in g_main_loop_run (loop=0x80c72b0) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3928 #18 0xb7c63450 in gtk_main () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 #19 0x0804bcf7 in main (argc=1, argv=0xbfffeef4) at main.c:1550 (gdb)
Thanks for the backtrace, that confirms that the crash was happening where Sean looked to fix it, so this issue should be taken care of. Did you try the version I linked to you above?
Created attachment 6000 backtrace
(In reply to Simon Steinbeiss from comment #13) (In reply to Simon Steinbeiss from comment #11) > If you don't know how to use git but want to try the latest version of the > appearance settings including the patch, you can get the up-to-date tarball > e.g. here: https://github.com/xfce-mirror/xfce4-settings/archive/master.zip > > Please check if that fixes your issue! Thanks, did the install resulting in appearance-settings still crashing. The new backtrace bugreport from gdb bt is much shorter, though and I attached it as a text file in comment #14 (sorry, the bugzilla interface is a bit confusing to me)
Thanks for testing. We think we have it figured out now... can you try out this commit? http://git.xfce.org/xfce/xfce4-settings/commit/?id=500f6937ae707c611db246bb2c7c4b05cccb92c9
Created attachment 6005 bugreport Sadly it still freezes and crashes
@tomax: May I ask how you tested this patch? This backtrace looks pretty much like the one you posted before, so I just wanna make sure you tested the right thing. Btw, the link I posted earlier remains up-to-date, so you can re-use it: https://github.com/xfce-mirror/xfce4-settings/archive/master.zip If in doubt, please re-test with this ^ and report back. Thanks!
Created attachment 6014 backtrace3 > @tomax: May I ask how you tested this patch? This backtrace looks pretty > much like the one you posted before, so I just wanna make sure you tested > the right thing. I also don't understand why this happened. I can't reproduce the two line backtrace from Comment 14 even after compiling the xfce-settings from the master.zip All of the backtraces for both patches and also for xfce-settings from repository look pretty much similar, now. At that point we should maybe just wait if someone encounters the same or similar problems?
We've just released 4.12 stable of xfce4-settings, maybe wait until that's packaged up properly in your distro and then try that again. Also, I suppose if this is really still a problem, we'll now soon hear about it for sure...
As of xfce4-settings 4.11.4-3 this bug appears to have been resolved!