By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 535

Summary: Gtk apps crash when using kgtk
Product: TDE Reporter: Calvin Morrison <mutantturkey>
Component: other (any)Assignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: enhancement CC: bugwatch, darrella
Priority: P5    
Version: 3.5.13 [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: affected area
back trace for geany.
backtrace 2
patch to fix problems
actual patch, whoops :)

Description Calvin Morrison 2011-10-09 18:36:24 CDT
Created attachment 92 [details]
affected area

I've had problems with several applications crashing because of kgtk/qtengine ( I think ) It has been happening when going into scrollable columns/trees.

I have attached a backtrack of the application and a screenshot of the affected area
Comment 1 Calvin Morrison 2011-10-09 18:37:21 CDT
Created attachment 93 [details]
back trace for geany.

Here is the backtrace for geany
Comment 2 Timothy Pearson 2011-10-09 18:49:26 CDT
I am unable to reproduce this bug on the Trinity 3.5.13 nightly builds, and the attached backtrace does not help.

Please provide a detailed set of instructions on how to make geany crash.

Thanks!
Comment 3 Calvin Morrison 2011-10-10 11:41:41 CDT
Created attachment 94 [details]
backtrace 2
Comment 4 Calvin Morrison 2011-10-10 11:42:20 CDT
okay with some additional research and debug builds, I've deduced that it is the gtk-qt-engine that is crashing. 

To reproduce this with geany, you must have a C file loaded(well thats the one that i know works, so use it) and make sure you have tags/functions visible in the right sidebar. Then resize it randomly for a little bit, After enough time it crashes (I don't know exactly when or why) but it has to do with resizing it.
Comment 5 Timothy Pearson 2011-10-10 12:40:19 CDT
As far as I can tell this is caused by multiple drawing operations in rapid succession on a single graphics element (in this case an arrow within the resized tree view sidebar).  As I still cannot cause the crash on my systems my debugging abilities are limited.

It would help if you could print the exact parameters being passed to the crashing function by inserting this line of code directly before line 486 in qt_theme_draw.c.

printf("parent: %p %p %d %d %d %d %d %d\n\r", window,style, GTK_WIDGET_STATE(parent), arrow_type, x, y, width, height); fflush(stdout);

Recompile gtk-qt-engine, run geany from a terminal, and try to force it to crash.  When it does, post the last lines of output here.

I am not 100% sure that this bug is in Trinity.  Can you crash geany on your machine from within a Gnome or other non-Trinity session?
Comment 6 Calvin Morrison 2011-10-10 15:20:13 CDT
Created attachment 95 [details]
patch to fix problems

Here is the patch. It removes some deprecated code and replaces it with the newer function that works. I also took the liberty of fixing up the other build warnings.

Calvin Morrison
Comment 7 Calvin Morrison 2011-10-10 15:25:44 CDT
Created attachment 96 [details]
actual patch, whoops :)
Comment 8 Timothy Pearson 2011-10-10 15:53:30 CDT
Patch committed to SVN in revision 1258270.

Thanks for reporting, and for the patch!