Bug 238246

Summary: Kate stalls when opening large compressed js files
Product: [Applications] kate Reporter: Gerald Senarclens de Grancy <oss>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***