Skip to content

[Bug] REI fails to sync any displays due to polymer-core #2077

Description

@Meolsei

Issue

All REI displays fail to sync to clients server-wide, causing every item to only show tags instead of actual recipes. The server log is spammed continuously with the same stack trace, once per failed display.

Reproduction

  1. Run a Fabric server with polymer-bundled-0.17.3+26.2 and RoughlyEnoughItems-26.2.820.
  2. Join with a client running REI.
  3. Click any item and observe only tags being shown.

Expected Behaviour

Recipes display normally.

Environment

  • Minecraft: 26.2
  • Fabric: Loader 0.19.3, API 0.155.2+26.2
  • REI: 26.2.820
  • Polymer: Bundled 0.17.3+26.2
  • Java: 25.0.3
  • OS: Debian 13 (Pterodactyl instance)

Log File

rei.zip
Compressed due to a ~60 MB log file.

Notes

polymer-core's mixin on ItemStack.encode() (replaceWithVanillaItem) requires a PacketContext via ScopedValue, which isn't present when REI's ServerDisplayRegistryImpl.updatePlayers calls encode() outside of a real packet-send context. This affects 100% of displays, not just specific recipes.

This is an issue that has persisted since REI was first added to the server, and was already occurring prior to that on client-side.

What do you think this bug is of?

  • Visual
  • Recipe Lookup
  • Cheat Mode
  • Plugin Integration / JEI Plugin Compatibility
  • Others

By submitting this issue, I have included the necessary logs by pasting the contents into the correct location or attaching the file as an upload.

  • Yes, and I did not use any paste services other than GitHub Gists.

By submitting this issue, I have confirmed my REI and REI's dependencies are up to date.

  • Yes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions