Bug 193271

Summary: kwrite and kate freezes replacing text on big files
Product: [Applications] kate Reporter: Hugo Lobo <hugo_alobo>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: marekful
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Test Case

Description Hugo Lobo 2009-05-19 20:34:56 UTC
Version:            (using KDE 4.2.3)
OS:                Linux
Installed from:    Unspecified Linux

Replacing text on big files freezes kwrite and kate.

Procedure:

1. Open the file with kwrite or kate
2. Select Edit->Replace
3. Insert the old and new string and click "Replace"
4. Kwrite and kate freezes.

Running from the command line, i get:

(...)
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  64  LINEEND:  128
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  64  MAX:  64                              
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                               
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  128  LINEEND:  192
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  128  MAX:  128                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  192  LINEEND:  256
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  192  MAX:  192                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  256  LINEEND:  320
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  256  MAX:  256                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  320  LINEEND:  384
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  320  MAX:  320                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  384  LINEEND:  448
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  384  MAX:  384                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  448  LINEEND:  512
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  448  MAX:  448                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  512  LINEEND:  576
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  512  MAX:  512                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  576  LINEEND:  640
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  576  MAX:  576                             
kwrite(21124)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512                                
(...)
Comment 1 Hugo Lobo 2009-05-19 20:47:25 UTC
Created attachment 33838 [details]
Test Case

This tar.bz2 contains a .cvs text file as test case. Replacing all the '"' chars to '' will freeze kwrite and kate.
Comment 2 Hugo Lobo 2009-08-26 23:26:14 UTC
This bug was fixed with KDE 4.3