Bug 238246 - Kate stalls when opening large compressed js files
Summary: Kate stalls when opening large compressed js files
Status: RESOLVED DUPLICATE of bug 225228
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 23:44 UTC by Gerald Senarclens de Grancy
Modified: 2010-05-20 08:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Senarclens de Grancy 2010-05-19 23:44:32 UTC
Version:           3.4.2 (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

When opening a big 'compressed' js file Kate stalls (depending on the size, it may take a few minutes of 100% CPU before the file is shown). Once the file is shown, Kate stays completely unresponsive and is hard to use and terminate.

reproduce:
- open http://download.dojotoolkit.org/release-1.4.2/dojo.js (27kB) 

expected:
- the file is opened and Kate stays responsive _or_ Kate shows a warning that the file is "really big" which it isn't

actual:
- Kate stalls

The problem is a bug b/c even though it is unnatural to open a compressed js file, it's something happening in the day to day life of a web developer b/c one doesn't know the content of each file before opening it. Either way, Kate shouldn't stall. I suppose there's a too high complexity when it comes to parsing (extremely) long lines since opening the same js files 'uncompressed' works almost instantly and as expected.
Comment 1 Dominik Haumann 2010-05-20 08:45:13 UTC
known issue. This is because of very long lines.
Qt has to layout the entire line because it might contain bi-directional text. No way around it...

*** This bug has been marked as a duplicate of bug 225228 ***