FarmersDelight icon indicating copy to clipboard operation
FarmersDelight copied to clipboard

[1.21.1] Crash with Create & JEI: ArrayIndexOutOfBoundsException in AnimatedSpout

Open jim139129 opened this issue 1 month ago • 3 comments

Minecraft version

1.21.1

Farmer's Delight version

1.2.9

NeoForge version

21.1.213

Description

The game crashes when attempting to view recipes in JEI that involve the Create mod's Spout mechanics (or simply browsing JEI categories). The crash occurs specifically when Farmer's Delight is installed alongside Create and JEI.

The error is java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 located at com.simibubi.create.compat.jei.category.animations.AnimatedSpout.draw.

It seems that a fluid recipe or container added by Farmer's Delight might be interacting incorrectly with Create's Spout animation rendering in JEI, causing it to try and access an empty fluid list. The crash does not happen on the first page of Spout recipes, only when navigating to the second page.

I have tested this on a minimal instance with only Create, JEI, and Farmer's Delight, and the crash persists. Removing Farmer's Delight resolves the issue.

Steps to reproduce

  1. Launch the game with the minimal mod set (Create, JEI, Farmer's Delight).
  2. Open the inventory to access the JEI overlay.
  3. Search for "Spout" (Create) and right-click it to view the "Spout Filling" recipe category.
  4. Observe that there are multiple pages of recipes (specifically 6 pages in my case).
  5. The first page renders correctly.
  6. Click the arrow button to navigate to the 2nd page.
  7. The game crashes immediately upon rendering the 2nd page.

Mod list

  • create-1.21.1-6.0.8.jar
  • FarmersDelight-1.21.1-1.2.9.jar
  • jei-1.21.1-neoforge-19.25.1.328.jar
  • flywheel-neoforge-1.21.1-1.0.5.jar
  • Ponder-NeoForge-1.21.1-1.0.64.jar

Logs

latest.log

crash-2025-11-23_03.58.18-client.txt

Minimal instance

  • [x] I have tested this on a minimal instance

Performance and shader mods

  • [ ] I am using performance or shader mods

jim139129 avatar Nov 22 '25 20:11 jim139129

Seems like Create's spout filling recipe changed formatting on 6.0.8, so I have to update my integration.

However, it seems that invalid recipes are causing a rendering error on the JEI widget, on their new version. I suggest also reporting this issue to Create's issues board, so they can take a look, as it's trying to render what should be an invalid recipe.

vectorwing avatar Nov 22 '25 20:11 vectorwing

I found a existed issue on Create's issues board, this may help solve the problem. https://github.com/Creators-of-Create/Create/issues/9546

jim139129 avatar Nov 23 '25 06:11 jim139129

Seems like Create's spout filling recipe changed formatting on 6.0.8, so I have to update my integration.

However, it seems that invalid recipes are causing a rendering error on the JEI widget, on their new version. I suggest also reporting this issue to Create's issues board, so they can take a look, as it's trying to render what should be an invalid recipe.

Now JEI have pushed some fixes to prevent a crash. Here is the link. https://github.com/mezz/JustEnoughItems/issues/4180#issuecomment-3586357175

jim139129 avatar Nov 29 '25 07:11 jim139129