VolmitSoftware / Wormholes

See what's on the other side
4 stars 0 forks source link

PermissionSync erroring when adding wormholes #54

Closed Mar0xy closed 7 years ago

Mar0xy commented 7 years ago

PermissionSync just keeps doing warnings when people join after adding wormholes how i know is when i take wormholes out it stops when i put it in it begins can this please be looked into cause no other plugin does that

cyberpwnn commented 7 years ago

Do you have a log of this? I do not know how checking if a player has permission or not is considered a warning.

Mar0xy commented 7 years ago

This is the whole warning message that happens when i put wormhole in plugins

[01:33:14 WARN]: [PermissionSync] Task #42 for PermissionSync vv0.1 generated an exception
org.bukkit.plugin.messaging.MessageTooLargeException: Attempted to send a plugin message that was too large. The maximum length a plugin message may be is 32766 bytes (tried to send one that is 32780 bytes long).
        at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:485) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1068) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at me.Leftwitch.PermissionSync.Spigot.PermissionSync.sendPermissionsToBungee(PermissionSync.java:69) ~[?:?]
        at me.Leftwitch.PermissionSync.Spigot.PermissionSync.sendPermissionsToBungee(PermissionSync.java:53) ~[?:?]
        at me.Leftwitch.PermissionSync.Spigot.Util.UpdateTimer.run(UpdateTimer.java:39) ~[?:?]
        at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:738) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot.jar:git-Spigot-3fb9445-6e3cec8]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]

(moderated: formatted log)

cyberpwnn commented 7 years ago

Interesting. This has something to do with sync. You might want to report that to the author. They are sending too much data at once.

However, if for some reason it is wormholes causing PermSync to send such large packets, there might be a quickfix you can do.

Open up Wormholes/config-experimental.yml and set the following

  # The max packet size in bytes.
  # Lower values will force wormholes to send more packets
  # Increasing this could cause bungeecord to reject the packet.
  network_max_packet_size: 32750

See if that helps. If it ends up resolving your issue, i will default that value (it is 4000 by default) to 32750

cyberpwnn commented 7 years ago

I may also have another fix, but it's on my end. Ill keep this issue open for the time being.

Mar0xy commented 7 years ago

Yea that config-experimental fix didn't work

cyberpwnn commented 7 years ago

So yes, it appears your permission plugin is trying to send massive data packets.

If you dont have any bungeecord portals, wormholes doesnt communicate with bungeecord.