gedit can't open files over 2gb in size

Bug #128497 reported by Marques Johansson on 2007-07-26
4
Affects Status Importance Assigned to Milestone
gedit
Confirmed
Wishlist
gedit (Ubuntu)
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

gedit can't open files over 2gb in size.

mjohansson@bang:/tmp$ dpkg -p gedit | grep Version
Version: 2.19.2-0ubuntu3

mjohansson@bang:/tmp$ ls -la /tmp/vts.sql
-rw-r--r-- 1 mjohansson mjohansson 2357339431 2007-07-26 07:02 /tmp/vts.sql

mjohansson@bang:/tmp$ gedit /tmp/vts.sql
[ in the editor tab is a notice with a cancel button that reads]
Could not open the file /tmp/vts.sql.
The file is too big.

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
Sebastien Bacher (seb128) wrote :

thank you for your bug report, could you try if that's still an issue on hardy?

Changed in gedit:
status: New → Incomplete
Marques Johansson (marques) wrote :

mjohansson@bang:~$ dpkg -s gedit | grep Version
Version: 2.22.1-0ubuntu1

mjohansson@bang:~$ ls -la test2.sql
-rw-r--r-- 1 mjohansson mjohansson 2122562112 2008-05-06 10:30 test2.sql

mjohansson@bang:~$ gedit test2.sql
[ ** In the gedit window: ** ]
Could not open the file /home/mjohansson/test2.sql.
Not enough available memory to open the file. Please close some running applications and try again.

I guess that is an improvement.
It shouldn't try to load the whole document at once if it can't, but I guess that would be the matter or a different bug.

Seems like a fix.

Marques Johansson (marques) wrote :

After closing Firefox and some other apps, I tried again and got the same error about not having enough memory. Including cache and swap I should have had enough byte-for-byte. I'm sure there is some overhead, but an extra gig?

mjohansson@bang:~$ ls -la test2.sql
-rw-r--r-- 1 mjohansson mjohansson 2122562112 2008-05-06 10:30 test2.sql
mjohansson@bang:~$ free
             total used free shared buffers cached
Mem: 3627628 2329684 1297944 0 79412 1346720
-/+ buffers/cache: 903552 2724076
Swap: 1020088 76940 943148

Changed in gedit:
status: Incomplete → New
Sebastien Bacher (seb128) wrote :

not sure that opening that amonth of text in a graphical editor is realistic anyway, should be sent to bugzilla.gnome.org since that's an upstream issue and the ubuntu team doesn't have the ressources to work on such changes now

Andreas Moog (ampelbein) wrote :

I reported the Issue upstream. You can track the status and make comments here:
http://bugzilla.gnome.org/show_bug.cgi?id=549959

Changed in gedit:
status: New → Confirmed
Changed in gedit:
status: Unknown → New
Andreas Moog (ampelbein) on 2008-09-08
Changed in gedit:
status: Confirmed → Triaged

Could you try to test this with gedit 2.30, as we reworked the file loading and it could be fixed.

Changed in gedit:
importance: Unknown → Medium
Changed in gedit:
importance: Medium → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.