CloudburstMC / Nemisys

The Java implementation of standard Synapse Proxy Protocol.
https://nukkitx.com/wiki/nemisys/
GNU General Public License v3.0
38 stars 17 forks source link

Error disconnects the server from nemisys #41

Open AndreasHGK opened 5 years ago

AndreasHGK commented 5 years ago

Info This error just occurs on random occasions, disconnecting the server from the nemisys server.

Nemisys version: Nemisys 2.0dev 「Aegis」 implementing API version 1.0.6 SynapsePM version: dev10 @ poggit (https://github.com/NukkitX/SynapsePM/commit/d0b697ef09ed9810cc8872e81b4a1757bd5d425a)

Whenever I restart the server using synapse it works again.

Error: in synapsepm: no error occurs in synapse

in nemisys:

 > 03:19:22 [ALERT] java.lang.ArrayIndexOutOfBoundsException: 312
at org.itxtech.nemisys.utils.BinaryStream.getByte(BinaryStream.java:202)
at org.itxtech.nemisys.utils.BinaryStream.getEntityLink(BinaryStream.java:392)
at org.itxtech.nemisys.network.protocol.mcpe.AddEntityPacket.decode(AddEntityPacket.java:64)
at org.itxtech.nemisys.Client.handleDataPacket(Client.java:178)
at org.itxtech.nemisys.network.SynapseInterface.handlePacket(SynapseInterface.java:112)
at org.itxtech.nemisys.network.SynapseInterface.processPackets(SynapseInterface.java:83)
at org.itxtech.nemisys.network.SynapseInterface.process(SynapseInterface.java:103)
at org.itxtech.nemisys.Server.tick(Server.java:459)
at org.itxtech.nemisys.Server.tickProcessor(Server.java:426)
at org.itxtech.nemisys.Server.start(Server.java:406)
at org.itxtech.nemisys.Server.<init>(Server.java:202)
at org.itxtech.nemisys.Nemisys.main(Nemisys.java:53)
> io.netty.handler.codec.DecoderException: org.itxtech.nemisys.network.synlib.SynapseContextException: magic value is not equal -17730
at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:422)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:651)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:574)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:488)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:450)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.itxtech.nemisys.network.synlib.SynapseContextException: magic value is not equal -17730
at org.itxtech.nemisys.network.synlib.SynapsePacketDecoder.checkMagic(SynapsePacketDecoder.java:63)
at org.itxtech.nemisys.network.synlib.SynapsePacketDecoder.decode(SynapsePacketDecoder.java:33)
at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:367)
... 16 more
io.netty.handler.codec.DecoderException: org.itxtech.nemisys.network.synlib.SynapseContextException: magic value is not equal -17730
at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:422)
at io.netty.handler.codec.ReplayingDecoder.channelInputClosed(ReplayingDecoder.java:329)
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:342)
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:325)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:256)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:242)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:235)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1329)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:256)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:242)
at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:908)
at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:744)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:454)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.itxtech.nemisys.network.synlib.SynapseContextException: magic value is not equal -17730
at org.itxtech.nemisys.network.synlib.SynapsePacketDecoder.checkMagic(SynapsePacketDecoder.java:63)
at org.itxtech.nemisys.network.synlib.SynapsePacketDecoder.decode(SynapsePacketDecoder.java:33)
at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:367)
... 17 more
03:29:44 [ERROR] Magic is not match
> 03:29:44 [ERROR] Magic is not match