Open douira opened 1 month ago
Oh that's really weird. We've been trying to figure out what's holding up load performance with very large save files? (#23) But we find it very very difficult to profile as we're less experienced there. If this is a memory issue on load causing a crash we might be able to solve two problems with one. I'll see if i can get this map data to load and cause the same issue.
Could you identify the hottest parts of the load process? your screenshot has expired for some reason.
I'm just going to provide a sidenote here - surveyor still loads map data by loading the entirety of the current world's map data from the disk, it doesn't have an implementation like TACS for streaming terrain regions in/out. There is an upper limit for how much map data can be loaded at once somewhere that we can only solve with a streaming solution eventually, we just don't have the skills for it at the moment.
This is a very mysterious issue I've experienced with surveyor. If using ZGC or Shen GC it hangs when joining a server, at "joining server" which then ends with a crash or an error message. Updating to 0.6.24 did not fix this. I suspect the same issue happens with G1GC but it's somehow able to handle it without timing out.
However, I removed (but not deleted) my local map cache and then it worked. Prior to moving the map cache away, it writes hundreds of megabytes of "remapping" log messages. Before updating to latest 1.20.1 AA this logging didn't happen but it might still be remapping stuff which might have been the cause of not being able to join servers.
I've trimmed this log file because it was 200MB https://mclo.gs/FywGkgX
I also have a JFR profile available if you need it.
Map data: -2880368472433132268 old.zip
Screenshot of the profile:
Stack of the leftmost leaf in this flamegraph: