Skip to content
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

Message discriminators *MUST* exist on the channel on both sides if t… #18

Merged
merged 2 commits into from Apr 8, 2023

Conversation

OvermindDL1
Copy link

Message discriminators MUST exist on the channel on both sides if there is more than one message or the one message does not use ID 0, and this mod has two messages, meaning when a MessageTexture gets sent from the server then it gets a discriminant of 0, meaning the client then deserializes it as MessageExplosion, which "most" of the time it will just harmless tell the client explosions are happening randomly around the world where they are not, but sometimes it crashes due to not enough data in the packet stream to deserialize, registering the messages on both server and client fixes it.

…here is more than one message or the one message does not use ID 0, and this mod has two message, meaning when a MessageTexture gets sent from the server then it gets a discriminant of 0, meaning the client then deserializes it as MessageExplosion, which "most" of the time it will just harmless tell the client explosions are happening randomly around the world where they are not, but sometimes it crashes due to not enough data in the packet stream to deserialize, registering the messages on both server and client fixes it
@dvdmandt
Copy link

dvdmandt commented Apr 5, 2023

Is this the cause of the OOM exception in MessageExplosion.fromBytes()?

GTNewHorizons/GT-New-Horizons-Modpack#12226

@Dream-Master Dream-Master enabled auto-merge (squash) April 8, 2023 20:36
@Dream-Master Dream-Master merged commit dd4a3ed into GTNewHorizons:master Apr 8, 2023
1 check failed
@OvermindDL1
Copy link
Author

Is this the cause of the OOM exception in MessageExplosion.fromBytes()?

GTNewHorizons/GT-New-Horizons-Modpack#12226

Oh sorry, didn't see this message @dvdmandt, yes that looks like the same error that I got because of this issue, so this probably fixes that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants