ShardBrowser icon indicating copy to clipboard operation
ShardBrowser copied to clipboard

The interface is not displayed when there is no internet connection.

Open aivx opened this issue 1 month ago • 2 comments

If you launch the program when there is no internet connection, the program’s interface will not be displayed, even though the program itself has already downloaded all the necessary files from the internet earlier.

Image Image

aivx avatar Oct 21 '26 10:10 aivx

Still present in v2.1.0 (9174751). In src-tauri/src/runtime.rs, fetch_manifest builds reqwest::Client::new() (line 277), which has no connect or request timeout. On a network that accepts the connection but never answers (captive portal, a blocked CDN, a stalled VPN), the first-run gate awaits it forever, so the window stays blank. download_and_extract_inner (line 849) uses the same client, so a stalled engine download never fails either.

A fix that works in a fork: build the manifest client with connect_timeout(4s) and timeout(8s), so a failure returns the same empty manifest an unreachable server already does. Give the download client connect_timeout(10s) and read_timeout(60s) instead of a total timeout, because the archive is hundreds of megabytes. launcher_update_check in the same file (client built at line 1048) already bounds its request with a 6 s timeout.

anhtahaylove avatar Oct 23 '26 15:10 anhtahaylove

in v2.1.2

Kr1tos avatar Oct 25 '26 07:10 Kr1tos