[fixed] default client crash by cupboard

The worst monsters in the Hearthlands warp the fabric of space and time...

[fixed] default client crash by cupboard

Postby iamahh » Mon Oct 12, 2020 11:38 pm

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.
iamahh
 
Posts: 1810
Joined: Sat Dec 12, 2015 8:23 pm

Re: default client crash by cupboard

Postby loftar » Mon Oct 12, 2020 11:43 pm

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: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: default client crash by cupboard

Postby loftar » Tue Oct 13, 2020 5:58 pm

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
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: default client crash by cupboard

Postby iamahh » Tue Oct 13, 2020 8:38 pm

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)
iamahh
 
Posts: 1810
Joined: Sat Dec 12, 2015 8:23 pm

Re: default client crash by cupboard

Postby loftar » Wed Oct 14, 2020 1:15 am

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
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 5 guests