Server crash when bridge activated with redstone
LadyCailinBot opened this issue ยท 28 comments
CRAFTBOOK-2478 - Reported by R.Alex
Hello,
first of all, sorry if I make english mistake, but this is not my native language.
I have a problem with craftbook. I try to build a bridge that is 30 stone brick length and 5 width. So I use two sign on each side of the bridge.
When i try to activate the bridge, with a lever linked with redstone to signs, the server start to freeze and then crash. In log file, i found this message (written several times).
Can you help me ? If you need more information, I can paste the entire logfile.
2013-03-28 15:21:04 [SEVERE] Could not pass event BlockRedstoneEvent to CraftBook v1873-bfe3918
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:114)
at net.minecraft.server.v1_4_R1.BlockRedstoneWire.l(BlockRedstoneWire.java:45)
at net.minecraft.server.v1_4_R1.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:291)
at net.minecraft.server.v1_4_R1.World.m(World.java:483)
at net.minecraft.server.v1_4_R1.World.applyPhysics(World.java:458)
at net.minecraft.server.v1_4_R1.World.update(World.java:422)
at net.minecraft.server.v1_4_R1.World.setTypeId(World.java:399)
at org.bukkit.craftbukkit.v1_4_R1.block.CraftBlock.setTypeId(CraftBlock.java:107)
at com.sk89q.craftbook.mech.Bridge.closeBridge(Bridge.java:362)
at com.sk89q.craftbook.mech.Bridge.flipState(Bridge.java:329)
at com.sk89q.craftbook.mech.Bridge.onBlockRedstoneChange(Bridge.java:314)
at com.sk89q.craftbook.MechanicManager.dispatchBlockRedstoneChange(MechanicManager.java:328)
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter$MechanicBlockListener.handleDirectWireInput(MechanicListenerAdapter.java:355)
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter$MechanicBlockListener.onBlockRedstoneChange(MechanicListenerAdapter.java:299)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Comment by me4502
Also, before you post the entire error, can you update to the latest version to check if it still occurs?
And bridges can be any width depending on what's written on the sign.
Comment by R.Alex
Hello.
Sorry, I was too busy yesterday to even think about MC. Here is the link to the complete exception : http://pastebin.com/Fu9K8044
And I just insstalled craftbukkit and craftbook a few days before the crash, so I've got the last ones.
Thank you for your help.
Comment by me4502
That's quite an old version of craftbook, can you update first?
Comment by R.Alex
Ok I just checked and I use 3.6 beta 2 version. When I go on bukkit dev, I see the last one is 3.5.7. So it seems I am up to date, no ?
Comment by R.Alex
I changed the version to the last stable one (which is from april the 3rd). The log can be found here : http://pastebin.com/HTmd6Pa8
Thank you again.
Comment by me4502
That is most likely a bug in minecraft or another plugin. Can you supply a few images of the bridge setup, both opened and closed. (You can break the blocks it would break to get the open image). Can you also supply a list of plugins you use?
Comment by R.Alex
Here is the list of plugin :
-PermissionsBukkit
-MoreExp
-DisableExperienceLoss
and of course worldedit as it is required for craftbook.
For the images, I can't do it now, but the visual result is that some of the brick disappear, but not all the bricks that should. And when i switch the bridge back on, they don't reappear.
Comment by me4502
Is the server that this happens on available for me to join and see? So I can look at the setup of this bridge? Also, if it is possible, can you please mark the block that it gets up to when removing, basically the block that it fails on?
Comment by R.Alex
I'm sorry but this server is behind a proxy (in my office) which does not allow it to connect to the internet.
Comment by me4502
Ah, I see... can you just provide images then when you are able to?
Comment by R.Alex
I just added 6 screenshot of the bridge. I forgot to take one before opening the bridge first, so some blocks are missing.
Comment by me4502
I think it may be the repeater. Does this error still occur without the repeater?
Comment by R.Alex
Not exactly, but replacing the repeater by a redstone torch, does not activate or deactivate the bridge.
Comment by pmpmpm
Err, isn't a bridge only 3 blocks width when using this system?
Comment by me4502
Can you please use pastebin.com to paste the entire error with all the repeated parts?
Comment by R.Alex
I use two signs, so the maximal width will be 6, no ?
I can paste the entire exception, but not before tuesday, cause I am away from my computer until then. I keep you posted as soon as possible.
Thank you for your quik answers.
Comment by me4502
What do you mean? I believe this error is caused by an update bug with repeaters.
Comment by me4502
Basically, this error means that when the bridge is toggled, a redstone update occurs toggling the bridge. So you must have a circuit that is broken by the bridge or something, or maybe a repeater powering a block powering another, causing a loop.
Comment by R.Alex
OK i get it !
Based on what you say, i have a repeater which is right under one of the block of the bridge.
So maybe this one causes problem ? I'll try to move it and i keep you posted.
Comment by me4502
Yeah, that's the one I was referring to. I just changed how bridges/doors handle redstone, so that may also fix it.
Comment by me4502
I am 99% sure the latest build should make this error impossible.
Comment by R.Alex
I just tried to move down the repeater and the problem disappeared. Do you want me to try te move it up again to test if you modification works ?