Skip to content

RenderSystem called from wrong thread - 8.0-alpha.7 - 1.21.11 #302

@PoultryPants

Description

@PoultryPants

Description

Every time I pause the game in a singleplayer world, an error is logged from ChatLog.serialize.

The error occurs on an IO-Worker-* thread and consistently throws:

java.lang.IllegalStateException: RenderSystem called from wrong thread

The stack trace shows the error originating from:

obro1961.chatpatches.ChatPatches.pushToast
obro1961.chatpatches.ChatPatches.pushErrorToast
obro1961.chatpatches.ChatLog.lambda$serialize$4

This happens reliably whenever the game is paused. It does not crash the game, but it logs an error every time.

How to reproduce

  1. Launch Minecraft 1.21.11 with ChatPatches installed (Fabric).
  2. Enter any world.
  3. Press ESC to pause the game.
  4. Observe the error logged in latest.log.

This occurs every time the game is paused.

Expected result

Pausing the game should not produce any errors in the log.
ChatLog.serialize should complete without throwing exceptions.

Log file link

MCLO.gs link

Specs and Details

  • Computer OS: Windows 11
  • Minecraft version: 1.21.11
  • Mod version: 8.0-alpha.7
  • Fabric version: 0.18.4
  • Fabric API version: 0.141.1
  • YetAnotherConfigLib version: v3-3.8.2
  • Mod Menu version: 17.0.0-beta2

Additional context

The world is singleplayer and has no datapacks loaded.
All installed mods are updated to their latest versions for Minecraft 1.21.11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or is broken/crashing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions