ViaRewind icon indicating copy to clipboard operation
ViaRewind copied to clipboard

[Bungee] 1.7 Duplicate Scoreboard Crash

Open linsaftw opened this issue 4 years ago • 11 comments

Environment: Proxy: FlameCord (Travertine) Server: SportPaper 1.8 Affected Client: Vanilla 1.7.10 Running ViaRewind (1.5.3) & ViaVersion (3.2.1) on Bungee

Steps:

  1. Join a server that defines a scoreboard objective.
  2. Switch to a server that defines a scoreboard objective with the same name.
  3. Client crashes because of "Duplicate" scoreboard entry.

This doesn't happen when using ViaRewind on all Spigot servers. This only happens on Bungee version.

linsaftw avatar Apr 24 '21 14:04 linsaftw

Logger - ViaRewind Objective Handler:

image

One of this crashes appear randomly when switching servers.

Crash 1: java.lang.IllegalArgumentException: A team with the name 'line: §c1§8/§420' already exists!

Crash 2: java.lang.IllegalArgumentException: An objective with the name '2LSScoreboard' already exists!

As you can see in the log, the objective is added twice without it getting removed.

linsaftw avatar Apr 24 '21 15:04 linsaftw

Alright, the problem seems to be that the connection re-inits on server switch which causes Bungee to not detect the old objectives before the switch was done so it can't remove the old objective.

Before adding the "crashing" objective i am receiving a scoreboard packet (mode 1) which means the server is trying to remove the objective but ViaRewind doesn't detect it as an existing objective.

I think this can be fixed by passing the old UserConnection scoreboard values to the new one or removing all scoreboard values before switching to a new server.

linsaftw avatar Apr 24 '21 15:04 linsaftw

Same issue here

LucianoOrtega avatar Jul 27 '21 17:07 LucianoOrtega

Same issue here

BF138 avatar Jul 27 '21 17:07 BF138

Please fix it! I have the same issue here :(

TidySnakeSL-alt avatar Jul 27 '21 21:07 TidySnakeSL-alt

Same issue anyone knows?

Jojanyu15 avatar Sep 07 '21 19:09 Jojanyu15

????????????????????????????

iLucasUS avatar Feb 04 '22 14:02 iLucasUS

The issue is still happening. The plugin cannot be run in BungeeCord if the sub-servers have same Scoreboards.

linsaftw avatar Mar 05 '22 15:03 linsaftw

Good luck!

TidySnakeSL-alt avatar Mar 05 '22 15:03 TidySnakeSL-alt

Try Protocol Support?

HowardZHY avatar Mar 05 '22 16:03 HowardZHY

Try Protocol Support?

I just switched to ProtocolSupport on all Spigot servers and ViaVersion on BungeeCord. CPU Usage is lower for some reason.

linsaftw avatar Mar 05 '22 16:03 linsaftw