BCLib

BCLib

33M Downloads

[Bug] Crash on startup when BCLib and Moonlight are both present

Ricenami opened this issue · 1 comments

commented

What happened?

(I used AI to help me make this bug report)

When updating Obscuria Tooltips from v2.2.0 to v3.1.0+, the game crashes on startup. After using AI, the AI deduced that the crash is not caused by Obscuria Tooltips itself but appears to come from an interaction between:

BCLib and the Moonlight Library.

Note: Sinytra Connector is used I am on Forge 1.20.1 (Everything was working before the update for Obscuria tooltips)

(When I launch the game I crash): The crash happens during model/resource reload, specifically when CustomModelBakery from BCLib is adding item models while Moonlight hooks into resource reload.

Crash Report
java.lang.NullPointerException: Initializing game
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at org.betterx.bclib.client.models.CustomModelBakery.addItemModel(CustomModelBakery.java:109)
at org.betterx.bclib.client.models.CustomModelBakery.loadCustomModels(CustomModelBakery.java:38)
...
Suspected Mods:
Moonlight Library (moonlight) v2.16.10
BCLib v3.0.14

Full crash log attached:
latest.log
crash-2025-10-02_22.50.07-client.txt
modlist.txt

Environment:
Minecraft: 1.20.1
Forge: 47.4.0
BCLib: 3.0.14
Moonlight Library: 2.16.10
BetterEnd/BetterNether: (present, versions bundled with BCLib 3.0.14)
Supplementaries: (present, requires Moonlight)
Sinytra Connector: 1.0.0-beta.46 + ConnectorExtras 1.11.2

AI Notes:

Crash only appears after updating Obscuria Tooltips, removing Tooltips or downgrading fixes the crash.
Might be Connector-related, but the stack trace directly involves both BCLib and Moonlight.

BCLib

3.0.14

WorldWeaver

N/A

Forge API

1.20.1

Forge Loader

47.4.0

Minecraft

1.20.1

Relevant log output

Other Mods

commented

So actually the problem was because I had the wrong mod installed, here is comments from the mod author of Obscuria tooltips:
"You installed the wrong mod: https://www.curseforge.com/minecraft/mc-mods/fragmentum
The one you should be using is: https://www.curseforge.com/minecraft/mc-mods/fragmentum-forge

This author’s project ID is higher than mine, which means their mod is newer. I have no idea why they thought duplicating the name and ID of an existing mod was a good idea..."