https://bugs.kde.org/show_bug.cgi?id=418636

            Bug ID: 418636
           Summary: Search/Replace exceeds physical ram on 5mb file
           Product: kate
           Version: 19.12.2
          Platform: PCLinuxOS
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: search
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: hpf...@psnarf.org
  Target Milestone: ---

SUMMARY
Stop button unresponsive during search/replace on a 80K-line text file. 
KInfoCenter showed swap partition in use. Replace reports processing 27 million
found, which should be only 5k. KSysGuard showed 18 threads, watched ram use
increase from 10.1gb to 10.7gb, when I killed it.

STEPS TO REPRODUCE
1. Capture ldd output into text file.
2. Search for " \(0x" regular expression
3. 

OBSERVED RESULT
0 of 27,095,586 processed, should be only 5,078. System briefly froze as the
unused swap partition invoked. Physical ram allocation went from 4gb out of
14.7gb to  10gb+,leaving only 200kb unallocated. Kate unresponsive. Had to kill
it as more processes went to swap and kate allocation increased 

EXPECTED RESULT
Replace (0x with newline for sed deletion

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 64-bit
(available in About System)
KDE Plasma Version: 5.18.0
KDE Frameworks Version:  5.67.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Slackware post 14.2 -current
Processors: 8 × AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
Memory: 14.7 GiB of RAM

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to