Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 85317

Summary: Infinite expose loops in TreeView
Product: [Retired] Red Hat Linux Reporter: Pawel Salek <pawsa>
Component: gtk2Assignee: Owen Taylor <otaylor>
Severity: medium Docs Contact:
Priority: high    
Version: 9CC: jrb, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-28 16:31:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
scroll fix. none

Description Pawel Salek 2003-02-27 22:05:32 UTC
Description of problem:
In certain circumstances, gtk_timeout_add() may trigger an infinite loop.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce: balsa. Try opening a large mailbox (over imap for better effect).
2.balsa will stop responding to clicking on mailbox index.
Actual results:
balsa will very likely stop responding to clicking on mailbox index (clicking o
a message schedules an idle function that is not executed at all). Instead,
balsa will use 100% in gtk2 code.

Expected results:
It should work as with older versions of gtk2

Additional info:
What is crucial here is that I strongly _suspect_ it is not balsa problem since
it works just fine on RH8.0, and I seem to recall phoebe-2 did not have this
problem neither. But of course, I am not sure. Any hints how to debug it will be
 very appreciated. All the relevant idle functions return false.

for original report.
The stack trace is:
#1  0x40fd4a17 in _XRead () from /usr/X11R6/lib/
#2  0x40fd555d in _XReply () from /usr/X11R6/lib/
#3  0x40fcb37b in XQueryPointer () from /usr/X11R6/lib/
#4  0x40b23779 in _gdk_windowing_window_get_pointer ()
   from /usr/lib/
#5  0x40affcad in gdk_window_get_pointer () from /usr/lib/
#6  0x40a15e87 in gtk_tree_view_get_type () from /usr/lib/
#7  0x40951caf in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/lib/
#8  0x40bd5247 in g_cclosure_new_swap () from /usr/lib/
#9  0x40bd4ed7 in g_closure_invoke () from /usr/lib/
#10 0x40be7439 in g_signal_emit_by_name () from /usr/lib/
#11 0x40be67af in g_signal_emit_valist () from /usr/lib/
#12 0x40be6be4 in g_signal_emit () from /usr/lib/
#13 0x40a3785b in gtk_widget_send_expose () from /usr/lib/
#14 0x4095077c in gtk_main_do_event () from /usr/lib/
#15 0x40afedc5 in gdk_window_clear_area_e () from /usr/lib/
#16 0x40afee6a in gdk_window_process_all_updates ()
   from /usr/lib/
#17 0x40afeed1 in gdk_window_process_all_updates ()
   from /usr/lib/
#18 0x40c2a743 in g_timeout_add () from /usr/lib/
#19 0x40c27b35 in g_get_current_time () from /usr/lib/
#20 0x40c28b78 in g_main_context_dispatch () from /usr/lib/
#21 0x40c28e8d in g_main_context_dispatch () from /usr/lib/
#22 0x40c2958f in g_main_loop_run () from /usr/lib/
#23 0x4094ffdf in gtk_main () from /usr/lib/
#24 0x0808b14d in main (argc=1, argv=0xbffff3a4) at main.c:433

Comment 1 Owen Taylor 2003-02-27 22:24:38 UTC
As far as I can recall, nothing has changed in this area of GLib
since before 2.0.0.

But this might be a known TreeView problem with infinite expose
loops. Think so, Jonathan?

Comment 2 Jonathan Blandford 2003-02-27 22:44:59 UTC
It's possible.  I haven't committed that fix yet, but will do so shortly.  Can
you try the attachment and tell me if it helps you?

Comment 3 Jonathan Blandford 2003-02-27 22:46:12 UTC
Created attachment 90407 [details]
scroll fix.

Comment 4 Pawel Salek 2003-02-27 23:31:22 UTC
It seems the fix is right! I have some combinations of mailbox opening sequences
that always led to this problem but now, I cannot reproduce it any more.

Comment 5 Jonathan Blandford 2003-02-27 23:57:34 UTC
Cool.  I'll close this after I commit that patch.