Very long lines wrap on themselves becoming unreadable

Bug #113246 reported by beerfan
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GtkSourceView
Fix Released
High
gtksourceview (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

Open a text file with very long lines. I'm not sure what the limit is but my test case is a 30k sql file with a single insert on 1 line. I'll attach a screenshot if I can but essentially the line wraps on itself and becomes illegible.

Revision history for this message
beerfan (beerfan) wrote :

Here's a screenshot demonstrating the bug.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. What version of Ubuntu do you use? Could you attach an example to the bug?

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
beerfan (beerfan) wrote :

This is with gedit 2.18.1 in Feisty. I'm not sure what you mean about attaching an example. I attached a screenshot. Do you mean a sample text file? I'm playing with creating a sample now and have discovered a few things.

1. Around 4100+ characters (on a single line) the text becomes invisible for a while. It does not wrap but simply is cut off in the display. The cursor still moves through it though so it must be there.

2. Around 40K characters switching syntax highlighting is a huge mistake (the entire desktop froze so long I thought it was hung).

Revision history for this message
beerfan (beerfan) wrote :

This sample does not show the wrapping problem shown in my screen capture but does demonstrate 2 other symptoms.

1. Sample line 1 is 4225 characters long. Pressing the 'end' key on that line will
show no text at the cursor but moving the cursor back to 4100 something will
cause the text to suddenly appear.

2. Sample line 2 is 29569 characters long. Moving the horizontal scrollbar will
show the text of this document truncated at a certain point and repeated with
large gaps of nothing inbetween.

I have an SQL sample with only 9K characters on a line which is showing the wrapping symptom but it is in french and contains a lot of accented characters so I cannot be certain if that is a factor. Syntax highlighting does not seem to be the main cause because I see the problem with no highlighting and with any other syntax though it does suffer under these conditions.

Revision history for this message
beerfan (beerfan) wrote :

This javascript file exhibits the "wrapping" problem.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the details, I've sent the bug upstream, you can read about it on http://bugzilla.gnome.org/show_bug.cgi?id=440383

Changed in gedit:
status: Needs Info → Confirmed
Changed in gtksourceview:
status: Unknown → Unconfirmed
Changed in gtksourceview:
status: New → Invalid
Changed in gtksourceview:
status: Invalid → Confirmed
Changed in gtksourceview:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug is fixed in hardy

Changed in gtksourceview:
status: Confirmed → Fix Released
Revision history for this message
Conrad Knauer (atheoi) wrote :

Sebastien Bacher: I'm running an up-to-date (March 13, 2008) copy of Hardy in VirtualBox and the test case I gave in the duplicate of this bug (Bug #157549) is still not working right. The test case:

---
I was testing the "pi" package in Ubuntu Gutsy (current to the repositories as of Oct. 26, 2007).
The command "pi 1000000 > pi-1M.txt" output the first million digits of pi to a text file, which I then wanted to inspect via gedit (version 2.20.1-0ubuntu3).

The result was rather bizarre, as if one were typing on a typewriter and then typed over the same line again.
The result did not change even if "Do not split words over two lines" in the preferences is checked or not.
---

The difference now is that gedit is 2.22.0-0ubuntu1 (and libgtksourceview2.0-0 is version 2.2.0-0ubuntu1)

Do I just need to be more patient and wait for a pending package to come down the tubes? ;)

Revision history for this message
Sebastien Bacher (seb128) wrote :

there is no update to wait no, if that's still an issue somebody having the bug needs to reopen the bugzilla ticket

Revision history for this message
Conrad Knauer (atheoi) wrote :

Should this Ubuntu bug be set back to "Confirmed" or such?

Changed in gtksourceview:
importance: Unknown → High
Revision history for this message
mspanc (mspanc) wrote :

It is still present in 10.04.

Revision history for this message
mspanc (mspanc) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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