Bug 502195 - Crash whenever a long-sized file is loaded and the find command is triggered
Summary: Crash whenever a long-sized file is loaded and the find command is triggered
Status: NEEDSINFO BACKTRACE
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 24.12.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-30 07:09 UTC by MV
Modified: 2025-04-11 03:45 UTC (History)
3 users (show)

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


Attachments
Screenshot showing file statistics (25.01 KB, image/png)
2025-03-30 07:09 UTC, MV
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MV 2025-03-30 07:09:59 UTC
Created attachment 179860 [details]
Screenshot showing file statistics

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Whenever we open a file having long line of codes, (in my case, it crashed for a theme css file I opened for Obsidian having statistics as per attached screenshot), and when I either try to scroll quickly or search a term using FIND function, the app hangs and crashes.

This does not happen with other text editors on the same OS, same computer. Therefore, it is not an issue of RAM or STORAGE or OS.

STEPS TO REPRODUCE
1. Open a large file.
2. Scroll quickly or search for a term.

OBSERVED RESULT
Application crashes.

EXPECTED RESULT
Find function should work.

SCREENSHOT
Comment 1 Christoph Cullmann 2025-03-30 14:25:57 UTC
Does the crash reporter show up with any backtrace?
Comment 2 Waqar Ahmed 2025-03-30 17:14:17 UTC
Was not able to reproduce with minified jquery sources. Is it possible for you to share the file? Also which find are you using, the plugin or just ctrl+f?
Comment 3 Waqar Ahmed 2025-04-03 09:58:55 UTC
changing status
Comment 4 MV 2025-04-03 15:46:29 UTC
I was using the normal find CTRL + F. And no, there is no crash reporter or any message or alert that shows up. The application simply stops responding. And then I have to hard close it through task manager or it sometimes even closes on its own without any alert or report.

For reference, you can use following file. This has a very long length in the file.

https://github.com/chrisgrieser/shimmering-focus/blob/main/theme.css
Comment 5 John Kizer 2025-04-11 03:45:33 UTC
Hi - if the Crashed Processes Viewer doesn't appear with a prompt to submit a full crash report, backtraces can be generated through other methods as well: https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports 

Could you please provide a backtrace using whichever method is viable on your device? Thanks!