! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Appearance Dialog Window crashes (xfce-settings 4.11.4-2)
Status:
RESOLVED: FIXED
Priority:
Very High
Severity:
blocker
Product:
Xfce4-settings
Component:
Appearance Settings

Comments

Description jkc09161997personal 2015-02-21 06:17:34 CET
 
Comment 1 jkc09161997personal 2015-02-21 06:28:25 CET
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!
Comment 2 Simon Steinbeiss editbugs 2015-02-21 20:57:54 CET
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.)
Comment 3 jkc09161997personal 2015-02-21 23:29:55 CET
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
Comment 4 jkc09161997personal 2015-02-21 23:32:44 CET
(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!
Comment 5 jkc09161997personal 2015-02-21 23:40:49 CET
(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
Comment 6 tomax 2015-02-23 18:36:32 CET
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)
Comment 7 Sean Davis editbugs 2015-02-24 02:49:05 CET
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?
Comment 8 tomax 2015-02-24 15:54:28 CET
(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)
Comment 9 Eric Koegel editbugs 2015-02-25 17:24:32 CET
>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
Comment 10 tomax 2015-02-25 19:51:59 CET
(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)
Comment 11 Simon Steinbeiss editbugs 2015-02-26 07:26:58 CET
@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.
Comment 12 tomax 2015-02-26 10:03:24 CET
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)
Comment 13 Simon Steinbeiss editbugs 2015-02-26 10:13:43 CET
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?
Comment 14 tomax 2015-02-26 10:44:53 CET
Created attachment 6000 
backtrace
Comment 15 tomax 2015-02-26 10:47:38 CET
(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)
Comment 16 Sean Davis editbugs 2015-02-26 12:51:18 CET
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
Comment 17 tomax 2015-02-26 17:14:41 CET
Created attachment 6005 
bugreport

Sadly it still freezes and crashes
Comment 18 Simon Steinbeiss editbugs 2015-02-27 00:24:27 CET
@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!
Comment 19 tomax 2015-02-28 09:47:08 CET
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?
Comment 20 Simon Steinbeiss editbugs 2015-02-28 20:20:13 CET
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...
Comment 21 jkc09161997personal 2015-03-01 18:58:57 CET
As of xfce4-settings 4.11.4-3 this bug appears to have been resolved!

Bug #11568

Reported by:
jkc09161997personal
Reported on: 2015-02-21
Last modified on: 2015-03-01

People

Assignee:
Nick Schermer
CC List:
7 users

Version

Version:
4.11.0

Attachments

backtrace (585 bytes, application/octet-stream)
2015-02-26 10:44 CET , tomax
no flags
bugreport (2.77 KB, application/octet-stream)
2015-02-26 17:14 CET , tomax
no flags
backtrace3 (13.09 KB, application/octet-stream)
2015-02-28 09:47 CET , tomax
no flags

Additional information