After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 272976 - hang / 100% CPU cycle while editing ...
hang / 100% CPU cycle while editing ...
Status: RESOLVED INCOMPLETE
Product: GtkHtml
Classification: Other
Component: Editing
unspecified
Other All
: High critical
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2005-02-24 18:03 UTC by Michael Meeks
Modified: 2008-02-01 13:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
HTML Page which when edited in composer hangs evolution. (335.76 KB, text/html)
2005-05-18 06:25 UTC, Subodh Soni
Details

Description Michael Meeks 2005-02-24 18:03:13 UTC
Editing the end of a very long, complex and valuable document when
everything locked up:

Thread 1 (Thread 16384 (LWP 4336))

  • #0 html_text_slave_cursor_left
    at htmltextslave.c line 1375
  • #1 html_text_cursor_left
    at htmltext.c line 2519
  • #2 html_object_cursor_left
    at htmlobject.c line 1553
  • #3 left_in_flow
    at htmlcursor.c line 943
  • #4 html_cursor_left_edge_of_line
    at htmlcursor.c line 975
  • #5 html_cursor_beginning_of_line
    at htmlcursor.c line 1097
  • #6 html_engine_beginning_of_line
    at htmlengine-edit-movement.c line 193
  • #7 cursor_move
    at gtkhtml.c line 4417
  • #8 html_g_cclosure_marshal_VOID__ENUM_ENUM
    at htmlmarshal.c line 388
  • #9 g_type_class_meta_marshal
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #10 g_closure_invoke
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #11 signal_emit_unlocked_R
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #12 g_signal_emitv
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #13 gtk_binding_entry_activate
    at gtkbindings.c line 525
  • #14 binding_match_activate
  • #15 gtk_bindings_activate_list
    at gtkbindings.c line 1063
  • #16 gtk_bindings_activate_event
    at gtkbindings.c line 1138
  • #17 gtk_widget_real_key_press_event
    at gtkwidget.c line 3308
  • #18 key_press_event
    at gtkhtml.c line 891
  • #19 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 82
  • #20 g_type_class_meta_marshal
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #21 g_closure_invoke
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #22 signal_emit_unlocked_R
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #23 g_signal_emit_valist
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #24 g_signal_emit
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #25 gtk_widget_event_internal
    at gtkwidget.c line 3564
  • #26 gtk_widget_event
    at gtkwidget.c line 3370
  • #27 gtk_window_propagate_key_event
    at gtkwindow.c line 4216
  • #28 gtk_window_key_press_event
    at gtkwindow.c line 4246
  • #29 bonobo_window_key_press_event
    from /opt/gnome/lib/libbonoboui-2.so.0
  • #30 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 82
  • #31 g_type_class_meta_marshal
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #32 g_closure_invoke
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #33 signal_emit_unlocked_R
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #34 g_signal_emit_valist
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #35 g_signal_emit
    from /opt/gnome/lib/libgobject-2.0.so.0
  • #36 gtk_widget_event_internal
    at gtkwidget.c line 3564
  • #37 gtk_widget_event
    at gtkwidget.c line 3370
  • #38 gtk_propagate_event
    at gtkmain.c line 2320
  • #39 gtk_main_do_event
    at gtkmain.c line 1584
  • #40 gdk_event_dispatch
    at gdkevents-x11.c line 2159
  • #41 g_main_context_dispatch
    from /opt/gnome/lib/libglib-2.0.so.0
  • #42 g_main_context_iterate
    from /opt/gnome/lib/libglib-2.0.so.0
  • #43 g_main_loop_run
    from /opt/gnome/lib/libglib-2.0.so.0
  • #44 bonobo_main
    from /opt/gnome/lib/libbonobo-2.so.0
  • #45 main
    at main.c line 613
Run till exit from #0  0x40453de4 in html_text_slave_cursor_left
(slave=0x12da8f90, cursor=0x107a2248) at htmltextslave.c:1375
[Switching to Thread 16384 (LWP 4336)]
0x4044ddfe in html_text_cursor_left (self=0x12c9d258, cursor=0x107a2248) at
htmltext.c:2519
2519    htmltext.c: No such file or directory.
        in htmltext.c
Value returned is $1 = 1
(gdb) finish
Run till exit from #0  0x4044ddfe in html_text_cursor_left
(self=0x12c9d258, cursor=0x107a2248) at htmltext.c:2519
0x40433f38 in html_object_cursor_left (self=0x12c9d258, cursor=0x107a2248)
at htmlobject.c:1553
1553    htmlobject.c: No such file or directory.
        in htmlobject.c
Value returned is $2 = 1
(gdb) finish
Run till exit from #0  0x40433f38 in html_object_cursor_left
(self=0x12c9d258, cursor=0x107a2248) at htmlobject.c:1553
0x404024d3 in left_in_flow (cursor=0x107a2248) at htmlcursor.c:943
943     htmlcursor.c: No such file or directory.
        in htmlcursor.c
Value returned is $3 = 1
(gdb) finish
Run till exit from #0  0x404024d3 in left_in_flow (cursor=0x107a2248) at
htmlcursor.c:943
0x404026c6 in html_cursor_left_edge_of_line (cursor=0x107a2248,
engine=0x10806e08) at htmlcursor.c:975
975     in htmlcursor.c
Value returned is $4 = 1
(gdb) finish
Run till exit from #0  0x404026c6 in html_cursor_left_edge_of_line
(cursor=0x107a2248, engine=0x10806e08) at htmlcursor.c:975

    <hang forever>

I have:
gtkhtml2-devel-3.5.6.0.200502220400-0.snap.novell.0.1
libgtkhtml-2.6.1-2.1
gtkhtml2-3.5.6.0.200502220400-0.snap.novell.0.1
Comment 1 Michael Meeks 2005-02-24 18:05:16 UTC
I'm also a frantic user of 'tabs' to indent things - so quite possibly
this is tab related.


Finally I also got a load of these on the console - although, they may
be completely unrelated since I got an aspell thing after them:


(evolution:4336): gtkhtml-CRITICAL **: file htmlcursor.c: line 628
(html_cursor_jump_to_position): assertion `position >= 0' failed

(evolution:4336): gtkhtml-CRITICAL **: file htmlcursor.c: line 628
(html_cursor_jump_to_position): assertion `position >= 0' failed

(evolution:4336): gtkhtml-CRITICAL **: file htmlcursor.c: line 628
(html_cursor_jump_to_position): assertion `position >= 0' failed

(evolution:4336): gtkhtml-CRITICAL **: file htmlcursor.c: line 628
(html_cursor_jump_to_position): assertion `position >= 0' failed

(evolution:4336): gtkhtml-CRITICAL **: file htmlcursor.c: line 628
(html_cursor_jump_to_position): assertion `position >= 0' failed
restoring draft flag 'text/plain'

** (evolution:4336): WARNING **: aspell error: No word lists can be
found for the language "en_GB".

Terminated
Comment 2 Subodh Soni 2005-05-16 06:49:33 UTC
I was able to reproduce it when I was editing a very long HTML page in the
evolution composer window. I was doing a lot of cut-n-paste and then formatting
the text when this hang happened. The evolution window and the composer window
both got hung with the following messages on the console (from where I had
started evolution):
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
(evolution-2.2:6889): gtkhtml-WARNING **: No such file or directory
 
I have the following versions of gtkhtml on my test machine:

gtkhtml2-3.6.2.0.200505010300-0.snap.novell.0.1
libgtkhtml-2.6.1-2.1
Comment 3 Ganesh (Novell) 2005-05-18 04:03:23 UTC
Would you be able to attach a test page here so that I can have a look?
Comment 4 Subodh Soni 2005-05-18 06:23:54 UTC
Attaching a long html page which when edited either hangs or crashes evolution.
Comment 5 Subodh Soni 2005-05-18 06:25:30 UTC
Created attachment 46584 [details]
HTML Page which when edited in composer hangs evolution.
Comment 6 Ganesh (Novell) 2005-05-19 09:45:39 UTC
*** Bug 300696 has been marked as a duplicate of this bug. ***
Comment 7 Kaushal Kumar 2005-08-01 11:36:40 UTC
Subodh, I am unable to replicate the problem. 
Comment 8 Luke Hutchison 2005-08-01 15:00:14 UTC
Please look at the dup in Comment #6.  It actually doesn't look related at all
to me, based on the stacktrace, but it shows another place that the editor is
locking up, along with the source that pretty clearly shows the editor is going
into an infinite loop.  If it's not related, please re-open that bug.  Thanks!
Comment 9 Kaushal Kumar 2005-08-05 10:44:09 UTC
Hey Luke, 
You are right. 300696 is very much reproducible by me and I am re-opening it.
Thank you.
Comment 10 Rohini 2006-03-10 05:16:54 UTC
Comment 1: Has the fix to Bug 300696 cleared the issue ? I can't reproduce the bug now.

Comment 2: Please have a look at Bug 273512. The warnings look similar.

Comment 4,5:  The page has nested tables. Could be related to Bug 331541.
Comment 11 André Klapper 2006-10-02 08:16:33 UTC
can anybody still reproduce this, or has fixing bug 300696 had a positive side effect on this? :-)

this isn't a blocker bug imo.
Comment 12 Kjartan Maraas 2008-02-01 13:48:57 UTC
Closing this since it's been in needinfo state for more than a year.