Lemur resize crash


Hi just tested a bit around with lemur, and noticed that it tends to crash, if the window is resized.
Is a resizing window out of the scope of Lemur or is this a bug?

00:02 ERROR: Uncought renderer exception
at com.jme3.math.Ray.setDirection(Ray.java:479)
at com.jme3.math.Ray.(Ray.java:84)
at com.simsilica.lemur.event.PickEventSession.getPickRay(PickEventSession.java:370)
at com.simsilica.lemur.event.PickEventSession.cursorMoved(PickEventSession.java:457)
at com.simsilica.lemur.event.MouseAppState.dispatchMotion(MouseAppState.java:93)
at com.simsilica.lemur.event.BasePickState.update(BasePickState.java:169)
at com.jme3.app.state.AppStateManager.update(AppStateManager.java:287)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:236)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:197)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

It’s a bug. JME provides no easy way to detect a resize so a lot of my code is “waiting for a solution” in this case.

Sorry for the trouble. I could probably try to fix it.

hm in the jfx bridge was just a if (! oldsize in update :slight_smile:
Surely not ideal, but if its stupid but works it’s not that stupid :slight_smile:
anyway the reshape method might be another working way to get this.

reshape() is on Application. I could register a dummy scene processor but really there should be something better.