GNOME Bugzilla – Bug 329195
Scrolling a big text file, gedit freezes.
Last modified: 2014-02-15 12:53:14 UTC
Please describe the problem: Scrolling a big text file ( like this file attachment 54109 [details] ), gedit freezes. (gdb) bt
+ Trace 65740
Steps to reproduce: 1. Load a big text file ( attachment 54109 [details] ) 2. Scroll on gedit. 3. Actual results: Expected results: Does this happen every time? always Other information: gedit-2.13.4-1 glib2-2.9.5-1 gtk2-2.8.11-1 pango-1.11.2-1 libgnome-2.13.7-3 libgnomeui-2.13.3-1 libbonobo-2.13.1-8 libbonoboui-2.13.1-4
I can reproduce the freeze also with gtksourceview's test-widget. moving to GtkSourceView
https://launchpad.net/distros/ubuntu/+source/gtksourceview/+bug/52975 mentions http://patrickguignot.free.fr/sf/nouvelles_sf.html as another 'test case'. Bumping Version.
If I load the files, gedit uses 100% of CPU for a few minutes, then it start working quite well. So, AFAIK, the problem is that the syntax hl is too slow with very big XML files. May be this bug is somewhat related to bug #330406.
Muntyan: we have seen that on the sample XML attached to this bug the new syntax hl engine does not block but it is very very slow when highlighting text. You can litteraly see it highlighting the text line after line.
(In reply to comment #4) > Muntyan: we have seen that on the sample XML attached to this bug the new > syntax hl engine does not block but it is very very slow when highlighting > text. You can litteraly see it highlighting the text line after line. > Should be much better now. I guess it was the problem with the tree, that engine walked all the nodes.
Closing as fixed. Both the engine and the lang file have been much improved.