[fixed] default client crash by cupboard

The worst monsters in the Hearthlands warp the fabric of space and time...
iamahh
Posts: 1806
Joined: Sat Dec 12, 2015 8:23 pm

[fixed] default client crash by cupboard

Post by iamahh »

gemstone cupboard opens on Amber but crashes Default client

Code: Select all

java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
	at sun.awt.image.ByteInterleavedRaster.setSample(Unknown Source)
	at haven.PUtils.blit(PUtils.java:150)
	at haven.res.gfx.invobjs.gems.gemstone.Gemstone.construct(gemstone.cjava:81)
	at haven.res.gfx.invobjs.gems.gemstone.Gemstone.<init>(gemstone.cjava:24)
	at sun.reflect.GeneratedConstructorAccessor46.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at haven.Utils.construct(Utils.java:1390)
	at haven.GSprite$FactMaker$1.create(GSprite.java:63)
	at haven.GSprite.create(GSprite.java:88)
	at haven.GItem.spr(GItem.java:142)
	at haven.WItem.draw(WItem.java:174)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.Inventory.draw(Inventory.java:72)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.Window.draw(Window.java:186)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.GameUI.draw(GameUI.java:868)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.RootWidget.draw(RootWidget.java:68)
	at haven.UI.draw(UI.java:203)
	at haven.JOGLPanel.display(JOGLPanel.java:444)
	at haven.JOGLPanel.run(JOGLPanel.java:524)
	at java.lang.Thread.run(Unknown Source)
Last edited by iamahh on Wed Oct 14, 2020 3:43 am, edited 2 times in total.
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: default client crash by cupboard

Post by loftar »

Yes, I've noticed there being something weird about gemstones, but I haven't been able to figure out just what, yet, and neither have I managed to get it to happen to me. Still working on it.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: default client crash by cupboard

Post by loftar »

I've added some debugging code to help me track down the cause of this problem, so if someone could go crash on it again, that would help.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
iamahh
Posts: 1806
Joined: Sat Dec 12, 2015 8:23 pm

Re: default client crash by cupboard

Post by iamahh »

bump

Code: Select all

java.lang.RuntimeException: (16, 24) (9, 5) (14, 22) (14, 22) gfx/invobjs/gems/coral/tiny-rough(v1)
	at haven.res.gfx.invobjs.gems.gemstone.Gemstone.construct(gemstone.cjava:82)
	at haven.res.gfx.invobjs.gems.gemstone.Gemstone.<init>(gemstone.cjava:24)
	at sun.reflect.GeneratedConstructorAccessor44.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at haven.Utils.construct(Utils.java:1390)
	at haven.GSprite$FactMaker$1.create(GSprite.java:63)
	at haven.GSprite.create(GSprite.java:88)
	at haven.GItem.spr(GItem.java:142)
	at haven.WItem.draw(WItem.java:174)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.Inventory.draw(Inventory.java:72)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.Window.draw(Window.java:186)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.GameUI.draw(GameUI.java:868)
	at haven.Widget.draw(Widget.java:756)
	at haven.Widget.draw(Widget.java:761)
	at haven.RootWidget.draw(RootWidget.java:68)
	at haven.UI.draw(UI.java:206)
	at haven.JOGLPanel.display(JOGLPanel.java:444)
	at haven.JOGLPanel.run(JOGLPanel.java:524)
	at java.lang.Thread.run(Unknown Source)
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: default client crash by cupboard

Post by loftar »

iamahh wrote:gfx/invobjs/gems/coral/tiny-rough(v1)
Ohhh, right, corals use special resources that also needed to be recompiled. Should be fixed now!
"Object-oriented design is the roman numerals of computing." -- Rob Pike

Return to “Bugs”