Skip to content

Possible infinite loop on mods.eln.misc.Utils.traceRay #344

Description

@Polyana-Fontes

My server was running fine when suddenly it stopped and all players connection were lost, than the server just stopped there for minutes.

After I restarted, it stopped right after the startup process, I left it running for few minutes but nothing changed, so probably an infinite loop were happening on the server thread.

Then I sent a QUIT signal to the java process (kill -3 PID) to display a thread dump and this is what was hanging the Server thread:

"Server thread" #20 prio=5 os_prio=0 tid=0x00007f8298ec3000 nid=0x29b7 runnable [0x00007f827ca49000]
   java.lang.Thread.State: RUNNABLE
        at mods.eln.misc.Utils.traceRay(Utils.java:922)
        at mods.eln.sixnode.electricalentitysensor.ElectricalEntitySensorSlowProcess.process(ElectricalEntitySensorSlowProcess.java:75)
        at mods.eln.sim.Simulator.tick(Simulator.java:427)
        at cpw.mods.fml.common.eventhandler.ASMEventHandler_17_Simulator_tick_ServerTickEvent.invoke(.dynamic)
        at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
        at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
        at cpw.mods.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:264)
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:786)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658)
        at java.lang.Thread.run(Thread.java:745)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions