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 552137 - freeze in HTML files
freeze in HTML files
Status: RESOLVED DUPLICATE of bug 727777
Product: gedit
Classification: Applications
Component: general
2.22.x
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on: 172099
Blocks:
 
 
Reported: 2008-09-13 16:19 UTC by Christian Wäckerlin
Modified: 2014-07-21 10:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Christian Wäckerlin 2008-09-13 16:19:56 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:
Comment 1 Michael Wilson 2008-09-21 18:52:33 UTC
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.
Comment 2 Christian Wäckerlin 2008-09-21 22:19:40 UTC
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.
Comment 3 Sébastien Wilmet 2014-07-21 10:52:55 UTC
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 ***