Applied Energistics 2

Applied Energistics 2

156M Downloads

Game crashing when looking at drives

Opened this issue ยท 9 comments

commented

Sometimes randomly, I'm having an issue where if I look at a drive, my client will crash continually over and over until I go into the world and delete it using MCEdit

Edit: link to crash report: https://pastebin.com/FQXmke4i

Description

I'm playing in the direwolf20 1.12.2 modpack version 1.1.0

  • Minecraft Version: 1.12.2
  • AE2 Version: rv5-stable-2
  • Forge Version: 14.23.0.2531
commented

that's just fair, but can you make a minimal setup with only AE and CCLib or any CC Mods to confirm this is can be reproduced easily? Maybe create a small world with this bug to download for the devs :)

i'll slap an "state waiting" on the topic for slightly more attention

commented

Having a short dive into the code, the only reason i can see that this would happen is when the drive block cannot find it's associated tile entity when creating the extended blockstate. It needs this to render the appropriate drive models.
Hmm .. Can you confirm the BlockPos in the report is the same the drive is at?

commented

MAYBE duplicate #3251

sorry for premature closing :) but it looked almost the same but not exactly

commented

this may be the same issue as the one referenced. I am not sure. It looks like the CodeChicken library is calling vanilla render functions though. I'm not sure why it would be crashing the game or if it's an issue with CodeChicken or AE. However, I think its worth it to note that I haven't seen this happen with any block other than this specific one.

commented

I had a similar crash as this, but the crash only happened when I held the drive in my hand. In the report, it told me that the drive's location was 0, 0, 0. Once I placed the drive in the world, the crash stopped happening.

I'll be able to get you a crash report in a few hours.
Update: https://gist.github.com/belathus/72b7e464011f13fc6a851acf27cdb3c2

commented

I managed to get a similar crash in a dev environment for another mod. I only mention this as CCLib was not in the environment (or any core mods for that matter).

Give that the world has had many mods added and removed from it over time, I suspect a missing tile entity is quite possible, so it seems the issue lies there rather than CCLib.

commented

I am also having a similar crash on a server - it is impossible to go near our base without crashing due to this error.

The error occurs here - slotsState is null.

The crash happened on rv5-stable-5 and rv5-stable-7. It started happening after the servers modpack was updated - I believe the most likely cause was the removal of Refined Storage. We had some RS items stored in our storage cells, and then RS was removed. My theory is that the drives are now invalid due to having nonexistant item stacks in them, and thus the drive state cant be fetched for rendering.

The crash should be mitigated with a null check for slotsState, at the very least. There may be a deeper underlying cause, though.

commented

Any update on this?

commented

If I copy the world of running server, it could be used correctly.
(Copy 'world' out before server close & Replace 'world' before server start can avoid this bug.)
But, if I close the server and start is again, a crash in client was be caused.

So, it it a bug of chunk saving?