RE: [gtk-list] GtkTextWidget hangs
- From: Evan Lawrence <evan worldpath net>
- To: Matthias Moeller <mattes ice robin de>
- Cc: gtk-list redhat com
- Subject: RE: [gtk-list] GtkTextWidget hangs
- Date: Sun, 21 Jun 1998 16:12:46 -0000 (???)
Depending on what version of gtk you're using, this may have already been fixed
- I found a very similar bug in 1.0.4 that Owen has since fixed, so if you get
the cvs version of gtk you might be all set..
On 21-Jun-98 Matthias Moeller wrote:
>
> Hi
>
> I just found a way to make GtkTextWidget hang. To
> reproduce the bug you can use the testgtk program:
>
> 1. Start the GtkTextWidget-Demo in testgtk.
>
> 2. Switch word-wrap on.
>
> 3. Move the cursor to the begin of the first line.
>
> 4. Hit the return-key 3 times to insert 3 empty lines.
>
> 5. Move the cursor to the first line again.
>
> 6. Type 3 lines of "O" without return:
>
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
>
> 7. Hit return (important!)
>
> 8. Move the cursor to the first line (1x cursor-up) and
> then 3 steps to the right.
>
> 9. Hit the space key. Should now look like:
>
> OOO
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
>
> 10. Move the cursor 5 steps to the right and press
> space again:
>
> OOO
> OOOOO
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<
> OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
>
> 11. Repeat step 10. -> endless loop.
>
>
>
> In the debugger I found that the endless loop is in
> the function correct_cache_insert().
> After step 10 there is a bad node in the cache-list,
> the ->next and ->prev fields of that node are pointing
> the node itself. This bad node is probably created
> while inserting the second space (probably in the
> function swap_lines()).
>
>
> Sometimes I even get a segfault while using the
> TextWidget, but I can't reproduce that yet.
>
>
> ciao Matthias
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
--
Evan Lawrence
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]