IndexOutOfBoundsException: 1 remaining, only had 0

The worst monsters in the Hearthlands warp the fabric of space and time...
User avatar
romovs
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

IndexOutOfBoundsException: 1 remaining, only had 0

Post by romovs »

Crashed when walking.

Fedora Linux. Oracle JRE 1.8.0_60. Intel Graphics 3000.

Code: Select all

java.lang.RuntimeException: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
	at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
	at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
	at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
	at javax.media.opengl.Threading.ijava.lang.RuntimeException: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
	at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
	at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
	at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
	at javax.media.opengl.Threading.invoke(Threading.java:191)
	at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:528)
	at haven.HavenPanel$6.uglyjoglhack(HavenPanel.java:441)
	at haven.HavenPanel$6.run(HavenPanel.java:472)
	at java.lang.Thread.run(Unknown Source)
Caused by: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at haven.BGL.run(BGL.java:80)
	at haven.HavenPanel.redraw(HavenPanel.java:387)
	at haven.HavenPanel$1.display(HavenPanel.java:102)
	at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:649)
	at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:633)
	at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1271)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1103)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:978)
	at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1282)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.nio.Buffers.rangeCheck(Buffers.java:1033)
	at jogamp.opengl.gl4.GL4bcImpl.glNormalPointer(GL4bcImpl.java:19586)
	at haven.BGL$73.run(BGL.java:577)
	at haven.BGL.run(BGL.java:78)
	... 22 more
nvoke(Threading.java:191)
	at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:528)
	at haven.HavenPanel$6.uglyjoglhack(HavenPanel.java:441)
	at haven.HavenPanel$6.run(HavenPanel.java:472)
	at java.lang.Thread.run(Unknown Source)
Caused by: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at haven.BGL.run(BGL.java:80)
	at haven.HavenPanel.redraw(HavenPanel.java:387)
	at haven.HavenPanel$1.display(HavenPanel.java:102)
	at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:649)
	at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:633)
	at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1271)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1103)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:978)
	at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1282)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.nio.Buffers.rangeCheck(Buffers.java:1033)
	at jogamp.opengl.gl4.GL4bcImpl.glNormalPointer(GL4bcImpl.java:19586)
	at haven.BGL$73.run(BGL.java:577)
	at haven.BGL.run(BGL.java:78)
	... 22 more
User avatar
mattgravy
Posts: 55
Joined: Mon Jan 06, 2014 3:05 am
Location: United Kingdom

Random crashes and getting this error each time

Post by mattgravy »

java.lang.RuntimeException: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
at javax.media.opengl.Threading.invoke(Threading.java:191)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:528)
at haven.HavenPanel$6.uglyjoglhack(HavenPanel.java:441)
at haven.HavenPanel$6.run(HavenPanel.java:472)
at java.lang.Thread.run(Unknown Source)
Caused by: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
at haven.BGL.run(BGL.java:80)
at haven.HavenPanel.redraw(HavenPanel.java:387)
at haven.HavenPanel$1.display(HavenPanel.java:102)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:649)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:633)
at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1271)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1103)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:978)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1282)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
at com.jogamp.common.nio.Buffers.rangeCheck(Buffers.java:1033)
at jogamp.opengl.gl4.GL4bcImpl.glNormalPointer(GL4bcImpl.java:19586)
at haven.BGL$73.run(BGL.java:577)
at haven.BGL.run(BGL.java:78)
... 22 more
My Javas up to date not sure if the the problems my end or not?
World 7-8: Hermit
World 9: Traveling Hermit
World 10: Lawspeaker of Waterdeep (NK) And Hermit (HH)
World 11: Lawspeaker of Scrublands (HH)
World 12-13: Hermit
World 14: Leader of a small band of merry men
World 15: Hermit
User avatar
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Required 1 remaining elements in buffer, only had 0

Post by MagicManICT »

got the following error seemingly at random:

Code: Select all

java.lang.RuntimeException: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
	at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
	at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
	at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
	at javax.media.opengl.Threading.invoke(Threading.java:191)
	at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:528)
	at haven.HavenPanel$6.uglyjoglhack(HavenPanel.java:441)
	at haven.HavenPanel$6.run(HavenPanel.java:472)
	at java.lang.Thread.run(Unknown Source)
Caused by: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at haven.BGL.run(BGL.java:80)
	at haven.HavenPanel.redraw(HavenPanel.java:387)
	at haven.HavenPanel$1.display(HavenPanel.java:102)
	at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:649)
	at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:633)
	at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1271)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1103)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:978)
	at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1282)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.nio.Buffers.rangeCheck(Buffers.java:1033)
	at jogamp.opengl.gl4.GL4bcImpl.glVertexPointer(GL4bcImpl.java:35795)
	at haven.BGL$111.run(BGL.java:810)
	at haven.BGL.run(BGL.java:78)
	... 22 more
I have shadows on, AA off, AI at 0. I was just trying to move through an area when the client crashed.

Game seems to have loaded back up fine. If it crashes again, I'll double check drivers and such as I've got an older APU and last update to Catalyst didn't include a new driver version.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
Ragnar214
Posts: 276
Joined: Fri Aug 28, 2015 11:09 pm

Re: IndexOutOfBoundsException

Post by Ragnar214 »

The infamous indexoutofboundsexception
User avatar
Mashadar
Posts: 379
Joined: Thu Jan 20, 2011 9:34 am

Re: IndexOutOfBoundsException

Post by Mashadar »

Yeah, I keep getting this exception right after I login. Usually takes 3-4 attemps before it stops crashing.
The Amber client now has a hack to work around it, though.
bekill
Posts: 22
Joined: Fri Dec 23, 2011 10:44 am

Crashing fairly often.

Post by bekill »

I am unsure what is causing it but it seems to happen randomly during gameplay. If anyone can help me it would be much appreciated.

Code: Select all

java.lang.RuntimeException: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
	at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
	at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
	at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
	at javax.media.opengl.Threading.invoke(Threading.java:191)
	at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:528)
	at haven.HavenPanel$6.uglyjoglhack(HavenPanel.java:441)
	at haven.HavenPanel$6.run(HavenPanel.java:472)
	at java.lang.Thread.run(Unknown Source)
Caused by: haven.BGL$BGLException: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at haven.BGL.run(BGL.java:80)
	at haven.HavenPanel.redraw(HavenPanel.java:387)
	at haven.HavenPanel$1.display(HavenPanel.java:102)
	at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:649)
	at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:633)
	at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1271)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1103)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:978)
	at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1282)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Required 1 remaining elements in buffer, only had 0
	at com.jogamp.common.nio.Buffers.rangeCheck(Buffers.java:1033)
	at jogamp.opengl.gl4.GL4bcImpl.glVertexPointer(GL4bcImpl.java:35795)
	at haven.BGL$111.run(BGL.java:810)
	at haven.BGL.run(BGL.java:78)
	... 22 more
User avatar
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: IndexOutOfBoundsException

Post by MagicManICT »

Just had the exact same crash (completely identical report). It was a fairly short session before the crash. I had collected a snapdragon (first for bonus LP), killed three rabbits, was wandering through terrain and area I had been through before. Ducked in a cave and back out (decided against running into bats in my injured state). Immediately before the crash, I did notice some severe lighting flickers. Setting same as before: Shadows on, AA off, AI 1. Note I am running latest build of Java 8 x32.

going to try turning off the lighting settings to see if it changes anything.

edit: This time I had turned shadows off, but kept the lighting option on. AI still at 1.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
czaper2
Posts: 389
Joined: Mon Aug 26, 2013 12:48 pm

Re: IndexOutOfBoundsException

Post by czaper2 »

I get this a lot when walking outside from a house.
User avatar
jorb
Posts: 18715
Joined: Fri Apr 03, 2009 7:07 am
Location: Here, there and everywhere.

Re: IndexOutOfBoundsException

Post by jorb »

Known and common bug. Stickying until fixed. Feel free to merge others in here.
"The psychological trials of dwellers in the last times will be equal to the physical trials of the martyrs. In order to face these trials we must be living in a different world."

-- Hieromonk Seraphim Rose
User avatar
jorb
Posts: 18715
Joined: Fri Apr 03, 2009 7:07 am
Location: Here, there and everywhere.

Re: IndexOutOfBoundsException

Post by jorb »

Merged a really old one.
"The psychological trials of dwellers in the last times will be equal to the physical trials of the martyrs. In order to face these trials we must be living in a different world."

-- Hieromonk Seraphim Rose

Return to “Bugs”