Bug 450411 - Loading files with CRLF lineendings causes high CPU load
Summary: Loading files with CRLF lineendings causes high CPU load
Status: RESOLVED DUPLICATE of bug 448353
Alias: None
Product: kdiff3
Classification: Applications
Component: application (show other bugs)
Version: 1.9.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: michael
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-16 22:12 UTC by sutupud
Modified: 2022-02-23 20:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sutupud 2022-02-16 22:12:21 UTC
SUMMARY

STEPS TO REPRODUCE
1.  Create a large files with CRLF line endings, i.e. using python:

    open('test', 'w').writelines('a' * 100 + '\r\n'   for _ in range(5000))

2. Comparing the file with any other (or with itself) takes a long time and uses full CPU

OBSERVED RESULT
Freeze happens when lineendings are not unix lineendings.

EXPECTED RESULT
Line ending shouldn't affect load times

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

From the log messages it seems it's stuck while loading the file, i.e:

    $ kdiff3 test /dev/null 
    org.kde.kdiff3: "Loading A: /tmp/test"

It doesn't get to loading the second file

Also tested with windows (1.9.4 and latest nightly from binary factory)
Comment 1 michael 2022-02-23 20:37:24 UTC
*** This bug has been marked as a duplicate of bug 448353 ***