@solar warren uploaded a log, Axiom version: 5.0.1 release
Environment: Windows, Minecraft 1.21.4, prism 9.3, quilt 0.29.1, fabric API 0.119.4+1.21.4
Mode: Editor Mode
I have verified that I am using the most up to date version of the mod and that there are no incompatibilities with the ones listed in the FAQ channel.
Description:
Axiom threw ArrayIndexOutOfBoundsException while using path tool
What I expected to happen was...:
No uncaught exceptions 😅
What actually happened was...:
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at com.moulberry.axiom.tools.path.PathRasterizer$Spike.lambda$finish$0(PathRasterizer.java:426)
at com.moulberry.axiom.rasterization.Rasterization3D.ddaPartial(Rasterization3D.java:335)
at com.moulberry.axiom.tools.path.PathRasterizer$Spike.finish(PathRasterizer.java:421)
at com.moulberry.axiom.tools.path.PathTool.recalculate(PathTool.java:1102)
at com.moulberry.axiom.tools.path.PathTool.render(PathTool.java:492)
at com.moulberry.axiom.hooks.WorldRenderHook.renderHook(WorldRenderHook.java:140)
at com.moulberry.axiom.hooks.WorldRenderHook.renderPre(WorldRenderHook.java:89)
at net.minecraft.class_761.handler$cmi000$axiom$renderLevelPre(class_761.java:14217)
at net.minecraft.class_761.method_62214(class_761.java:670)
...
Steps to Reproduce:
I was using the path tool. I had drawn a path of 2 nodes. I then cycled the curve type a few times, ending on line DDA, use stairs and slabs. The exception threw when I then changed the shape to spike.
Can you recreate the bug?
Yes.
I'm a software engineer very experienced with java, can help with further debugging if needed. I don't have the source of course, but I see in the decompiled class 3 instances of array access by index, one of them must have a defect in the index math.
Attachments: 📎
Crash report
I hereby verify that this is not a support post and is an actual bug that I can recreate.