---- Reported by tomas 2005-09-30 09:50:29 ---- The java implementation of glu in JOGL seems to have a bug in gluBuildMipMaps2D() when using none power of 2 textures. The same texture works with the C implementation when using the tag -Djogl.glu.nojava. Stack trace of the crash: Caused by: java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Unknown Source) at java.nio.DirectByteBuffer.get(Unknown Source) at net.java.games.jogl.impl.mipmap.ScaleInternal.scale_internal_ubyte(ScaleInternal.java:243) at net.java.games.jogl.impl.mipmap.BuildMipmap.gluBuild2DMipmapLevelsCore(BuildMipmap.java:521) at net.java.games.jogl.impl.mipmap.Mipmap.gluBuild2DMipmaps(Mipmap.java:719) at net.java.games.jogl.impl.GLUImpl.gluBuild2DMipmapsJava(GLUImpl.java:587) at net.java.games.jogl.impl.GLUImpl.gluBuild2DMipmaps(GLUImpl.java:823) ---- Additional Comments From tomas 2005-09-30 09:51:56 ---- Created an attachment The texture that causes the crash ---- Additional Comments From kbr 2005-10-22 16:17:51 ---- This appears to be yet another array index out-of-bounds bug in SGI's original C sources (see Issue 140 for another). To work around it, clamping on the maximum X coordinate traversed during scaling of non-power-of-two textures has been added. This bug has been fixed on the JSR-231 branch and will be present in the first beta build. --- Bug imported by sgothel@jausoft.com 2010-03-24 07:48 EDT --- This bug was previously known as _bug_ 177 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=177 Imported an attachment (id=64) The original submitter of attachment 64 [details] is unknown. Reassigning to the person who moved it here: sgothel@jausoft.com.