GNOME Bugzilla – Bug 670064
Load file contents lazily when scrolling
Last modified: 2016-06-12 11:07:02 UTC
Original Report: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/911772 I have opended a kernel.log which has so much entries that gedit was not able to reach then end of the document. On closing this fiel gedit SIGSEV was catched by apport deamon. I would like to attach the kernel log for reproducing purposes, but it has a size of 1.6GB, so attaching seems not to be indicated. Stacktrace: #0 info_bar_set_progress (tab=<optimized out>, size=6, total_size=1) at gedit-tab.c:894 __PRETTY_FUNCTION__ = "info_bar_set_progress" Cannot access memory at address 0x7fffd1e5b458 StacktraceTop: info_bar_set_progress (tab=<optimized out>, size=6, total_size=1) at gedit-tab.c:894
It is known that very big files can not be opened with gedit. Ideally, the file contents should be loaded lazily. Only when we scroll, the contents is loaded. If too much memory is used, free some of the contents.
But GtkTextView was not really meant to be used like that. I think it will never be fixed as long as GtkTextView is used. It is not worth keeping this bug open in bugzilla forever.