Moonlight Lib

Moonlight Lib

197M Downloads

[๐Ÿž]: NPE when querying block translation ID causes game to hang on startup

UpcraftLP opened this issue ยท 5 comments

commented

BEFORE CONTINUING:

  • Always check you are using the latest version of these mods and its dependencies
  • Remove known problematic rendering mods such as Optifine, Sodium and others

Version-Loader

1.21.1-NEOFORGE

Moonlight Lib Version

moonlight-1.21-2.18.12-neoforge

Describe the Issue

When trying to query Bootstrap.getMissingTranslations() during client startup, a NullPointerException is thrown while that method tries to get the description ID of some block, causing the game loading to stall, and never reach the title screen (but also not directly crash, either, it just stalls).

Note that I've not been able to reproduce this with just your mods, it seems that this may require multiple mods to be present to occur.

can be reproduced in the following modpack (need to manually add a mod that calls Bootstrap.getMissingTranslations()): CurseForge share ID doxjjIm8

Log Attachment

latest.log

OPTIONAL: To Produce

  1. install a mod that calls Bootstrap.getMissingTranslations() during resource manager reload
  2. observe the game never reaching the title screen

OPTIONAL: Which mods are affected?

unknown which mod actually causes this.

commented

Oh. that mean you need to isolate the mod that call the method. I can't find Bootstrap.getMissingTranslations() method in Moonlight Lib.

commented

Oh. that mean you need to isolate the mod that call the method. I can't find Bootstrap.getMissingTranslations() method in Moonlight Lib.

yeah it's not in moonlight lib. Sorry

The mod I used to trigger it is my own library (Sparkweave), with a debug flag enabled that makes it validate translations (said feature was accidentally left enabled in prod builds, but I've since released a fix).

But another mod making minecraft check for missing translation entries should not cause a crash regardless.

commented

You need to provide the name of Mod that called "Bootstrap". I cannot find the mod that use the Bootstrap.getMissingTranslations() and this: CurseForge share ID doxjjIm8, i'm not sure how to use it.

EDIT: nvm. I know what shareID is for.

commented

You need to provide the name of Mod that called "Bootstrap".

there is no such mod, that's a vanilla minecraft class

commented

Gotcha