Architectury API (Fabric/Forge/NeoForge)

Architectury API (Fabric/Forge/NeoForge)

158M Downloads

Server crashes sometimes with "Where is architectury?"

RagingLightning opened this issue · 4 comments

commented

Hi,

I'm working on a custom modpack and thiss mod is currently a sore thumb of mine...
Most of the time, everything works perfectly, but every so often (once in 20 server starts or something like that), It just crashes, throwing an "IllegalStateException: Where is architectury?"

crash report

I've tried to have a look at the code to figure out, what goes wrong, but I was unable to find anything.

I'd love a fix or simply an explaination of how this can happen, so I can try to debug my setup further.

commented

I think you should update forge, you use 36.1.3 which is ~70 versions behind the latest one

commented

Encountered the same problem,Client replicated。
crash-2021-07-13_20.24.05-client.txt

commented

@lajxw your issue is unrelated and should be reported to FTBLibrary instead.

commented

This is some weird race condition I still haven't figured out the exact cause of:

"Where is architectury?" only pops up if this class tries to get Architectury's Mod Event Bus before it's registered, however, that should be impossible since we do these things in order in

public ArchitecturyForge() {
EventBuses.registerModEventBus(ArchitecturyForge.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
EventHandler.init();
}
, and both of these methods are synchronous so... I have no idea :/