You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[0.8.2a] ME Bridge getItems() throws and logs a stack trace for every Mekanism bin #855
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
Put any empty Mekanism bin item into an ME network.
Call getItems() on an ME Bridge.
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
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.
Activity
zyxkad commentedon Oct 22, 2026
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.