Jump to content

(1.12.2) LAN Players Disconnect on Join


Recommended Posts

I've been dedicating a lot of time recently to building a 1.12.2 pack (on recommended version 14.23.5.2847), and just recently, I discovered that players can't play in LAN worlds for more than few minutes without being disconnected. I've looked through the logs, there are no suspected mods, and vanilla LANs work just fine, so I'm honestly clueless as to how to even go about fixing this problem. The host computer for LAN worlds runs completely fine. Minimal lag, no crashes. Players connecting to the LAN, however, are forcibly disconnected, which sometimes results in a crash on their side. Sometimes, they're disconnected immediately. Sometimes they're disconnected before a "____ has joined the world" message is even sent in chat. Sometimes, they're able to walk around a bit before they're kicked.

 

Here's an excerpt from a log, highlighting what happens when a player is disconnected:

Spoiler

 

[20:30:43] [Server thread/INFO]: MrFrickleFace joined the game

[20:30:43] [Client thread/INFO]: [CHAT] MrFrickleFace joined the game

[20:30:43] [Server thread/INFO]: Player EntityPlayerMP['MrFrickleFace'/146066, l='i haev to frog', x=462.85, y=63.25, z=63.46] connected. Sending ping

[20:30:43] [Server thread/INFO]: Sending Player Data to player MrFrickleFace with UUID 99c93839-6564-4d5f-8255-665e7c761324.

[20:30:44] [Netty Server IO #10/ERROR]: NetworkDispatcher exception

io.netty.util.IllegalReferenceCountException: refCnt: 0

    at io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1408) ~[AbstractByteBuf.class:4.1.9.Final]

    at io.netty.buffer.UnpooledHeapByteBuf.array(UnpooledHeapByteBuf.java:154) ~[UnpooledHeapByteBuf.class:4.1.9.Final]

    at net.minecraft.network.PacketBuffer.array(PacketBuffer.java:1264) ~[gy.class:?]

    at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.toS3FPackets(FMLProxyPacket.java:151) ~[FMLProxyPacket.class:?]

    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.write(NetworkDispatcher.java:537) ~[NetworkDispatcher.class:?]

    at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) ~[AbstractChannelHandlerContext.class:4.1.9.Final]

    at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801) ~[AbstractChannelHandlerContext.class:4.1.9.Final]

    at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814) ~[AbstractChannelHandlerContext.class:4.1.9.Final]

    at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794) ~[AbstractChannelHandlerContext.class:4.1.9.Final]

    at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831) ~[AbstractChannelHandlerContext.class:4.1.9.Final]

    at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1032) ~[DefaultChannelPipeline.class:4.1.9.Final]

    at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:296) ~[AbstractChannel.class:4.1.9.Final]

    at net.minecraft.network.NetworkManager$4.run(NetworkManager.java:245) [gw$4.class:?]

    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [AbstractEventExecutor.class:4.1.9.Final]

    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) [SingleThreadEventExecutor.class:4.1.9.Final]

    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442) [NioEventLoop.class:4.1.9.Final]

    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [SingleThreadEventExecutor$5.class:4.1.9.Final]

    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]

[20:30:44] [Server thread/INFO]: MrFrickleFace lost connection: Disconnected

[20:30:44] [Server thread/INFO]: MrFrickleFace left the game

 

 

The first line of the error messages reads

[20:30:44] [Netty Server IO #10/ERROR]: NetworkDispatcher exception io.netty.util.IllegalReferenceCountException: refCnt: 0

 

When a player is disconnected, on their side, they either get a simple "Disconnected" message, or a much more detailed error that reads "IOException: An existing connection was forcibly closed by the remote host."

 

I'm really desperate to find a fix for this problem, because I want to ensure that LANs work on my pack. That's a huge part of the multiplayer component to a pack, and I feel that there's not much point in developing it further if LAN worlds are broken. At the same time...I've dumped nearly 100 hours into building this thing! ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.