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

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

joserobjr opened this Issue Dec 24, 2015 · 3 comments


None yet
3 participants

joserobjr commented Dec 24, 2015

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(
        at mods.eln.sixnode.electricalentitysensor.ElectricalEntitySensorSlowProcess.process(
        at mods.eln.sim.Simulator.tick(
        at cpw.mods.fml.common.eventhandler.ASMEventHandler_17_Simulator_tick_ServerTickEvent.invoke(.dynamic)
        at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(
        at cpw.mods.fml.common.FMLCommonHandler.onPreServerTick(
        at net.minecraft.server.MinecraftServer.func_71217_p(

This comment has been minimized.


joserobjr commented Dec 24, 2015


This comment has been minimized.


Dolu1990 commented Dec 24, 2015

It's completly true.
Thanks for this spot :)

@Dolu1990 Dolu1990 closed this in 7a775ef Dec 24, 2015

Dolu1990 added a commit that referenced this issue Dec 24, 2015

Merge pull request #345 from joserobjr/loop-fix
Fixes #344 Infinite loop when ray trace hits an unloaded block

This comment has been minimized.

Safranil commented May 17, 2016

I discovered this problem on my server after placing some blocks (daylight sensor, solar panels) and my server is now frozen 😥.

Can you make a release with this correction ?

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