Skip to content

[0.8.2a] ME Bridge getItems() throws and logs a stack trace for every Mekanism bin #855

Closed as not planned

Description

@dargabi

Describe

getItems() on the ME Bridge throws and logs a full stack trace for every Mekanism bin stack in the network, on every call:

[ERROR] [me.co.Mekanism/]: Failed to load stored lock data: Item must not be minecraft:air
[ERROR] [Advanced Peripherals/]: [ERROR] Failed to encode prototype components for mekanism:elite_bin
java.lang.IllegalStateException: Item must not be minecraft:air
    at com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:287)
    at de.srendi.advancedperipherals.common.util.DataComponentUtil.mapToLua(DataComponentUtil.java:56)
    at de.srendi.advancedperipherals.common.util.DataComponentUtil.mapToLua(DataComponentUtil.java:50)
    at de.srendi.advancedperipherals.common.util.LuaConverter.itemStackToLuaNoCount(LuaConverter.java:326)
    at de.srendi.advancedperipherals.common.util.LuaConverter.itemStackToLua(LuaConverter.java:390)
    at de.srendi.advancedperipherals.common.addons.ae2.AEApi.parseItemStack(AEApi.java:473)
    at de.srendi.advancedperipherals.common.addons.ae2.AEApi.listItems(AEApi.java:225)
    at de.srendi.advancedperipherals.common.addons.computercraft.peripheral.MEBridgePeripheral.getItemsImpl(MEBridgePeripheral.java:233)

Same for basic_bin, advanced_bin, ultimate_bin and creative_bin. The prototype (default) components of an empty bin seem to contain an air item stack that fails to encode. Besides the log spam, writing the stack traces adds noticeable time to a call that already runs on the main thread.

Steps to reproduce

  1. Put any empty Mekanism bin item into an ME network.
  2. Call getItems() on an ME Bridge.
  3. Check the server log.

Multiplayer?

Yes

Version

1.21.1-0.8.2a (Latest 1.21.1)

Minecraft, Forge and maybe other related mods versions

Minecraft 1.21.1, NeoForge 21.1.264, AE2 19.2.18, Mekanism 1.21.1-10.7.19.85, CC:Tweaked 1.120.2

Activity

  1. zyxkad commented on Oct 22, 2026

    @zyxkad
    Collaborator

    This is expected, some mods' items does not provide valid & encodable prototype components for some reason. Therefore we can't encode these for user's to use. Please report to their mod instead.

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

    trespassingTrespassed issues that not using issue template.wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions