GNOME Bugzilla – Bug 733206
gedit should ask to confirm if is used to open a big file
Last modified: 2020-11-24 10:01:00 UTC
Today I got a .nva file opened by gedit by error (nautilus offered gedit as default option even if it cannot open it). The file is around 25 MB and, once gedit is opened, it starts to consume CPU and memory until system is nearly get stalled (I was able to kill it manually login in a console after waiting a bunch fortunately) Maybe gedit should at least show a window asking for confirmation about opening a file that it's not supposed to support (this .nva file is shown as text/x-matlab by nautilus, but I am not sure it's even the case :/). NVA format is the one read by this one: http://nvareader.com/
Normally gedit doesn't freeze anymore when loading a big file. And the loading can be cancelled.
The problem in this case is that system gets nearly frozen before that possibility for cancelling appears :(
This is also very problematic when relying on the accessibility support. I am using Gnome desktop with Orca screen reader and I can barely open files larger than a megabyte or so. The system freezes to a point I do need to turn to another virtual tty in order to kill Gedit otherwise I'm risking that I will have to restart the whole gnome session. Last time this has happened to me I have tried to load 3.5MB text file into gedit.
Mass-closing of all gedit bugzilla tickets. Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing: 2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3 By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements. We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.