List index out of range error.

Bug #899753 reported by Leo
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glyphtracer
Incomplete
Undecided
Unassigned

Bug Description

Export doesn't work on the attached file. Select the second "A" and it fails to export

Revision history for this message
Leo (diebuche) wrote :
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

I can't reproduce this. Please list the exact steps you took, including all glyphs that you have selected and which letters you have assigned them to.

Changed in glyphtracer:
status: New → Incomplete
Revision history for this message
Leo (diebuche) wrote :

1. I start glyphtracer using the terminal.
2. Select the file from my desktop.
3. Leave char set at "lowercase latin"
4. I select the "A" in the third row, 9th column.
5. I click export & get the error.

System details:
Ubuntu 11.10 64bit
Python 2.7.2
Potrace 1.9-1
python-qt4 4.8.5-0ubuntu2

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

Still can't reproduce it, sorry.

Revision history for this message
Leo (diebuche) wrote :

if you're interrested I could upload my VMware imagefile to my Dropbox. It's 6GB though

Revision history for this message
crickxson (crickxson) wrote :

The same error for me.

System details:
Ubuntu 11.04 32bit
Python 2.7.1-0Ubuntu5
Potrace 1.8-4
python-qt4 4.8.3-2

I'll upgrade to 11.10 + the rest and try

Revision history for this message
Mark Stock (mstock-v) wrote :

I, too, am getting the same error.

Fedora 20 x86-64
glyphtracer-1.3-6.1.fc20.noarch
potrace-1.11-3.fc20.x86_64

Is there any way to deselect a character-glyph assignment in the GUI? I'm trying to back out which character might be troublesome.

Revision history for this message
Mark Stock (mstock-v) wrote :

The problem is that glyphtracer does not handle large images correctly. There is some error in image scaling inside glyphtracer. This leads to crop_and_trace grabbing the wrong subimage which is sometimes empty/blank, which potrace then processes to return a PostScript file with no "moveto" command, which potrace_image then dies on because the "lines" list runs out of entries when looking for the first "moveto".

I'm a bit confused when looking at the code, so I am not sure where the actual bug is, but if you rescale your image down to 2000px or less, it should process correctly.

Revision history for this message
Mark Stock (mstock-v) wrote :

Hold on. It's even more interesting than that.

The input image doesn't matter, BUT if you change the zoom level in the GUI while selecting glyphs, the crop boxes for those glyphs are bad, leading to the problem cascade I described above.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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