Just Enough Items (JEI)

Just Enough Items (JEI)

387M Downloads

[Bug]: Mod that depends on JEI hangs during datagen

noeppi-noeppi opened this issue ยท 2 comments

commented

Steps to Reproduce the Bug

  1. Create a forge mod that depends on JEI and loads it in a development environemnt.
  2. Run datagen: ./gradlew runData

Expected Behavior

After all data providers are complete, the game should stop.

Actual Behavior

After all data providers are complete, the game hangs forever.

Mod Pack URL (Optional)

No response

Mod Pack Version (Optional)

No response

Extra Notes (Optional)

This is due to the Timer thread in ConfigSchema.java not running as a daemon. This means, the game won't stop when all other threads are done.

When running the game regularly, this is no problem as System.exit is invoked when the main thread is about to die. When datagen is running, however this is not the case, so the JEI Timer thread makes the game hang indefinitely.

latest.log

No response

commented

Thanks for the report!
I have pushed a fix for this thread, please let me know if you into any more issues.

commented

Can confirm this is also happening with Twilight Forest in dev, despite us being on JEI version 13.1.0.6