IndexOutOfBoundsException: 1 remaining, only had 0

The worst monsters in the Hearthlands warp the fabric of space and time...
User avatar
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by MagicManICT »

Yasgur wrote:It happens to me almost always in my cabin.
Chair, table, cupboards, tub.
Just saw one person say it was always in their house: viewtopic.php?f=47&t=42042#p549069

Wasn't sure if I should merge these together as the trace didn't look quite the same so wasn't sure if it was the same code causing it. (Blame jorb if any are here that don't go together :P )
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
EnderWiggin
Posts: 1156
Joined: Sat Mar 20, 2010 8:23 pm

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by EnderWiggin »

Often happens in the house. Only cupboards and a key on a wall.
User avatar
Yasgur
Posts: 151
Joined: Sun Aug 09, 2009 11:17 pm

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by Yasgur »

It is not very specific, but for the first week of playing, I was not at Java 1.8.60 (cannot recall previous version), but I updated Sunday night and this error is 50X more frequent that it had been.
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by loftar »

Yasgur wrote:It is not very specific, but for the first week of playing, I was not at Java 1.8.60 (cannot recall previous version), but I updated Sunday night and this error is 50X more frequent that it had been.
I suspect this is a coincidence, but if it could be verified, it would be interesting.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by MagicManICT »

Going to post this one here as I'm not sure it needs a new thread, but just got the following as soon as I entered the world:

Code: Select all

java.lang.ArrayIndexOutOfBoundsException: 38
	at haven.GLState$Applier.apply(GLState.java:516)
	at haven.GOut.apply(GOut.java:256)
	at haven.TexGL.render(TexGL.java:334)
	at haven.Tex.crender(Tex.java:90)
	at haven.Tex.crender(Tex.java:95)
	at haven.GOut.image(GOut.java:212)
	at haven.GOut.rimage(GOut.java:234)
	at haven.ChatUI.draw(ChatUI.java:1094)
	at haven.Widget.draw(Widget.java:614)
	at haven.Widget.draw(Widget.java:619)
	at haven.GameUI.draw(GameUI.java:583)
	at haven.Widget.draw(Widget.java:614)
	at haven.Widget.draw(Widget.java:619)
	at haven.RootWidget.draw(RootWidget.java:65)
	at haven.UI.draw(UI.java:140)
	at haven.HavenPanel.rootdraw(HavenPanel.java:289)
	at haven.HavenPanel.run(HavenPanel.java:521)
	at java.lang.Thread.run(Unknown Source)
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
TeckXKnight
Posts: 8274
Joined: Tue Jul 13, 2010 2:31 am
Location: How Do I?

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by TeckXKnight »

loftar wrote:Are there, by any chance, any particular objects and/or effects on screen when this happens?
Yes. It doesn't usually happen if there are just hearthfires. Cupboards, chests, table chair in the houses that crash me.
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by loftar »

MagicManICT wrote:Going to post this one here as I'm not sure it needs a new thread, but just got the following as soon as I entered the world:
That is a completely different bug, however. I'm aware of it, but it is a race condition (so it only happens once in a while, rather than predictably and deterministically), and a fairly uncommon one at that. I'll get around to it, but in the meantime, just restarting the client helps, and it is extremely rare for it to happen once you've entered the world initially.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
FlyNeko
Posts: 3
Joined: Sun Aug 30, 2015 12:35 pm

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by FlyNeko »

Got it only once. In my cabin - chair, cupboard, table with wooden plate, cup, cutlery and some food on it.

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
SpectralSurge
Posts: 5
Joined: Wed Sep 04, 2013 6:39 am

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by SpectralSurge »

I've been getting this for the past hour or so.

Image

I was logged in just fine, doing my business when I click on my claim to change it and BAM this hits. I try to log in again and it hits me every attempt thereafter. I try to go and check on my toon with another character and get hit with another one of these when I try to open the combat menu.
I kinda expected these things, but its infuriating having them pop up on you. Even more so when your trying to do something you feel is important or time related. Haven't had any problems with things like this till today.
DeadlyPencil
Posts: 924
Joined: Sat Nov 21, 2009 12:17 am

Re: IndexOutOfBoundsException: 1 remaining, only had 0

Post by DeadlyPencil »

iam also unable to log in at the moment so i think its the same problems as you..... i hope maybe when the map unloads i might be able to log in? i hope....

Code: Select all

haven.Defer$DeferredException: java.lang.ArrayIndexOutOfBoundsException: 7500
	at haven.Defer$Future.get(Defer.java:168)
	at haven.MCache$Grid.getcut(MCache.java:188)
	at haven.MCache.getcut(MCache.java:433)
	at haven.MCache.reqarea(MCache.java:578)
	at haven.MapView.draw(MapView.java:939)
	at haven.Widget.draw(Widget.java:614)
	at haven.Widget.draw(Widget.java:619)
	at haven.GameUI.draw(GameUI.java:583)
	at haven.Widget.draw(Widget.java:614)
	at haven.Widget.draw(Widget.java:619)
	at haven.RootWidget.draw(RootWidget.java:65)
	at haven.UI.draw(UI.java:140)
	at haven.HavenPanel.rootdraw(HavenPanel.java:289)
	at haven.HavenPanel.run(HavenPanel.java:530)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7500
	at haven.MapMesh$2Buf.faces(MapMesh.java:568)
	at haven.resutil.Ridges.layridge(Ridges.java:673)
	at haven.resutil.TerrainTile$RidgeTile.lay(TerrainTile.java:386)
	at haven.MapMesh.consflat(MapMesh.java:577)
	at haven.MapMesh.build(MapMesh.java:332)
	at haven.MCache$Grid$1.call(MCache.java:227)
	at haven.MCache$Grid$1.call(MCache.java:222)
	at haven.Defer$Future$1.run(Defer.java:139)
	at java.security.AccessController.doPrivileged(Native Method)
	at haven.Defer$Future.run(Defer.java:138)
	at haven.Defer$Worker.run(Defer.java:224)

if any of you other guys get this error when logging in. try to teleport back to HF before the map fully loads. then stay away from wherever the error happened. we found an area that crashed us even after the server restarted.

Return to “Bugs”