Could not serialize shetiphian.core.internal.teams.TeamCommand.... will not send to client.
Leathal2 opened this issue · 5 comments
Having an issue where people are not able to connect to server (version 0.2.19).
[08:52:50] [Server thread/INFO]: Aavie joined the game
[08:52:50] [Netty Epoll Server IO #5/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@3d08f2fa (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[08:53:50] [Server thread/INFO]: Aavie lost connection: Disconnected
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Known major issue:
Only thing which seems to reliably help is rebooting and letting the affected person(s) connect first, which is not ideal. I found some mixed success with reducing render distance down to as little as possible in single player and connecting, but it's not reliable and doesn't address the root problem.
Same here in 0.2.20b, maybe the logs will help narrow it down. I'm hosting a singleplayer world to LAN, both instances started via MultiMC:
[12:13:18] [Render thread/INFO]: [CHAT] Player joined the game
[12:13:18] [Server thread/INFO]: Syncing config to Player (12345678-1234-1234-1234-123456781234)
[12:13:18] [Netty Server IO #3/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@1dd19e96 (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[12:13:18] [Netty Server IO #3/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@77f28c06 (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[12:13:18] [Netty Server IO #3/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@18923284 (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[12:13:18] [Netty Server IO #3/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@7a12e5cb (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[12:13:18] [Netty Server IO #3/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@1963d433 (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[12:13:18] [Netty Server IO #3/ERROR]: Could not serialize cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument@1e9a777 (class cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument) - will not be sent to client!
[12:13:18] [Netty Server IO #3/ERROR]: Could not serialize cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument@3a92042c (class cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument) - will not be sent to client!
[12:13:18] [Netty Server IO #3/ERROR]: Error encoding packet
io.netty.util.IllegalReferenceCountException: refCnt: 0
at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1454) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.buffer.AbstractByteBuf.checkIndex(AbstractByteBuf.java:1383) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.buffer.UnpooledHeapByteBuf.copy(UnpooledHeapByteBuf.java:534) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.buffer.AbstractByteBuf.copy(AbstractByteBuf.java:1194) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at net.minecraft.network.FriendlyByteBuf.copy(FriendlyByteBuf.java:1169) ~[client-1.18.1-20211210.034407-srg.jar%23272!:?]
at net.minecraft.network.protocol.game.ClientboundCustomPayloadPacket.m_5779_(ClientboundCustomPayloadPacket.java:50) ~[client-1.18.1-20211210.034407-srg.jar%23272!:?]
at net.minecraft.network.PacketEncoder.encode(PacketEncoder.java:42) ~[client-1.18.1-20211210.034407-srg.jar%23272!:?]
at net.minecraft.network.PacketEncoder.encode(PacketEncoder.java:15) ~[client-1.18.1-20211210.034407-srg.jar%23272!:?]
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:110) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:790) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:758) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:808) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:306) ~[netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at net.minecraft.network.Connection.m_178303_(Connection.java:202) ~[client-1.18.1-20211210.034407-srg.jar%23272!:?]
at net.minecraft.network.Connection.lambda$sendPacket$5(Connection.java:191) ~[client-1.18.1-20211210.034407-srg.jar%23272!:?]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) [netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) [netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.68.Final.jar%2317!:4.1.68.Final]
at java.lang.Thread.run(Thread.java:833) [?:?]
[12:13:18] [Server thread/INFO]: Player lost connection: Internal Exception: io.netty.handler.codec.EncoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0
[12:13:18] [Server thread/INFO]: Player left the game
Hi
Having a similar issue here, I'm running the SIMPLE-SERVER-FILES-0.2.20b unmodified and the All the Mods 7-0.2.20b which is being launched through MultiMC. Currently just connecting through LAN as it's not stable enough yet to let friends join.
When connecting in the client I get the following message on the join screen just after the Encrypting message, then i see Joining World then the screen goes monochrome then the following message...
Internal Exception: io.netty.handler.codec.DecoderException: Java.Lang.NullPointerException: Cannot invoke "net.minecraft.client.multiplayer.ClientPacketListner.m_6198_()" because the return value of "net.minecraft.client.Minecraft.m_91403_()" is null
The server displays...
[19:53:55] [User Authenticator #2/INFO]: UUID of player Sim-Ian is #UUID#
[19:54:04] [Server thread/INFO]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@76772f49
[19:54:04] [Server thread/INFO]: Sim-Ian[/192.168.0.13:56727] logged in with entity id 33569 at (7.059077088683451, 67.0, -38.54888864765018)
[19:54:04] [Server thread/INFO]: Sim-Ian joined the game
[19:54:05] [Netty Server IO #6/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@4d22d4ec (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[19:54:05] [Netty Server IO #6/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@6aa0cfa (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[19:54:05] [Netty Server IO #6/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@12d3a1d6 (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[19:54:05] [Netty Server IO #6/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@37e0bcbc (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[19:54:05] [Netty Server IO #6/ERROR]: Could not serialize shetiphian.core.internal.teams.TeamCommand$TeamArgument@61fbab66 (class shetiphian.core.internal.teams.TeamCommand$TeamArgument) - will not be sent to client!
[19:54:05] [Netty Server IO #6/ERROR]: Could not serialize cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument@353c6671 (class cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument) - will not be sent to client!
[19:54:05] [Netty Server IO #6/ERROR]: Could not serialize cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument@13be10ad (class cpw.mods.inventorysorter.InventorySorterCommand$ContainerClassArgument) - will not be sent to client!
[19:54:06] [Server thread/INFO]: Sim-Ian lost connection: Disconnected
[19:54:06] [Server thread/INFO]: Sim-Ian left the game
Have been seeing this issue for a while, I started playing on a Linux client with "All the Mods 7-0.2.13" which did not seem to have the same problem. I fist encountered the issue after switching to Windows 10 when the server was updated to "SIMPLE-SERVER-FILES-0.2.15" where the only way I could join was to re-launch the server but that was not guaranteed to work.
The Server is Hosted on Windows 10, Intel i7-3770K with 32GB of RAM
The Client is running on Windows 10, Intel i7-5820K with 32GB of RAM
I may have found a solid workaround.
- Open Minecraft.
- Open Options.
- Open Video Settings.
- Set "Simulation Distance" as low as possible. This should be at or around 5 chunks.
- Re-attempt connection.
I have found that anything above 10 chunks reliably reproduces the error in question.