! 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 !
Xfdesktop segfault when starting with minimized icons
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Nick Schermer editbugs 2006-08-05 12:43:07 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060727 Firefox/1.5.0.5 (Swiftfox)
Build Identifier: Rev 22605

When I start Xfdesktop with minimized icons, it segfaults. It works fine when there are no applications minimized.

Reproducible: Always

Steps to Reproduce:
1. Use 'minimized applications' for desktop icons
2. Quit xfdesktop
3. Minimize some windows
4. Start xfdesktop

Actual Results:  
Segfault

Expected Results:  
Show the minimized apps on the desktop

Gtk 2.8.20
Glib 2.12.1
Exo 0.3.1.9svn-r22628
Comment 1 Nick Schermer editbugs 2006-08-05 12:43:31 CEST
Created attachment 703 
Backtrace
Comment 2 Brian J. Tarricone (not reading bugmail) 2006-08-06 03:02:15 CEST
Can't reproduce.

It seems to be crashing in gtk, though I think the top couple frames of the bt are incorrect since you probably have a non-debug/optimised build of gtk/glib.

Using gdb, can you print out some variable values for me?  When it crashes, type 'up' until you're in stack frame #4 (xfdesktop_icon_view_paint_icon() from your stack trace).  Then print the values of (just use 'print <varname>') label, widget, widget->window, adj_area, and text_area.
Comment 3 Nick Schermer editbugs 2006-08-06 10:22:58 CEST
When I compile gtk and glib with debug it doesn't crash anymore, but the following warning is shown (for each icon in both minimized apps and file launcher icons):

Gtk-CRITICAL **: gtk_paint_layout: assertion `style->depth == gdk_drawable_get_depth (window)' failed.

Running gtk 2.10.1 and glib 2.12.1

I'll try to get more usefull debug information.
Comment 4 Brian J. Tarricone (not reading bugmail) 2006-08-28 20:51:47 CEST
Ok, can you try adding the line:

gtk_widget_ensure_style(widget);

to xfdesktop-icon-view.c, line 1885?  It should appear right before the call to gtk_paint_layout() in xfdesktop_icon_view_paint_icon().

If you still get that warning, can you downgrade to gtk 2.8?  I don't really trust 2.10 yet...
Comment 5 Brian J. Tarricone (not reading bugmail) 2006-10-11 21:18:19 CEST
I just committed something to svn that might fix this.  Can you test?
Comment 6 Nick Schermer editbugs 2006-10-20 08:36:27 CEST
Sorry for the late reply. The good news is: bug seems to be fixed, I can't repoduce this anymore.

Bug #2123

Reported by:
Nick Schermer
Reported on: 2006-08-05
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Backtrace (2.51 KB, text/plain)
2006-08-05 12:43 CEST , Nick Schermer
no flags

Additional information