RecurrentComplex icon indicating copy to clipboard operation
RecurrentComplex copied to clipboard

Recurrent Complex seemingly causing memory leaks, which causes crashes and chunk corruption

Open Dimentive opened this issue 5 years ago • 11 comments

Crash report: https://pastebin.com/raw/HW40jng3

(Also happened a few days ago: https://pastebin.com/raw/t3EyndV3)

The first time this happened, I was pregenerating chunks with Chunk-Pregenerator, and this crash did not cause world corruption, but when the crash happened today, it caused world corruption.

Every time my friend loads a certain chunk, it causes world corruption again. Looks like a corrupted chunk.

Alongside Recurrent Complex, the crash report also tells me that Biomes o’ Plenty is one of the suspected mods.

Minecraft version: 1.12.2 Forge version: 14.23.5.2781 Modpack: Enigmatica 2 (version 1.62, latest) Recurrent Complex version: 1.4.7 Biomes o’ Plenty version: 7.0.1 (latest)

Dimentive avatar Mar 21 '19 19:03 Dimentive

This is probably mostly ReC's fault. It means that java doesn't have enough space, but ReC has a tendency to load too many structures if the world is old. See #353 .

Ivorforce avatar Mar 21 '19 21:03 Ivorforce

It’s not an old world, and my world’s reccomplex-structuredata.dat file for the overworld dimension is 31.1 MB.

Also, my friend can join the game just fine after we restored to a backup, but when he goes back to the chunk he was in, he is timed out again, and the server freezes.

It looks like one or more chunks are corrupted, and I’m trying to delete them with Chunk-Pregenerator.

Dimentive avatar Mar 21 '19 21:03 Dimentive

... huh? Can you send me the corresponding file?

Ivorforce avatar Mar 21 '19 21:03 Ivorforce

reccomplex-structuredata.dat

(GitHub doesn’t support data files, so I uploaded it to MEGA.)

Dimentive avatar Mar 21 '19 22:03 Dimentive

Cool, thanks, I'll check it out. Can you tell me the chunk / coordinates that would be affected?

Ivorforce avatar Mar 21 '19 22:03 Ivorforce

I don’t know the exact coordinates of the corrupted chunks; however, they are close to these block coordinates: X: 431 Y: 63 Z: 1102

Dimentive avatar Mar 21 '19 22:03 Dimentive

I tried to delete the corrupted chunk or chunks using the Chunk-Pregenerator mod. I used this command: /pregen delete deleteRadius square b431 b1102 15 0, which deleted 900 chunks around the specified block coordinates (X: 431, Z: 1102). However, when I went to the waypoint, I got timed out as before, and my server got a similar crash again (crash report).

Looks like my world is just completely broken. 😕

Dimentive avatar Mar 22 '19 01:03 Dimentive

Try deleting the structureGenerationData file, like mentioned before.

Ivorforce avatar Mar 22 '19 09:03 Ivorforce

I can’t find a file of that name. Do you mean reccomplex-structuredata.dat, like you mentioned in #353?

I will try that and see if it works.

Dimentive avatar Mar 22 '19 09:03 Dimentive

I deleted reccomplex-structuredata.dat, and it actually worked. The chunks weren’t corrupted. Everything works fine now. Thank goodness! I should’ve just tried that from the beginning. [cue self-facepalm 🤦‍♂️] Thank you so much for letting me know about this workaround!

Anyway, while heading to the chunk that was previously broken due to the structure data file while simultaneously generating new chunks around it. I got a bunch of “Error trying to emulate vanilla decoration” errors in the console: https://pastebin.com/raw/jsFEp3Nb It’s the same error as I reported in #374, although they are still appearing with a brand new structure data file. Also, that time, I didn’t give you the full error which I got in addition to the two-line errors, as I either missed it or didn’t get it last time.

I’m very glad I solved my problem, though, after hours of fiddling with Chunk-Pregenerator and MCedit. I feel pretty stupid for not trying this simple thing first.

Anyway, this will probably happen again at some point in the future, so I wish you the best of luck in fixing this bug. Also, do you know what the “Error trying to emulate vanilla decoration” erorrs are all about? I see them relatively frequently when generating new chunks.

Dimentive avatar Mar 22 '19 10:03 Dimentive

@Dimentive the vanilla decoration error looks like this issue https://github.com/Ivorforce/RecurrentComplex/issues/336

CREEATION avatar Mar 22 '19 19:03 CREEATION