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
Spontaneous shutdown of computers #3225
Comments
i am not sure of your repro
result: what about 1.7.3? is this a regression? |
Files not deleting. To be honest, that's not my link of SaveHandler.scala, it said the guy who fixed it(He did not give details). Computers shut down between 1.7.3 - 1.7.5 versions. Server core/MC version is not affected, it is on all versions. I think, @Fingercomp have ideas about that. |
I cannot hit this multiplayer world |
nope - stood outside the chunk range for 18 minutes, walked in, and immediately the pc script started running again |
#2999 same |
@BrightYC you have the same stack trace in your log? |
AND can you repro this a test world? just make a new world, place a computer and try repro |
Well, the bug is probably in the logic of https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/scala/li/cil/oc/common/SaveHandler.scala#L203 It can be caused in (for example) in this flow:
I had personally fixed it by just removing the |
Also, the reason why you couldn't repro it is that your server never saves the world while running (but some cores like Thermos, Cauldron, etc. can do it from Bukkit plugins for example) |
ah, that is very helpful, thank you @radioegor146 . i appreciate this very much! I'll work to repro this and review your approach. while (!chunkDirs.isEmpty) {
val chunkPath = chunkDirs.poll()
if (chunkPath.exists && chunkPath.isDirectory && chunkPath.list() != null) {
for (file <- chunkPath.listFiles() if System.currentTimeMillis() - file.lastModified() > TimeToHoldOntoOldSaves) file.delete()
}
} |
Yep, exactly. Btw, I even do not know for what reason you should delete the persistence of computers. Sounds like some very strange optimization (?) |
so any updates? because of this bug, we cannot create public programs. I mean programs on public warps. |
I'm having the same issue, except my files aren't being deleted. |
yes, my files aren't being deleted too. I mean that I programs for example shops, casinos, banks and etc are useless because of this bug. |
I have exactly the same problem as this My computers shut down by themselves when I close my game or move away from the computer chunks for an extended period. I would leave them running, and when I come back to them, they are ALL turned off and sometimes they erase the hard disks. I have seen various reports of this issue but it seems that no one has been able to figure out why this is happening. I should mention that the analyzer and logs yield no errors as to why the computers have turned off. |
[08:13:38] [Server thread/ERROR]: Unexpected error loading a state of computer at (-536.5, 80.5, -353.5). State: Paused. Unless you're upgrading/downgrading across a major version, please report this! Thank you. |
Computers(Drones, microcontrollers, robots) shutdown when player don't load chunk(with computers) more than ~15 minutes or server restart/enter to the world.
Supposedly, problem has here https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/scala/li/cil/oc/common/SaveHandler.scala#L211, when it save the world, it deletes all files. Computers shut down from version 1.7.3. Architecture is not LuaJ, it is important!
The text was updated successfully, but these errors were encountered: