After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652607 - hangs when binary file is opened
hangs when binary file is opened
Status: RESOLVED DUPLICATE of bug 676526
Product: gedit
Classification: Applications
Component: general
3.0.x
Other Linux
: Normal major
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-14 22:49 UTC by Antti Palosaari
Modified: 2012-08-01 10:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example of problematic file (207.95 KB, application/zip)
2011-08-31 17:52 UTC, lurohh
Details
Sample file to reproduce the bug (249.82 KB, application/octet-stream)
2011-12-12 19:08 UTC, Jean-Philippe Fleury
Details

Description Antti Palosaari 2011-06-14 22:49:57 UTC
Gedit hangs when binary file is opened.

That haven't happened older versions. I have Fedora 15 x86_64, Gedit version 3.0.2.
Comment 1 Antti Palosaari 2011-06-14 23:04:42 UTC
Actually it does not hang, it only does take very long time to detect file is binary and during that time it consumes a lot of CPU.

Following debug is printed:
(gedit:2044): PkGtkModule-DEBUG: InstallFontconfigResources method invoked

Could you optimize that, something like it have been earlier? It is *much* too slow now.
Comment 2 André Klapper 2011-06-19 20:42:53 UTC
> it only does take very long time

What does that exactly mean? ("very long" is subjective)
And how big is the file that you wanted to open?
Comment 3 Ignacio Casal Quinteiro (nacho) 2011-06-19 20:44:49 UTC
yeah... the problem of this is that we don't really know when to stop, we should make some rule that if the file has too many invalid chars we should stop loading it and ask the user if he wants to really load a binary file.
Comment 4 lurohh 2011-08-31 17:52:30 UTC
Created attachment 195332 [details]
example of problematic file

Attaching a log file that makes gedit 2.30.4 choke. Fwiw, line 60 seems to contain a null byte.
Comment 5 Jean-Philippe Fleury 2011-12-12 19:08:11 UTC
Created attachment 203286 [details]
Sample file to reproduce the bug

IMHO, it's a severe bug. Even with a small file (see the attached sample of 249.8Kb), I can wait several minutes and gedit is still freezing and eating 100% CPU, so I must kill it in a terminal.
Comment 6 André Klapper 2012-08-01 10:53:16 UTC
Marking as duplicate of bug 676526 which has a developer comment.

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