Bug 937 : extrusion example error
Last modified: 2008-10-17 07:48




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P3
Severity:
normal

 

Reporter:
wazak
Assigned To:
fry

Attachment Type Created Size Actions
I only changed input image file (same resolution,size with original pgm) application/x-zip-compressed 2008-10-02 07:10 132.13 KB

Description:   Opened: 2008-10-02 01:53
When I only replaced the image file name with my own image, I got this error.
(I didn't change any other part of the code)

The image size is same(200x200) with the original one with the same format(jpg).
The error message is attached below.

--------------------- cut here ---------------------------------------
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException:
40000
at processing.core.PLine.drawLine_plain_spatial(PLine.java:774)
at processing.core.PLine.draw(PLine.java:404)
at processing.core.PGraphics3D.render_lines(PGraphics3D.java:1569)
at processing.core.PGraphics3D.endShape(PGraphics3D.java:1025)
at processing.core.PGraphics.endShape(PGraphics.java:1350)
at processing.core.PGraphics3D.point(PGraphics3D.java:2300)
at processing.core.PApplet.point(PApplet.java:6818)
at Extrusion.draw(Extrusion.java:48)
at processing.core.PApplet.handleDraw(PApplet.java:1400)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:595)
Additional Comment #1 From fry 2008-10-02 05:53
please attach your modified copy of the sketch to this bug report. use
tools -> archive sketch and then click the "create new attachment" link above.
Additional Comment #2 From wazak 2008-10-02 07:10
edit]
I only changed input image file (same resolution,size with original pgm)

Since I didn't actually change the code, I only changed the image file, I
doubt that there might be some bug in 'point' function that internally
calculate 2D position of the sketch window from 3D coordinates by projection.
If the generated 2D position is outside of the window, then
arrayIndexOutofBounds error make sense..
Additional Comment #3 From fry 2008-10-13 05:57
k, thanks, will check into it.
Additional Comment #4 From fry 2008-10-17 07:48
fixed for 0151.