Multiple dropDown controls crash

Hi there! :slight_smile:

Im currently working on a multiplayer game. I wanted to use several (6, to be precise) dropDown controls to manage the clients

in my “lobby”-Screen. Everything works perfectly until i use more than 2 or 3 dropDowns (the exact number seems not to influence the crash).

I tried both xml and Java Builder to create the screen / dropDowns, in both ways the Logger output is the same.

I now tried the same with listBox. Same issue. It seems that nifty got problems creating this amount of controls at (nearly) the same time.

Even though the GUI crashes, the program itself seems to keep running.

My xml definition of “lobby”:


<screen id=“lobby” controller=“client.GameClient”>

<layer id=“layer” childLayout=“center”>

<panel id=“panel” height=“400px” width=“350px” align=“center” valign=“center” style=“nifty-panel” childLayout=“vertical”>

<control name=“dropDown” id=“drop1” />

<control name=“dropDown” id=“drop2” />

<control name=“dropDown” id=“drop3” />

<control name=“dropDown” id=“drop4” />

<control name=“dropDown” id=“drop5” />

<control name=“dropDown” id=“drop6” />





As soon as nifty.gotoScreen(“lobby”); is called, the GUI crashes with following output:


Aug 22, 2011 7:15:58 PM handleError

Schwerwiegend: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]


at de.lessvoid.nifty.elements.Element.canHandleInteraction(

at de.lessvoid.nifty.elements.Element.mouseEvent(

at de.lessvoid.nifty.screen.MouseOverHandler.processMouseEvent(

at de.lessvoid.nifty.screen.Screen.forwardMouseEventToLayers(

at de.lessvoid.nifty.screen.Screen.mouseEvent(

at de.lessvoid.nifty.Nifty.forwardMouseEventToScreen(

at de.lessvoid.nifty.Nifty.access$1300(

at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processEvent(

at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processMouseEvent(

at com.jme3.niftygui.InputSystemJme.onMouseMotionEventQueued(

at com.jme3.niftygui.InputSystemJme.forwardEvents(

at de.lessvoid.nifty.Nifty.update(

at com.jme3.niftygui.InputSystemJme.endInput(

at com.jme3.input.InputManager.processQueue(

at com.jme3.input.InputManager.update(



at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(




Im sorry if i messed up anything posting the code or such. Im totally new here :slight_smile:

Thank you in advance,


As soon as nifty.gotoScreen(“lobby”); is called, the GUI crashes with following output:

Is it possible that you call that from another Thread or something? Where do you call it?

I've tried to reproduce this with 8 DropDown and it worked. Looking at the Stacktrace it seems like a Nifty element is called that is not initialized yet o_O Maybe you send the complete example that reproduces this?