New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hunger/thirst bar NPE after respawning #14

Closed
rzats opened this Issue Jun 18, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@rzats
Member

rzats commented Jun 18, 2016

Respawning after dying with JS active results in a crash to desktop. This can be reliably reproduced.

Error message (full stacktrace @ http://pastebin.com/9TUfsz9x):

01:06:41.856 [main] ERROR o.terasology.engine.TerasologyEngine - Uncaught exception, attempting clean game shutdown
java.lang.NullPointerException: null
    at org.terasology.hunger.ui.HungerAndThirstWindow$1.get(HungerAndThirstWindow.java:41)
    at org.terasology.hunger.ui.HungerAndThirstWindow$1.get(HungerAndThirstWindow.java:36)
    at org.terasology.rendering.nui.widgets.UILoadBar.getValue(UILoadBar.java:102)
    at org.terasology.rendering.nui.widgets.UILoadBar.onDraw(UILoadBar.java:47)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawStyledWidget(CanvasImpl.java:406)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawWidget(CanvasImpl.java:392)
    at org.terasology.rendering.nui.layouts.relative.RelativeLayout.onDraw(RelativeLayout.java:78)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawStyledWidget(CanvasImpl.java:406)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawWidget(CanvasImpl.java:392)
    at org.terasology.rendering.nui.layers.hud.CoreHudWidget.onDraw(CoreHudWidget.java:60)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawStyledWidget(CanvasImpl.java:406)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawWidget(CanvasImpl.java:392)
    at org.terasology.rendering.nui.layers.hud.HUDScreenLayer.onDraw(HUDScreenLayer.java:162)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawStyledWidget(CanvasImpl.java:406)
    at org.terasology.rendering.nui.internal.CanvasImpl.drawWidget(CanvasImpl.java:392)
    at org.terasology.rendering.nui.internal.NUIManagerInternal.render(NUIManagerInternal.java:468)
    at org.terasology.engine.modes.StateIngame.renderUserInterface(StateIngame.java:234)
    at org.terasology.engine.modes.StateIngame.render(StateIngame.java:218)
    at org.terasology.engine.subsystem.lwjgl.LwjglGraphics.postUpdate(LwjglGraphics.java:189)
    at org.terasology.engine.TerasologyEngine.mainLoop(TerasologyEngine.java:423)
    at org.terasology.engine.TerasologyEngine.run(TerasologyEngine.java:369)
    at org.terasology.engine.Terasology.main(Terasology.java:150)
@Cervator

This comment has been minimized.

Show comment
Hide comment
@Cervator

Cervator Sep 10, 2016

Member

Bump - still active. My character got to near starvation having left it on a JS-enabled server overnight. Logged in, finished starving to death after a minute or so, respawned, crash :-)

Member

Cervator commented Sep 10, 2016

Bump - still active. My character got to near starvation having left it on a JS-enabled server overnight. Logged in, finished starving to death after a minute or so, respawned, crash :-)

@Cervator

This comment has been minimized.

Show comment
Hide comment
@Cervator

Cervator Sep 11, 2016

Member

Confirmed fixed! Thanks @rzats :-)

Member

Cervator commented Sep 11, 2016

Confirmed fixed! Thanks @rzats :-)

@Cervator Cervator closed this Sep 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment