Closed luochen1990 closed 4 years ago
Hrmr, this is very odd - I've double checked the jar, and all the files it thinls aren't there most definitely are.
latest.log
and debug.log
, so I can see if there's anything else going on before the crash.@SquidDev I downloaded a new jar, and compared the HASH to my current using, and they have the same hash (SHA1: 99FC8F3D41C842053560D912A327CC68D62B2365).
latest.log: https://pastebin.com/JxTMYJuh debug.log: https://pastebin.com/rw29Usi3
Thanks you very much for the logs! Yep, that's definitely the correct jar file too.
I recreated your mod pack, and tried to reproduce, but I'm afraid I've had no such luck. Everything seems to work fine on my end.
It might be worth trying to see if the vanilla launcher works (rather than HMCL), but I'd be very surprised if that was the problem here. Ughr, nothing about this makes sense :).
@SquidDev Thanks for your patience, it is not surprising that you cannot reproduce it at once, I have played this games for several weeks on version 1.14.4 (also with cc-tweaked) and at the latest week I switched to 1.15.2 and this issue only occurs 3 or 4 times. every time it occurs I have to remove cc mod and execute /fml confirm
on console to recover my world. And it seems occurs much more often on create mode (where I debug my turtle code) than survive mode.
I tried a few more times to reproduce this problem, to locate this issue, I use git to track file changes, and find that:
shell.run("gps", "host", -160, 4, 60)
NoClassDefFoundError
error, which is very weird.Now I can reproduce this issue, reproduce steps:
startup.lua
as shell.run("gps", "host", x, y, z)
startup.lua
as shell.run("wget", "run", "http://xxx.com/xxx.lua")
And re-enter the game for a few times to reproduce the issue.
It seems that simultaneously execute shell.run("gps", ...)
and shell.run("wget", ..)
in lua caused this issue, so now my workaround is, add sleep(1)
before the server's (computers which is not gps-station) startup script, and it works well till now.
There's a bit of me which wonders if this is an instance of MinecraftForge/MinecraftForge#6655. There's definitely something odd going on in the class loader.
Now I can reproduce this issue, reproduce steps:
1. create an empty world in creative mode. 2. use 4 computer to build a gps station, and edit `startup.lua` as `shell.run("gps", "host", x, y, z)` 3. use 1 computer as server to provide some service, and edit `startup.lua` as `shell.run("wget", "run", "http://xxx.com/xxx.lua")`
And re-enter the game for a few times to reproduce the issue.
It seems that simultaneously execute
shell.run("gps", ...)
andshell.run("wget", ..)
in lua caused this issue, so now my workaround is, addsleep(1)
before the server's (computers which is not gps-station) startup script, and it works well till now.
I'm getting the same issue. Server crashes once I join with the following crash report: crash-2020-06-22_09.05.34-server.txt
I had 4 or 5 GPS hosts and a turtle with the following startup:
if fs.exists('tree_farm.lua') then
fs.delete('tree_farm.lua')
end
shell.run('pastebin get LsB7RuPv tree_farm.lua')
shell.run('tree_farm')
I was able to fix the issue by adding a sleep(60) before the if statement. It seems delaying the get request allows for it to go through no issue. I had to first start the server up once with the startup removed/commented. Hope this helps pin it down!
I think this issue should be reopened and remove the can not reproduce
tag. @SquidDev
This is a Forge bug - from what I can tell it's a race condition in class loading. It's been reported on their repo, but there's sadly little I can do on my end.
For reference, https://github.com/MinecraftForge/MinecraftForge/issues/6719 is a more up-to-date version of the issue I linked above.
this issue helped me, i have 1 turtle with the following startup file:
shell.run("rom/programs/delete.lua","gitPull.lua")
shell.run("rom/programs/http/wget.lua","https://raw.githubusercontent.com/joshinils/turtleCode/master/gitPull.lua")
shell.run("gitPull.lua")
print("attempting to call startupCustom.lua")
shell.run("startupCustom.lua")
renaming the startup.lua
to .startup.lua
let me join my server.
loading the same world in singleplayer worked without any problem, saving and replacing the version on the server with it made no difference, only renaming the startup file
Useful information to include:
1.15.2 with forge-31.1.1
cc-tweaked-1.15.2-1.86.2
bios.lua
.The first crash report (only some abstruct here, if you need the full one please tell me).
After it crashs the first time, I also tried to retry a second time, and this time the error report is somehow different:
And the third time, I tried to load my previously saved world, but still reporting the same error as the second time.