←  Bugs

ComputerCraft | Programmable Computers for Minecraft

»

[1.31][SMP]This happens when reload server

Locked

Averus's Photo Averus 19 Mar 2012

*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)
Quote

Cloudy's Photo Cloudy 19 Mar 2012

Reload server in what way? As in, close it down, then start it up?
Quote

Averus's Photo Averus 20 Mar 2012

we play all good, when reload server and this error, server cant boot till remove 100-200 last computers from world folder
Quote

Casper7526's Photo Casper7526 21 Mar 2012

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.
Quote

Averus's Photo Averus 21 Mar 2012

4892 comps
Server CPU load 42% RAM 60%
Quote

Liraal's Photo Liraal 21 Mar 2012

wow. 4892*3 means... a lot? Seriously, what do you need such a number for?
Quote

Averus's Photo Averus 22 Mar 2012

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)
Quote

Averus's Photo Averus 22 Mar 2012

-
Quote

Averus's Photo Averus 22 Mar 2012

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(
Quote

Averus's Photo Averus 22 Mar 2012

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
Quote

Averus's Photo Averus 22 Mar 2012

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)
Quote

Espen's Photo Espen 22 Mar 2012

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.
Quote

Averus's Photo Averus 22 Mar 2012

 Espen, on 22 March 2012 - 03:59 PM, said:

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!
Quote

Cloudy's Photo Cloudy 22 Mar 2012

Are all the computers still in the world? If so, then there's your problem.
Quote

Averus's Photo Averus 22 Mar 2012

 Cloudy, on 22 March 2012 - 09:19 PM, said:

Are all the computers still in the world? If so, then there's your problem.
hm.... problem is bug in first post
Quote

Casper7526's Photo Casper7526 23 Mar 2012

Still got 4000 computers?
Quote

Averus's Photo Averus 23 Mar 2012

 Casper7526, on 23 March 2012 - 06:37 AM, said:

Still got 4000 computers?
yes, but can you see #1 post? its a bug, easy to reproduce or you cant reproduce it ?
Quote

bbqroast's Photo bbqroast 23 Mar 2012

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?
Quote

RuAnShi's Photo RuAnShi 23 Mar 2012

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.
Quote

Averus's Photo Averus 24 Mar 2012

 bbqroast, on 23 March 2012 - 08:32 PM, said:

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
Quote
Locked