gedit fails to scroll on huge documents

Asked by Colin Warren

Ok, I had 29 large text files (between 1.3 and 30MB each, at an average of 22.4MB) and I was manually merging them into one gigantic text file. I scrolled to the top and then I could not scroll down. It stopped scrolling down at line 3,909,997.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Arnaudus
Solved:
Last query:
Last reply:
Revision history for this message
Colin Warren (colin-wyatt-warren-deactivatedaccount) said :
#1

How might I scroll past that?

Revision history for this message
Dmitry Tantsur (divius) said :
#2

Could it be that you merely ran out of the memory? I used to easily open 200 MB's file.
One tip: do not open all these files together! Open destination file, open the first, merge, close and so on.
Next tip: if you just want to put data from one file right after data from another you can use:

touch destionation.txt
cat source1.txt >> destionation.txt
cat source2.txt >> destionation.txt

and so on.

Revision history for this message
Best Arnaudus (a-lerouzic) said :
#3

According to the bug tracking system of Gnome, many bugs are reported on issues with long lines. See bug #37511 and links therein, it seems that the problem is not large files, but long lines.

Revision history for this message
Colin Warren (colin-wyatt-warren-deactivatedaccount) said :
#4

Thanks, Arnaudus for the answer, and thanks Divius for an alternative way. I think I have plenty of memory (4GB ram + 10GB swap) so the problem must be the bug.

Revision history for this message
Colin Warren (colin-wyatt-warren-deactivatedaccount) said :
#5

Thanks Arnaudus, that solved my question.