Packet Fixer

Packet Fixer

35M Downloads

Possible solution for #21

Sunconure11 opened this issue · 69 comments

commented

#21 (comment)

You should probably check this out.

commented

Doesn't Connectivity already solve this issue by bumping the maximum packet size?

Connectivity is really just a monitor, it only fixes 3 packet size (minecraft have 6), phantom blocks, improves errors and gives you information about packet usage. Connectivity does nothing else.

commented

@embeddedt

You wanna take this over? There is a lot of info here.

Also, would it be possible to make a version of the packet splitter mixin that is compatible with Krypton?

commented

MinecraftForge/MinecraftForge#7485

FabricMC/fabric#2525

There were two, separate ideas of the same thing, in these pulls. A packet splitter, basically. Forge has an implementation but Fabric/Quilt do not.

commented

Not sure what I'm expected to see/do here.

commented

Doesn't Connectivity already solve this issue by bumping the maximum packet size?

commented

I had also did quite a bit of testing to see if my issue was packet-related or mod-count related. Still working on trimming the mod count.

And it seems in some cases, it does not fully solve the issue, if this issue is packet-related.

commented

It seems that it will cause this mod required in both client and server?

It is simply pinned, it will not be done for the time being.

commented

It seems that it will cause this mod required in both client and server?

commented

Packet splitter mixin seems to be failing.

https://pastebin.com/g8hhAEzX

Test this version:
PacketFixer-fabric-1.1.8-1.19.2.test21.zip

commented

Do you have any idea as to when you'd be free to do this? I know I normally shouldn't ask this, but given the nature of this solution, it would probably help quite a few people.

commented

@Linguardium Maybe you can help with getting this on various versions of the mod?

commented

I discovered this in 1.19.2 though, so I'd say 1.19.2 and up should receive this.

commented

Do you have any idea as to when you'd be free to do this? I know I normally shouldn't ask this, but given the nature of this solution, it would probably help quite a few people.

The creators of Forge and Fabric said they were not going to do it because they don't think it is the most optimal way. If a case will create a separate mod.

commented

I will shortly. It looks like a mod had a bad update or something for me currently.

commented

Alright, it looks like I can begin bug hunting now

commented

I'll get back with you in a little while. I also woke up a bit... too early, and I also still haven't found why I'm having an unrelated issue.

commented

Alright, it looks like I can begin bug hunting now

Let me know if I have managed to solve the problem you had last time.

commented

https://gist.github.com/Sunconure11/fbd57261851d30552685e64655cdfa7e

What is the problem? 5 thousand lines are difficult to read.

commented

Packet splitter mixin seems to be failing.

https://pastebin.com/g8hhAEzX

commented

If you find a possible cause, I'll test it again, but I need to lay down for a bit.

commented

Tried to test with Very Many Players to see if I could load in fully, but I just got stuck at the loading screen for the server. Gonna see if Krypton has issues with these changes next. Will take pictures and logs of both issues. But it seems we are getting close.

commented

https://legacy.curseforge.com/members/someaddon/projects

Some of the chunk-related mods may need a look over in regards to compat with VMP and this.

commented

https://pastebin.com/qd5Rc745

Looks like the packet splitter mixin fails with Krypton.

commented

image

VMP gets stuck on loading terrain. There was one last issue, lemme recreate it.

commented

Okay, so it seems the VMP issue occurs not because of VMP, but due to the map itself. It does not want to load in. Although VMP seemed to get me close, as I could hear the sound playing from the world.

commented

latest.log
Server log

commented

latest.log
Client log

commented
commented

Also, regardless of my results, could you check these two mods for any possible incompat issues for the possible solution?

Connectivity is full compatible

commented

If I find any more info, I will post it. But I do not seem to know of anything, aside from maybe some kind of issue with the chunk performance mods

commented

@Linguardium @TonimatasDEV Maybe compare the Forge solution to the one being attempted? Maybe they solved weird issues like this.

commented
commented

It shows me logged in on the log... but I am not physically in game.

TPS could be mods, yes, but I want to see what is going on a bit more. I am planning on further cleanup of this pack, but I've been unable to find someone willing to help me, or has the time to.

A modpack of 831 mods is too big, you would need a very very powerful server, how many cores and ram do you have in the server?

commented

https://pastebin.com/qd5Rc745

Looks like the packet splitter mixin fails with Krypton.

Delete Krypton

commented

@Sunconure11 Does it let you login to the server? Is the TPS problem caused by Packet Fixer or by the number of mods?

commented

It shows me logged in on the log... but I am not physically in game.

TPS could be mods, yes, but I want to see what is going on a bit more. I am planning on further cleanup of this pack, but I've been unable to find someone willing to help me, or has the time to.

commented

Cleanup is a bit hard here too, given a lot of the config stuff I did, and what not.

commented

I might have found someone to help with clean up. If, after this effort, this still happens, I'll come here. I will hold onto a build of Packet Fix created here just until then, just in case any issues pop up in singleplayer while working on this

commented

My PC may be more powerful, but I'd rather wait until I have something like a 5950 for running any servers from my machine, so that I have more cores and threads free.

I am also using Aikar's flags on the server, to help with performance.

commented

Looks like the server is now hitting something that is more likely related to the host themselves. I'll see what can be done there.

commented
16.09 19:53:37 [Server] Netty Epoll Server IO #5/WARN java.lang.OutOfMemoryError: Requested array size exceeds VM limit
16.09 19:53:37 [Server] Netty Epoll Server IO #5/WARN Network error for:packet_handler
16.09 19:53:37 [Server] INFO java.lang.OutOfMemoryError: Requested array size exceeds VM limit
16.09 19:53:37 [Server] Netty Epoll Server IO #5/ERROR Twilight Forest: Exception occurred in netty pipeline
16.09 19:53:37 [Server] INFO java.lang.OutOfMemoryError: Requested array size exceeds VM limit
16.09 19:53:37 [Server] Netty Epoll Server IO #5/ERROR Exception occurred in netty pipeline
16.09 19:53:37 [Server] INFO java.lang.OutOfMemoryError: Requested array size exceeds VM limit
16.09 19:53:37 [Server] Netty Epoll Server IO #5/WARN java.lang.OutOfMemoryError: Requested array size exceeds VM limit
16.09 19:53:37 [Server] Netty Epoll Server IO #5/WARN Network error for:packet_handler
16.09 19:53:37 [Server] INFO java.lang.OutOfMemoryError: Requested array size exceeds VM limit
commented

Server uses 16 gigs, but it is apparently running into this when it is not even using that much RAM.

commented

I have posted it here just in case it is being a bit deceptive and that is not host related.

commented

Server uses 16 gigs, but it is apparently running into this when it is not even using that much RAM.

Better not to fix this problem, as it causes the servers to consume all your ram. That's why it has these limits. Thank you very much for reporting this bug.

commented

Just curious, but do alternate solutions exist that don't eat up so much memory?

commented

I decided to do some digging, by running the server and client without Packet Fixer.

https://pastebin.com/nGyHBF3i

https://pastebin.com/TtZNF6F5

commented

Or at least, are physically possible?

commented

Or at least, are physically possible?

They may be possible, but I have not seen them exist.

commented

@Sunconure11 I have a plan for fix this

commented

Of note is that this mod still has some oddities with Krypton installed, and with all of these tests, I had to uninstall Krypton. I suggest adding some compat there too.

commented

Just curious, but do alternate solutions exist that don't eat up so much memory?

Forge already has the fix for it built into forge itself. this would really only be needed for Fabric. As far as Quilt goes, i am not sure if the mod is being developed for Quilt or if quilt compatibility is assumed, but i would suggest making sure that whatever base it is being developed on is the base it is being tested on. just to make sure the quilt team isnt doing something funky (they have been known to break things with their QSL and such)

commented

I'm mostly on Quilt because there are a few things exclusive to it that I wanted to play with.

commented

Just curious, but do alternate solutions exist that don't eat up so much memory?

Test this version:
PacketFixer-fabric-1.1.8-1.19.2.test3246178234.zip

commented

Also, regardless of my results, could you check these two mods for any possible incompat issues for the possible solution?

https://www.curseforge.com/minecraft/mc-mods/connectivity

https://www.curseforge.com/minecraft/mc-mods/krypton

commented

Hm, we may be close. I can enter, but the TPS seems to be very low, so stuff takes forever to load up on my end. It is possible pregeneration may be needed at this point, but I'll see how a restart of the server handles things first.

commented

No visible errors in the log, aside from can't keep up ones. Gonna try some ideas in the mean time to clean those up.

commented

Also, this issue first came up while testing, but just to make sure of something, but is this my GPU going bad, or something else?

I am starting on some cleanup of the pack (mod count is deceptive, it is actually 648 as of typing this, but that is due to me cleaning stuff up) up until I can get it to a point where I can enter fully and load a world,

image

commented

Hm... I have a suspect mod, but I don't know for certain. However, I am calling it suspect due to it's nature.

https://github.com/MehVahdJukaar/WoodGood

commented

My reason for thinking it could be suspect is due to the sheer amount of recipes it could end up adding in the right situations.

I am going to turn it off, and see what happens.

Edit 1: Okay, so this wasn't the cause. Will look into further clean up later. Though speed was much greater.

commented

Doesn't Connectivity already solve this issue by bumping the maximum packet size?

Looks like according to @TonimatasDEV, it does not really. @embeddedt

commented

@Sunconure11 The version I passed you does not work?

commented

Well, I still can't load into a server fully, as it just stalls in a ghost world, best way to describe it, despite the console saying I'm in.

commented

@Sunconure11 The version I passed you does not work?

It works, but I was referring to Embed.

commented

Singleplayer still runs fine.

commented

While hunting for people to aid me with my pack, someone pointed out this issue to me, and given I have both mods… maybe there’s something here that can be done? terrarium-earth/Chipped#214

commented

Hm, are there any limits on the packet splitter? Just asking while I pursue a few possible leads.