ViaVersion / ViaFabric

Client-side and server-side ViaVersion implementation for Fabric
https://viaversion.com/fabric
GNU General Public License v3.0
325 stars 38 forks source link

Server connection Screen cancel button unresponsive #302

Closed MrKinau closed 2 weeks ago

MrKinau commented 7 months ago

/viaversion dump Output

Command does not exist

Console Error

https://mclo.gs/Ft1DLag

Bug Description

After enabling ViaVersion using the button in the server selection screen, every attempt to cancel a connection will take much longer. It's hard to describe, but I made a video to demonstrate it: https://youtu.be/DMvRyInTGaA

Additional Information: This bug appears to happen since 1.20.3 (I've just tested with my old 1.20.1 instance 0.4.10+40-main and the bug wasn't present, also tested with 0.4.11+50-dev (1.20.2) and the bug was present). The connection screen closes exactly at the same time as the log prints: [20:49:40] [Server Connector #2/WARN]: Could not auto-detect protocol for google.com/**.**.**.**:25565 java.util.concurrent.TimeoutException

Steps to Reproduce

  1. Enable ViaVersion
  2. Connect to a server (ideally a server where the connection takes very long, e.g. google.com, no MC server, but it tries to connect very long)
  3. Click on cancel during connection

Expected Behavior

The server selection should almost immediately appear after clicking on cancel

Observed behaviour: The connection screen stays on top and it looks like it's lagging.

Additional Server Info

No response

Checklist

Kichura commented 7 months ago

Confirmed bug.

FlorianMichael commented 7 months ago

Does this issue only appear when using AUTO (auto detection of the server version) as version? It seems like auto detect is still running even after pressing Cancel (and that's causing the lagg.)

MrKinau commented 7 months ago

No. I've tested with AUTO and 1.20/1.20.1 both were laggy.