GtkText 1.2.8 bug, report as of so far...
- From: learfox furry ao net
- To: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: GtkText 1.2.8 bug, report as of so far...
- Date: Mon, 18 Dec 2000 21:37:10 -0800 (PST)
I don't think this is a GtkProgressBar problem at all now, but here's my
findings as of so far.
I have a function:
gtk_text_freeze(text);
/* A gtk progress bar is updated here. */
while(gtk_events_pending())
        gtk_main_iteration();
if(something)
{
        gtk_text_backward_delete(one character);
        gtk_text_insert(one character);
}
else
{
        gtk_text_insert(some characters);
}
gtk_text_thaw(text);
In the above case, GTK crashes at random times and sometimes dosen't
crash at all. I've seen problems like segfaults, assertion bails and other
exotic errors I haven't seen in my 8 years of coding.
I've always tested that function under the same order of data given to
that function. Sometimes GTK crashes and other times it does not.
I really can't make heads or tails out of it but the only thing I could
figure out is that it will NOT cause GTK to crash under the following
circumstance that I remove any gtk_main_iteration() calls between
a gtk_text_freeze() and gtk_text_thaw().
I suspect that gtk_text_backward_delete() and gtk_text_insert() have some
problem that messes up GTK internally when used in the above combination.
Does anyone have any idea on what I should go from here?
--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]