Skip to content
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

NPE on saving out the world on shutdown of server. #132

Closed
ProsperCraft opened this issue Jan 20, 2018 · 4 comments
Closed

NPE on saving out the world on shutdown of server. #132

ProsperCraft opened this issue Jan 20, 2018 · 4 comments
Labels

Comments

@ProsperCraft
Copy link

ProsperCraft commented Jan 20, 2018

https://gist.github.com/ProsperCraft/0caf60266456f2652b7a7a9ef5000cf1

forge-1.12.2-14.23.1.2598-universal.jar
ElecCore-1.12.2-1.8.434.jar

@Elec332
Copy link
Member

Elec332 commented Jan 20, 2018

Do you have the entire server log?

@Elec332 Elec332 added the bug label Jan 20, 2018
@ProsperCraft
Copy link
Author

ProsperServerLogs.zip

@ProsperCraft
Copy link
Author

@ayan4m1
Copy link

ayan4m1 commented Aug 23, 2018

My environment:

CentOS 7 x64
Oracle JDK x64 1.8.0_181
Minecraft 1.12.2
FTB Revelation 2.3.0

The Revelation modpack is using ElecCore-1.12.2-1.8.434.jar

I have had the same problem. It is intermittent. When a player disconnects from a dedicated server instance, the server crashes with:

[02:00:01] [Server Shutdown Thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.fml.common.gameevent.PlayerEvent$PlayerLoggedOutEvent@2586c5ba:
java.lang.NullPointerException: null
        at elec332.core.server.ServerHelper$EventHandler.onPlayerDisconnected(ServerHelper.java:420) ~[ServerHelper$EventHandler.class:?]
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_992_EventHandler_onPlayerDisconnected_PlayerLoggedOutEvent.invoke(.dynamic) ~[?:?]
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
        at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
        at net.minecraftforge.fml.common.FMLCommonHandler.firePlayerLoggedOut(FMLCommonHandler.java:579) [FMLCommonHandler.class:?]
        at net.minecraft.server.management.PlayerList.func_72367_e(PlayerList.java:387) [pl.class:?]
        at net.minecraft.network.NetHandlerPlayServer.func_147231_a(NetHandlerPlayServer.java:849) [pa.class:?]
        at net.minecraft.network.NetworkManager.func_179293_l(NetworkManager.java:453) [gw.class:?]
        at net.minecraft.network.NetHandlerPlayServer$2.run(NetHandlerPlayServer.java:291) [pa$2.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_181]
        at net.minecraft.server.MinecraftServer.func_175586_a(MinecraftServer.java:1383) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.func_152344_a(MinecraftServer.java:1395) [MinecraftServer.class:?]
        at net.minecraft.network.NetHandlerPlayServer.func_194028_b(NetHandlerPlayServer.java:287) [pa.class:?]
        at net.minecraft.server.management.PlayerList.func_72392_r(PlayerList.java:1083) [pl.class:?]
        at net.minecraft.server.MinecraftServer.func_71260_j(MinecraftServer.java:431) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer$4.run(MinecraftServer.java:1579) [MinecraftServer$4.class:?]

EDIT: In my case, this was a side-effect from auto-restarting the server.

Here is the full debug.log for you - debug-1.log

Elec332 added a commit that referenced this issue Sep 20, 2018
…132

I apologize that it took so long to fix these small issues
@Elec332 Elec332 closed this as completed Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants