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

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

Closed
joserobjr opened this issue Dec 24, 2015 · 3 comments
Closed

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

joserobjr opened this issue Dec 24, 2015 · 3 comments

Comments

@joserobjr
Copy link
Contributor

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)
@joserobjr
Copy link
Contributor Author

@Dolu1990
Copy link
Member

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

Dolu1990 added a commit that referenced this issue Dec 24, 2015
Fixes #344 Infinite loop when ray trace hits an unloaded block
@Safranil
Copy link

Hello,
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants