This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Averus's profile picture

[1.31][SMP]This happens when reload server

Started by Averus, 19 March 2012 - 03:01 PM
Averus #1
Posted 19 March 2012 - 04:01 PM
*edited

yes! i can reproduse bug!

blocks like this http://minus.com/mJCaIewl0

file startup
———————-
while true do
rs.setOutput("left",true)
rs.setOutput("left",false)
end
—————————
reboot comp

and server DOWN

http://minus.com/mykQCmxSF

same error when reload server, only del startup code in world folder




bug works not only with redstone


3-22 17:59:41 [SEVERE] Unexpected exception
java.lang.StackOverflowError
at net.minecraft.server.World.getTileEntity(World.java:1608)
at net.minecraft.server.WorldServer.getTileEntity(WorldServer.java:44)
at eloraam.core.CoreLib.getTileEntity(CoreLib.java:67)
at eloraam.core.BlockExtended.d(BlockExtended.java:84)
at eloraam.core.RedPowerLib.isStrongPoweringTo(RedPowerLib.java:213)
at eloraam.core.RedPowerLib.isStrongPowered(RedPowerLib.java:223)
at eloraam.core.RedPowerLib.isPoweringTo(RedPowerLib.java:271)
at eloraam.core.RedPowerLib.isPowered(RedPowerLib.java:331)
at eloraam.lighting.BlockLamp.checkPowerState(BlockLamp.java:71)
at eloraam.lighting.BlockLamp.onPlace(BlockLamp.java:86)
at net.minecraft.server.Chunk.a(Chunk.java:341)
at net.minecraft.server.World.setRawTypeIdAndData(World.java:362)
at net.minecraft.server.World.setTypeIdAndData(World.java:459)
at eloraam.lighting.BlockLamp.checkPowerState(BlockLamp.java:68)
at eloraam.lighting.BlockLamp.doPhysics(BlockLamp.java:81)
at net.minecraft.server.World.k(World.java:535)
at net.minecraft.server.World.applyPhysics(World.java:511)
at net.minecraft.server.World.update(World.java:476)
at net.minecraft.server.World.setTypeIdAndData(World.java:460)
at eloraam.lighting.BlockLamp.checkPowerState(BlockLamp.java:68)
Cloudy #2
Posted 19 March 2012 - 05:13 PM
Reload server in what way? As in, close it down, then start it up?
Averus #3
Posted 20 March 2012 - 09:59 PM
we play all good, when reload server and this error, server cant boot till remove 100-200 last computers from world folder
Casper7526 #4
Posted 21 March 2012 - 02:48 AM
Prolly an issue with threads…. how many computers do you have LOL

Each computer generates 3 threads when started currently, so you very well maybe have hundreds of computers which will generate 1000's of threads.
Averus #5
Posted 21 March 2012 - 07:42 PM
4892 comps
Server CPU load 42% RAM 60%
Liraal #6
Posted 21 March 2012 - 07:43 PM
wow. 4892*3 means… a lot? Seriously, what do you need such a number for?
Averus #7
Posted 22 March 2012 - 02:52 PM
i dont need it players using it

today i have server down, last in log:

[SEVERE] at net.minecraft.server.World.applyPhysics(World.java:515)
2012-03-19 14:52:57 [SEVERE] at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:54)
2012-03-19 14:52:57 [SEVERE] at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:296)

fix plz

server down if reach 5000 mark
how too clean world from old comps? or from all comps?


2012-03-19 14:52:57 [SEVERE] at net.minecraft.server.World.k(World.java:535)
2012-03-19 14:52:57 [SEVERE] at net.minecraft.server.World.applyPhysics(World.java:514)
Averus #8
Posted 22 March 2012 - 03:17 PM
-
Averus #9
Posted 22 March 2012 - 03:27 PM

7:25:53 [SEVERE] Unexpected exception
java.lang.StackOverflowError
at net.minecraft.server.LongHashMap.g(LongHashMap.java:14)
at net.minecraft.server.LongHashMap.getEntry(LongHashMap.java:31)
at net.minecraft.server.PlayerManager.a(PlayerManager.java:50)
at net.minecraft.server.PlayerManager.flagDirty(PlayerManager.java:63)
at net.minecraft.server.ServerConfigurationManager.flagDirty(ServerConfigurationManager.java:394)
at net.minecraft.server.WorldManager.a(WorldManager.java:28)
at net.minecraft.server.World.notify(World.java:470)
at net.minecraft.server.World.update(World.java:475)
at net.minecraft.server.World.setData(World.java:419)
at net.minecraft.server.BlockRedstoneWire.a(BlockRedstoneWire.java:123)
at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:46)
at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:296)
at net.minecraft.server.World.k(World.java:535)
at net.minecraft.server.World.applyPhysics(World.java:512)
at net.minecraft.server.BlockRedstoneWire.g(
Averus #10
Posted 22 March 2012 - 03:38 PM
we dell copm folder in world folder and have server down with one comp working
bugger uses this

file startup

while true do
rs.setOutput("left",true)
rs.setOutput("left",false)
end


only 1 comp with this code on both server when servers down, we cant find this comp, so its all i know
Averus #11
Posted 22 March 2012 - 03:52 PM
yes! i can reproduse bug!

blocks like this http://minus.com/mJCaIewl0

file startup
———————-
while true do
rs.setOutput("left",true)
rs.setOutput("left",false)
end
—————————
reboot comp

and server DOWN

http://minus.com/mykQCmxSF






bug works not only with redstone


3-22 17:59:41 [SEVERE] Unexpected exception
java.lang.StackOverflowError
at net.minecraft.server.World.getTileEntity(World.java:1608)
at net.minecraft.server.WorldServer.getTileEntity(WorldServer.java:44)
at eloraam.core.CoreLib.getTileEntity(CoreLib.java:67)
at eloraam.core.BlockExtended.d(BlockExtended.java:84)
at eloraam.core.RedPowerLib.isStrongPoweringTo(RedPowerLib.java:213)
at eloraam.core.RedPowerLib.isStrongPowered(RedPowerLib.java:223)
at eloraam.core.RedPowerLib.isPoweringTo(RedPowerLib.java:271)
at eloraam.core.RedPowerLib.isPowered(RedPowerLib.java:331)
at eloraam.lighting.BlockLamp.checkPowerState(BlockLamp.java:71)
at eloraam.lighting.BlockLamp.onPlace(BlockLamp.java:86)
at net.minecraft.server.Chunk.a(Chunk.java:341)
at net.minecraft.server.World.setRawTypeIdAndData(World.java:362)
at net.minecraft.server.World.setTypeIdAndData(World.java:459)
at eloraam.lighting.BlockLamp.checkPowerState(BlockLamp.java:68)
at eloraam.lighting.BlockLamp.doPhysics(BlockLamp.java:81)
at net.minecraft.server.World.k(World.java:535)
at net.minecraft.server.World.applyPhysics(World.java:511)
at net.minecraft.server.World.update(World.java:476)
at net.minecraft.server.World.setTypeIdAndData(World.java:460)
at eloraam.lighting.BlockLamp.checkPowerState(BlockLamp.java:68)
Espen #12
Posted 22 March 2012 - 03:59 PM
Wow, four bumps in a row.
If you didn't yet know, there is an edit button in the lower right corner of your posts, so you can edit them.
If you did know this already, then I can just say that repeatedly poking someone to get his attention will only make him more and more annoyed and less inclined to help you.
Averus #13
Posted 22 March 2012 - 04:15 PM
Wow, four bumps in a row.
If you didn't yet know, there is an edit button in the lower right corner of your posts, so you can edit them.
If you did know this already, then I can just say that repeatedly poking someone to get his attention will only make him more and more annoyed and less inclined to help you.
sorry, but 2 servers down 10 times in hour, i have panic!
Cloudy #14
Posted 22 March 2012 - 09:19 PM
Are all the computers still in the world? If so, then there's your problem.
Averus #15
Posted 22 March 2012 - 11:39 PM
Are all the computers still in the world? If so, then there's your problem.
hm…. problem is bug in first post
Casper7526 #16
Posted 23 March 2012 - 06:37 AM
Still got 4000 computers?
Averus #17
Posted 23 March 2012 - 05:49 PM
Still got 4000 computers?
yes, but can you see #1 post? its a bug, easy to reproduce or you cant reproduce it ?
bbqroast #18
Posted 23 March 2012 - 08:32 PM
Averus, the issue is this:
You have too many computers!
It's like saying that Skyrim is buggy because a Pentium 1 PC doesn't run it on Ultra settings.

How do you mean "reload"?
Are you typing "reload"?
Or closing the server and starting it again?
RuAnShi #19
Posted 23 March 2012 - 10:33 PM
Hi guys!

Just to acomplish all this flame.
I have successfully reptoduced this bug. This bug is not related to 4K computers.
It is simple reproducable in bukkit environment. Just start server with one user and place computer and redstone wire in any side.
Then just write simple aggressive (dumb) lua code
while true do
rs.setOutput("left", true)
rs.setOutput("left", false)
end
The server will crash in 100% cases. The computer bios code newer reach "to long" sinuation.
It always crash in any configuration.

Seems this bug is not related to CC - it more specific to bukkit. But due to aggressive eventing scheme in this sittuation,
it crash bukkit lately. So the proposition is to delay any eventing from computer block to any real world.
Seems this scheme will work until bukkit got handle of it.

In addition, when CC mixrd with redpower, and red stone, it also crashed world in the same manner.
Averus #20
Posted 24 March 2012 - 10:39 PM
Averus, the issue is this:
You have too many computers!
It's like saying that Skyrim is buggy because a Pentium 1 PC doesn't run it on Ultra settings.

How do you mean "reload"?
Are you typing "reload"?
Or closing the server and starting it again?

plz see #19
Averus #21
Posted 24 March 2012 - 10:46 PM
Hi guys!

Just to acomplish all this flame.
I have successfully reptoduced this bug. This bug is not related to 4K computers.
It is simple reproducable in bukkit environment. Just start server with one user and place computer and redstone wire in any side.
Then just write simple aggressive (dumb) lua code
while true do
rs.setOutput("left", true)
rs.setOutput("left", false)
end
The server will crash in 100% cases. The computer bios code newer reach "to long" sinuation.
It always crash in any configuration.

Seems this bug is not related to CC - it more specific to bukkit. But due to aggressive eventing scheme in this sittuation,
it crash bukkit lately. So the proposition is to delay any eventing from computer block to any real world.
Seems this scheme will work until bukkit got handle of it.

In addition, when CC mixrd with redpower, and red stone, it also crashed world in the same manner.
у тебя конечно англ по лучше, они тупят и даже не могут прогу набросать для проверки. Может тебя поймут.
Cloudy #22
Posted 24 March 2012 - 11:16 PM
Averus, the issue is this:
You have too many computers!
It's like saying that Skyrim is buggy because a Pentium 1 PC doesn't run it on Ultra settings.

How do you mean "reload"?
Are you typing "reload"?
Or closing the server and starting it again?

plz see #19

Please see this thread: http://www.computerc...bug-non-bukkit/

This is not a ComputerCraft vanilla bug, as it only affects the bukkit version. Hence no support will be provided here. You would be best going to the thread of the bukkit port on McPortCentral.

у тебя конечно англ по лучше, они тупят и даже не могут прогу набросать для проверки. Может тебя поймут.

1. This forum is English only.

2. What you said is: "Of course you have to better English, they are blunt and can not even sketch a prog to check. Can you understand."

We were waiting to see if you had got rid of the 4k computers - we would then check into the bug further. Having that many computers is just ASKING for trouble.

I have just tested this, and on a vanilla server there are no problems. It doesn't crash. As such, it is a bukkit port bug as it doesn't occur on vanilla, and this thread should be closed.
Casper7526 #23
Posted 25 March 2012 - 12:53 AM
Agreed :(/>/>

Bukkit has to change some stuff and changing stuff doesn't mean everything always works as planned :)/>/>

Thread closed due to "Non-Bukkit" bugs only.