Describe the bug
When attempting to join servers with using proxy networks I receive the error Invalid VarInt found! Packet structure may have changed..
Steps to reproduce
Try to join this server with the copier marscraft.org.
Log output
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
at java.base/java.lang.System.arraycopy(Native Method)
at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
at java.base/java.lang.System.arraycopy(Native Method)
at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
at java.base/java.lang.System.arraycopy(Native Method)
at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$7(EntityRegistry.java:86)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
at java.base/java.lang.System.arraycopy(Native Method)
at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$7(EntityRegistry.java:86)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
at java.base/java.lang.System.arraycopy(Native Method)
at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$7(EntityRegistry.java:86)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
at java.base/java.lang.System.arraycopy(Native Method)
at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$7(EntityRegistry.java:86)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$7(EntityRegistry.java:86)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
at java.base/java.lang.System.arraycopy(Native Method)
at packets.DataTypeProvider.readByteArray(DataTypeProvider.java:90)
at packets.DataTypeProvider.readLong(DataTypeProvider.java:155)
at packets.DataTypeProvider.readUUID(DataTypeProvider.java:224)
at game.data.entity.PlayerEntity.parse(PlayerEntity.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$6(EntityRegistry.java:88)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
at game.data.entity.EntityRegistry.lambda$addPlayer$7(EntityRegistry.java:86)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
at packets.DataReader.pushData(DataReader.java:118)
at proxy.ProxyServer.lambda$run$7(ProxyServer.java:106)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.lambda$run$9(ProxyServer.java:103)
at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
at proxy.ProxyServer.run(ProxyServer.java:62)
java.lang.RuntimeException: Invalid VarInt found! Packet structure may have changed.
at packets.DataReader.readVarInt(DataReader.java:70)
at packets.DataTypeProvider.readVarInt(DataTypeProvider.java:111)
at game.data.entity.EntityRegistry.destroyEntities(EntityRegistry.java:187)
at packets.handler.ClientBoundGamePacketHandler.lambda$new$5(ClientBoundGamePacketHandler.java:60)
at packets.handler.PacketHandler.handle(PacketHandler.java:57)
at packets.DataReader.readPackets(DataReader.java:163)
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 10 out of bounds for byte[3]
...
Describe the bug When attempting to join servers with using proxy networks I receive the error
Invalid VarInt found! Packet structure may have changed.
.Steps to reproduce
Log output
Screenshots
Version