Bug 351362 - Warn kate user of opening large files
Summary: Warn kate user of opening large files
Status: RESOLVED DUPLICATE of bug 400360
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 430269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-16 13:05 UTC by Gregor Mi
Modified: 2023-02-26 22:22 UTC (History)
6 users (show)

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 Gregor Mi 2015-08-16 13:05:47 UTC
kate version 15.07.90

According to https://git.reviewboard.kde.org/r/114315/ a warning on opening large binary files should already be implemented.

When I open a 1 GB file or drop it to kate there is no warning and it takes very long until kate becomes responsive again.
Comment 1 Christoph Feck 2015-09-23 18:08:48 UTC
Checking the code from the reviewboard link in comment #0, it looks like it only warns when you are opening using the "File > Open..." dialog, but not when opening through other means (e.g. from the command line).
Comment 2 Gregor Mi 2015-09-28 19:43:06 UTC
Thanks for checking. So I keep the bug open as "consistency issue".
Comment 3 Oded Arbel 2021-01-07 09:56:31 UTC
BTW - this is probably not the correct place to report this, but comparing Kate's behavior with very large files (millions of rows) compared to GNOME's gedit: kate freezes until everything is loaded, while gedit loads incrementally and shows the content, which can be scrolled and selected, while it is loading - and this is a much better behavior. Also, gedit finishes much faster than kate on the same file.
Comment 4 Waqar Ahmed 2021-01-10 08:28:55 UTC
(In reply to Oded Arbel from comment #3)

Yes, that is a limitation we have due to how KTextEditor works. For me, with 8G ram, Kate just crashes on a 300 mb file  ¯\_(ツ)_/¯

See: https://invent.kde.org/frameworks/ktexteditor/-/issues/1
Comment 5 Christoph Cullmann 2023-02-26 22:10:28 UTC
*** Bug 430269 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Cullmann 2023-02-26 22:22:21 UTC
Seems we still have cases that bypass the warning.

*** This bug has been marked as a duplicate of bug 400360 ***