-
Notifications
You must be signed in to change notification settings - Fork 0
Replays randomly fail with a null pointer exception #4
Comments
Have you installed replaymodfixmod? I didn’t see it in the crash report. This error should have been fixed by replaymodfixmod. This error is because the world object is not instantiated when entering the replay world. This is also happens in the replaymod of other large 1.7.10 packs. The principle of replaymod is to record all packets and re-execute them in a special world during replay. There is a way to convert a stand-alone player into a server player, which allows you to see your own model, but the packet is sent to the client too early, and the client is still loading screen. |
Thank you for the information. I now have a new understanding of this error. It should only appear when entering the replay twice after startup. When you enter the replay for the third time, you should be able to enter the first two, just like 1 or 2 in the video. |
It turned out to be an embarrassing oversight on my part... I originally installed GTNH for Java 8, then made a new instance for GTNH for Java 21 but forgot to copy over the .jar for replaymodfixmod😅 Anyway, testing the mod properly now, it seems that under similar circumstances, this mod will catch and prevent the game from crashing when loading replays, but the player won't be rendered. The error being caught is in the snippet of the log pasted below. This is the known issue "cannot render entity in replay," right?
|
This error is not really perfectly fixed. I just let it not crash. I specially printed this information. |
One last thing I found is that after making a replay right after loading the game, when you load it, a message appears in chat
|
I have a rough solution but I don’t know if it is feasible: automatically run the recording every time I start the game, and then delete the recording file.This won't extend boot time too much, but I can't figure out how to do it. |
Sometimes, replays fail when trying to play them. It seems to almost always happen after recording something when you just load the game, but it occasionally happens at random. The crashes always throw the exception
java.lang.NullPointerException: Cannot read field "field_72995_K" because "p_i45324_1_" is null
.For reference, I am running Java 21 with the Java 17-21 installation of GTNH 2.5.1 as described in the GTNH wiki. The null pointer exception happens with both the
org
folder existing and being deleted from the Replay Mod.Is this an error with just replaying the recording, or is the recording itself corrupted?
If necessary, see the files for the relevant
latest.log
, crash reports, replay files, and save file. I also recorded a screen-capture of what I did starting from when the game was first loaded.crash-2024-03-10_12.23.34-client.txt
corresponds to the crash from replay 1 andcrash-2024-03-10_12.24.09-client.txt
corresponds to the crash from replay 2.latest.log
crash-2024-03-10_12.23.34-client.txt
crash-2024-03-10_12.24.09-client.txt
Replay files: replays.zip
Save file: https://www.mediafire.com/file/l0w1k9x10vbnbak/extract_to_save_folder.zip/file
Screen-capture recording: https://youtu.be/m6r4hMrVVAY
The text was updated successfully, but these errors were encountered: