Jump to content

[Version 1.19] Trying to join a server, but I get a DecoderException that says "VarIntArray with size 112 is bigger than 6"


Recommended Posts

Posted (edited)

Log: https://mclo.gs/deeEs09

Error message: 

Internal Exception: io.netty.handler.codec.DecoderException: VarIntArray with size 112 is bigger than allowed 6

I have no clue how this error is occurring. It happens when I attempt join a dedicated server for my mod (i.e. ./gradlew runServer) via my personal Minecraft account. But strangely enough, I don't experience any issues when I join the server using ./gradlew runClient on another Terminal window. I'm not even sure if this issue relates to my mod at all.

Edited by LeeCrafts
Posted

Hmm, to be honest I do not know how I would reproduce this. But if this worked for you, then it must be a problem from my end. I guess I’ll just re-clone my project and try again 

Posted (edited)

Update: I've tried /op-ing my account and now I have a new error:

Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(17768) + length(1) exceeds writerIndex(17768): UnpooledHeapByteBuf(ridx: 17768, widx: 17768, cap: 17768/17768)

What’s more confusing is that it worked for 1.18.2, before I updated my mod for 1.19.

Edited by LeeCrafts
Posted

My bad I that I wasn’t clear enough. It does work fine when I try to join the server as Dev—that is, using ./gradlew runClient. But the error appears when I run a Minecraft launcher with the mod’s .jar file (e.g. putting it in the mods folder). Then when I join the localhost server using an account like Lee_Crafts, I get kicked out instantly and receive those aforementioned errors. 

Posted

Your mod works fine for me with a production server and client.

But I can get the same error as the one shown in your log if I try to connect to a production server from a client started with gradlew runclient

I guess there is a difference in the network packets sent by dev and production versions that means they cannot to connect to each other?

I don't know if this bug or expected behaviour, I have never tried it before?

BTW how is your .git 1G in size? 🙂

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted (edited)

Yea I dunno if it’s a bug or expected behavior, it worked for the 1.18.2 version of my mod though (it’s been a while since I last tested for that version so maybe I should try again lol <- edit: I tested it and the 1.18.2 version works). 
Anyways, my GitHub repo has like >50 commits…so it’s kind of a good idea to do a shallow clone. 😅 .git keeps track of all history by default. 

Edited by LeeCrafts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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