Drillgon200 / Hbm-s-Nuclear-Tech-GIT

My fork of the HBM's nuclear tech mod.
47 stars 19 forks source link

Server crashes with an ArrayIndexOutOfBoundsException #202

Open Snowbelldog opened 2 years ago

Snowbelldog commented 2 years ago

According to the crash report it has something to do with hbm and chunks. If I load a backup of the world on it, I have rest for the next 2 hours. Then the server crashes again. crash-2022-03-07_13.01.38-server.txt

It can of course also be due to the 79 other mods. I hope someone can help.

Drillgon200 commented 2 years ago

This is a problem with NTM as far as I can tell, the advanced radiation is screwing up. Do you have any solid blocks of concrete bricks in your world (greater than 16x16x16)?

Snowbelldog commented 2 years ago

Uh yea. My friend built a underground lab with 400x400x60 of concrete bricks. So mutch thanks for you answer.

I have other questions about it. Why have hbm struggle with that and is that only with the concrete brick?

Snowbelldog commented 2 years ago

Incidentally, we also have meny of errors when a player joins the game (~4000 Lines) All the lines have a Exception at com.hbm.main.ModEventHandler.clientJoinServer

Stacktrace: https://pastebin.com/D2pAAcv9

Drillgon200 commented 2 years ago

NTM has a problem with a solid concrete brick area that takes up a 16x16x16 subchunk because I didn't foresee that case when writing the advanced radiation algorithm. It looks for a pocket at a block position, doesn't find one, tries to return the first one instead, but since the whole chunk is full of radiation resistant blocks, there isn't a first one and it crashes with out of bounds. I think trying to go non-null with the pockets was a mistake, so I'll have to rework some of that.

I could have sworn I fixed that error. Maybe that was just an in-dev fix and I never made a build with it in.

Drillgon200 commented 2 years ago

For the brick thing, you can either turn off advanced radiation or remove one or more concrete blocks from each 16x16x16 subchunk. It's not just the concrete, reinforced glass probably causes this issue as well since it's the other radiation resistant block.

Snowbelldog commented 2 years ago

nice, (yesterday) we have replaced the bricks to normal concrete and... taaaam taaaam... 'Let's CRASH' 20 minutes ago.

But anyway, thanks you very very mutch for the help and the explanation.

Drillgon200 commented 2 years ago

If it crashed again, I'll need a new crash report.

Snowbelldog commented 2 years ago

The Minecraft server keeps crashing.

There are no such concrete bricks anymore. I suspect that it must be another mod that not correctly function with hbm. I had no problems with hbm before, with the exception of a lot of spam in the console.

Here the crash-report: crash-2022-03-17_21.10.40-server.txt

Drillgon200 commented 2 years ago

I don't know then. Just turn off advanced radiation at this point in the config.