Page 1 of 1

Client crash on Escape.

PostPosted: Mon Jun 08, 2015 7:37 pm
by soos
After I press Escape client crashes with error:

Code: Select all
haven.UI$UIException: Wdgmsg sender (haven.LocalMiniMap) is not in rwidgets
   at haven.UI.wdgmsg(UI.java:197)
   at haven.Widget.wdgmsg(Widget.java:480)
   at haven.Widget.wdgmsg(Widget.java:482)
   at haven.GameUI.wdgmsg(GameUI.java:641)
   at haven.Widget.wdgmsg(Widget.java:482)
   at haven.Window.wdgmsg(Window.java:219)
   at haven.Widget.wdgmsg(Widget.java:475)
   at haven.Window.type(Window.java:227)
   at haven.Widget.type(Widget.java:596)
   at haven.ConsoleHost.type(ConsoleHost.java:120)
   at haven.Widget.type(Widget.java:596)
   at haven.ConsoleHost.type(ConsoleHost.java:120)
   at haven.UI.type(UI.java:227)
   at haven.HavenPanel.dispatch(HavenPanel.java:401)
   at haven.HavenPanel.run(HavenPanel.java:438)
   at java.lang.Thread.run(Thread.java:745)

Re: Client crash on Escape.

PostPosted: Mon Jun 08, 2015 8:39 pm
by EnderWiggin
Is this default client or one of the custom ones?

Re: Client crash on Escape.

PostPosted: Tue Jun 09, 2015 6:32 pm
by soos
EnderWiggin wrote:Is this default client or one of the custom ones?


Client: Default
OS: Linux x64
Java: jre7-openjdk 7.u79_2.5.5-1

Re: Client crash on Escape.

PostPosted: Wed Jun 10, 2015 8:56 pm
by EnderWiggin
It looks like John Carver should stop modding loftar's client and leave it to professionals ¦]. John, since minimap is purely client-side, it has no server-side id, so client crashes when this window tries to close normally. You need to catch esc symbol in type (or globtype, can't remember) and just call ui.destroy(this);

Re: Client crash on Escape.

PostPosted: Wed Jun 10, 2015 9:49 pm
by LOMS
EnderWiggin wrote:It looks like John Carver should stop modding loftar's client and leave it to professionals ¦]. John, since minimap is purely client-side, it has no server-side id, so client crashes when this window tries to close normally. You need to catch esc symbol in type (or globtype, can't remember) and just call ui.destroy(this);

I assume this will close minimap without a possibility to open it again ¦]

Re: Client crash on Escape.

PostPosted: Thu Jun 11, 2015 11:12 am
by EnderWiggin
LOMS wrote:I assume this will close minimap without a possibility to open it again ¦]
But there won't be any crashes!

Re: Client crash on Escape.

PostPosted: Mon Jun 15, 2015 11:32 am
by soos
EnderWiggin wrote:It looks like John Carver should stop modding loftar's client and leave it to professionals ¦]. John, since minimap is purely client-side, it has no server-side id, so client crashes when this window tries to close normally. You need to catch esc symbol in type (or globtype, can't remember) and just call ui.destroy(this);

Pull requests is the right way.