-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v3.13.2+fabric-1.21
] Connection is lost (almost) immediately after (LAN and Essential) multiplayer world join, with "Internal Exception: io.netty.handler.codec.EncoderException
: io.netty.util.IllegalReferenceCountException
: refCnt
: 0".
#142
Comments
@JaredRichardWilliam can confirm too. |
Can confirm I am having this issue as well |
Hello! Now, I'd like to focus on reproducing the issue on my end, so I can find a way to resolve it. To do this, I need to clear up a few issues;
Once I manage to recreate the issue on my end, it will hopefully help me get closer to the line of code that caused this issue, after which a patch can be made. ((In the meantime, I suppose it'd be a good idea for me to implement (togglable/configurable) network-related error loggers in my mods, if possible.)) Edit: |
v3.13.2+fabric-1.21
] Connection is lost (almost) immediately after (LAN and Elemental) multiplayer world join, with "Internal Exception: io.netty.handler.codec.EncoderException
: io.netty.util.IllegalReferenceCountException
: refCnt
: 0".v3.13.2+fabric-1.21
] Connection is lost (almost) immediately after (LAN and Essential) multiplayer world join, with "Internal Exception: io.netty.handler.codec.EncoderException
: io.netty.util.IllegalReferenceCountException
: refCnt
: 0".
Apologies. I meant Essential. Filing bugs at night does things to a brain.
Yeah, that wasn't meant to expire. I didn't upload it, but If you're interested, https://github.com/nextcloud/.github/blob/a7b41dc98d8844b64d9c372c84b4afd68e532f9a/profile/README.md#nextcloud explains that NC is just FOSS filehosting platform software.
How do you suggest that I log it? I don't mind filing an issue on MC's Jira to eventually have the work performed in the main client, but they'll probably close it as a suggestion (even if I phrase the absence as a bug). Otherwise, I don't mind trying any of the non-destructive options at this Ask Ubuntu answer revision (like wireshark) or https://superuser.com/revisions/22571/1, but I'm unfamiliar with them.
I'll use debug symbols if you can provide them, but I'm unfamiliar with whether those are necessary for languages like DotNet and Java (considering they use microcode), much less how to install them (considering that |
Thank you so much for the quick response! As for
You do not have to do anything regarding the error logging, as I* will be responsible for tracing the error to its origin once I recreate the issue on my end. Actually logging the error would require you to mod the game yourself and program it to do that, which obviously, I do not expect anyone to do (nor should you). I will now get to reproducing the environment and the issue you have described, after which I'll work on a patch. Hopefully everything goes as planned. Thank you once again, and have a great day! |
@TheCSDev, I've reuploaded the pack at https://github.com/user-attachments/files/17524982/Redy.s.Pack.Fabric.zip 1 Footnotes |
Hello again! In the latest versions of the game (I used 1.21), I intentionally recreated a scenario where the client would get disconnected due to a network error (by intentionally cutting the server's internet access). To my surprise, I noticed the game is actually logging the error in my case, and it even shows me a button to click on it and view the logs; I was wondering if something like this takes place on your end, and if the game is leaving any more traces of the error. For me, the game saved an error log file in the And here's the example error log file I was able to find:
Now that I have the time to, I will also recreate a modded environment using your mod-pack and using the scenario you have provided, and see if any traces are left by the game in that instance as well. -Edit to add (after some time passed):I have recreated the environment by installing the mod-pack to my client and to a server hosted on a VM. I made attempts to join the server both with and without BSS installed. In both instances, I encountered no issues, even after repeated rejoins. If nothing works, then this could be some sort of incompatibility with Essential, but I am unfortunately unable to verify or check this. I will also have a deep look at my networking-related code, specifically one dealing with ByteBuf-s, as the error message you have shown does usually originate from mishandling of ByteBuf-s. |
I had this issue on quilt 1.20.1 0.27.0 when joining a single player world, but when I updated to 0.28.0-beta.3 it started to work. |
Never mind. Now the issue is back. |
I also encountered this bug in version 1.20.1 with the same error message like this:
When I disable this Mod on the server, even if the client still loads it, there won't be any issues. |
What happened?
Errata
I attempted to join a world via LAN and Elemental, hosted on another machine (same hardware, launcher, and mod-pack, but different OS) but it would frequently (yet inconsistently) fail with any of the undermentioned error messages:
Reference Count Error
Quotation
Screenshot
Mere Disconnection Error
Quotation
Screenshot
(Lack of) Duplicates
https://github.com/TheCSMods/mc-better-stats/issues?q=is%3Aissue+is%3Aopen+io.netty.handler.codec.EncoderException returned 0 results at +2024-10-19T10:16:56+01:00.
Steps to reproduce
Environment Configuration
Install the OS:
Windows 11
Via https://www.microsoft.com/en-us/software-download/windows11 (or https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewiso).
Fedora 40
Via https://download.fedoraproject.org/pub/fedora/linux/releases/40/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-40-1.14.iso.
Install Prism Launcher:
Windows
Fedora
Import (and configure) the modifications:
Download
https://kim.nl.tab.digital/s/QsmpqSeZnwsQ2BY.Create an instance:
Select the pack:
Leave these disabled (or disable them):
If you see this, create a new one. You shouldn't see it the first time you do so.
Wait for it to extract and import:
Confirmation
Launch the instance.
Host a world on one machine.
Attempt to join it on the other.
This should consistently work, without any failures.
Better Statistics Screen Installation
Install https://modrinth.com/mod/better-stats/version/3.13.2+fabric-1.21:
Enable it (if not already so):
Confirmation
Launch the instance.
Host a world on one machine.
Attempt to join it on the other.
If the error doesn't reproduce immediately, continue to attempt to rejoin. It should occur consistently frequently.
Relevant log output or crash report
I've attached it at https://gist.github.com/RokeJulianLockhart/d2a7ca0b31f2eb45d8e835112749da86/907e0eff17695c8e056f47c9453b99c3722a1fb5#file-slmgf5-txt-log-L6847. It isn't from after instance closure - instead, it's immediately after the reference count error occurred:
Other installed mods
Operative
Without BS.
Inoperative
With BS installed and enabled.
Code of Conduct
The text was updated successfully, but these errors were encountered: