GNOME Bugzilla – Bug 552137
freeze in HTML files
Last modified: 2014-07-21 10:52:55 UTC
Please describe the problem: Gedit freezes if big HTML files are opened. Syntax highlighting seems to be the probem. Steps to reproduce: 1. Download some big HTML file, i.e. wget http://www.imdb.com/chart/top 2. Open it in gedit and scroll Actual results: Gedit freezes. Expected results: It works Does this happen every time? Yes. If syntax highlighting is disabled, the problem does not occur. Other information:
I can confirm that gedit gets unresponsive for a significant time when opening a big file such as top.html from http://www.imdb.com/chart/top -- but gedit never actually freezes. Yes, if you turn off syntax highlighting, performance increases to a tolerable level. Speculation: perhaps the syntax highlighting code needs to be revisited for some optimization? I am using gedit 2.22.3.
Actually, I think the problem is that in top.html, there is a line with about 100'000 bytes length. This probably causes the performance problems.
Very long lines are not well supported by GtkTextView, the GTK+ widget used by gedit. *** This bug has been marked as a duplicate of bug 727777 ***