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

Divide by zero exception #146

Closed
ghost opened this issue Dec 26, 2013 · 2 comments
Closed

Divide by zero exception #146

ghost opened this issue Dec 26, 2013 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 26, 2013

Caused when I right click on a crate:

2013-12-26 14:08:42 [INFO] [STDOUT] Time: 12/26/13 2:08 PM
2013-12-26 14:08:42 [INFO] [STDOUT] Description: Ticking memory connection
2013-12-26 14:08:42 [INFO] [STDOUT]
2013-12-26 14:08:42 [INFO] [STDOUT] java.lang.ArithmeticException: / by zero
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.container.ContainerCrate.<init>(ContainerCrate.java:31)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.block.crate.TileEntityCrate.createContainer(TileEntityCrate.java:201)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.block.crate.TileEntityCrate.openGui(TileEntityCrate.java:195)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.block.crate.BlockCrate.func_71903_a(BlockCrate.java:72)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.item.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:421)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.func_72472_a(NetServerHandler.java:556)
2013-12-26 14:08:42 [INFO] [STDOUT] at com.sijobe.spc.overwrite.ONetServerHandler.func_72472_a(ONetServerHandler.java:175)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.packet.Packet15Place.func_73279_a(SourceFile:58)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.MemoryConnection.func_74428_b(MemoryConnection.java:89)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:141)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServerListenThread.func_71747_b(IntegratedServerListenThread.java:109)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:691)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:129)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2013-12-26 14:08:42 [INFO] [STDOUT]
2013-12-26 14:08:42 [INFO] [STDOUT]
2013-12-26 14:08:42 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-12-26 14:08:42 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2013-12-26 14:08:42 [INFO] [STDOUT]
2013-12-26 14:08:42 [INFO] [STDOUT] -- Head --
2013-12-26 14:08:42 [INFO] [STDOUT] Stacktrace:
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.container.ContainerCrate.<init>(ContainerCrate.java:31)
2013-12-26 14:08:42 [INFO] [Minecraft-Server] <PROFILE NAME> left the game
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.block.crate.TileEntityCrate.createContainer(TileEntityCrate.java:201)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.block.crate.TileEntityCrate.openGui(TileEntityCrate.java:195)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.mcft.copy.betterstorage.block.crate.BlockCrate.func_71903_a(BlockCrate.java:72)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.item.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:421)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.func_72472_a(NetServerHandler.java:556)
2013-12-26 14:08:42 [INFO] [STDOUT] at com.sijobe.spc.overwrite.ONetServerHandler.func_72472_a(ONetServerHandler.java:175)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.packet.Packet15Place.func_73279_a(SourceFile:58)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.MemoryConnection.func_74428_b(MemoryConnection.java:89)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:141)
2013-12-26 14:08:42 [INFO] [STDOUT]
2013-12-26 14:08:42 [INFO] [STDOUT] -- Ticking connection --
2013-12-26 14:08:42 [INFO] [STDOUT] Details:
2013-12-26 14:08:42 [INFO] [STDOUT] Connection: com.sijobe.spc.overwrite.ONetServerHandler@12ce11e8
2013-12-26 14:08:42 [INFO] [STDOUT] Stacktrace:
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServerListenThread.func_71747_b(IntegratedServerListenThread.java:109)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:691)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:129)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2013-12-26 14:08:42 [INFO] [STDOUT] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2013-12-26 14:08:42 [INFO] [STDOUT]
@copygirl
Copy link
Owner

That's an error which has been bugging me for a long time. I will try my best to find what's causing it.
So far I think it will only happen to newly placed crates, so that's good. Any help would be greatly appreciated.

Here's something Thag said on the forum thread:

Some additional info I can provide:
When this happens, no crates will connect to the errant collection of crates, and since the only way to fix them is to destroy them, the contents of the structure are lost. It's happened a couple of times now for me, without them unloading, they just seem fine one moment and bad the next, I'm weary about using them heavily yet though, so I can't say for sure when they break.
[EDIT] Also, the world hangs on shutting down internal server, I suspect this is related

So far I'm guessing it's something to do with the crates not being saved properly, or not marked to be saved. I may have found and fixed the issue already, but I can't say for sure as I never got the error or could reproduce it.
If anyone's got a world where this is happening, mind zipping it up and sending it over to me, along with configs?

@ghost
Copy link
Author

ghost commented Dec 27, 2013

My world caused this error, crashed and when I restarted, everything worked fine. So it's not reproducible.

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

1 participant