Skip to content

game crash because of sheep! #1049

@Sean23323

Description

@Sean23323

Context

Sorry about using AI to make a description about the crash, but I think it would be more specific than I type by myself.
Issue description:
When rendering a sheep (or any sheep with its wool layer), the game crashes with one of two errors:

  1. NullPointerException: Cannot invoke "org.joml.Matrix4f.rotate(org.joml.Quaternionfc)" because "posestack$pose.pose" is null
  2. IncompatibleClassChangeError: Class org.joml.Matrix3f does not implement the requested interface org.joml.Quaternionfc

Both crashes occur in the same call chain:
SheepFurLayer.renderAgeableListModel.renderToBufferModelPart.translateAndRotatePoseStack.mulPose

Steps to reproduce:

  1. Install Sable 1.2.2 (or 1.2.1) along with Veil 4.0.0, Flywheel 1.0.6, Create 6.0.10, and other common mods.
  2. Load a world that contains a sheep (or spawn one).
  3. Look at the sheep – immediate crash.

Environment:

  • Minecraft 1.21.1, NeoForge 21.1.230
  • Sable: 1.2.2 (1.2.1 also tested, same issue)
  • Veil: 4.0.0
  • Flywheel: 1.0.6
  • Other relevant mods: Create (6.0.10), SimpleBedrockModel (2.2.1), Northstar (0.5.4), Xaero's Minimap & World Map.

Suspected mod interaction:

  • Veil modifies PoseStack (via PipelinePoseStackMixin)
  • Flywheel also modifies PoseStack (via PoseStackMixin)
  • Sable modifies entity rendering (LivingEntityRendererMixin, EntityRenderDispatcherMixin)
  • The combination of Veil + Flywheel + Sable appears to corrupt the JOML matrix state or cause a class/interface mismatch at runtime.

Additional observations:

  • The IncompatibleClassChangeError suggests that at runtime, Matrix3f does not implement Quaternionfc, even though it should in JOML 1.10.5 (the version bundled with Minecraft). This is likely due to a mod shading an older JOML or a Mixin altering type hierarchies.
  • Disabling Veil temporarily resolves the crash (tested separately). However, the issue should ideally be fixed in Sable or coordinated with other mod authors.

Expected behavior:
Sheep renders without crashing.

Actual behavior:
Game crashes when rendering a sheep.

Please let me know if you need any further information or testing. Thank you!

Crash Report

https://mclo.gs/kl8lL6G

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: crashSomething crashes my game

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions