CollapseLauncher / Collapse

An Advanced Launcher for miHoYo/HoYoverse Games
MIT License
1.4k stars 64 forks source link

[Bug]: Show "Your Internet is Disconnected" when switch game to Star Rail #267

Closed yaxuan97 closed 1 year ago

yaxuan97 commented 1 year ago

Affected Version

Collapse 1.71.10

Bug Behavior

After I switched the game to Honkai:StarRail(Mainland China). Then happened. errorMessage: System.NullReferenceException: Object reference not set to an instance of an object. at CollapseLauncher.MainPage.DownloadBackgroundImage(CancellationToken Token) in W:\GitHub Repos\Collapse\CollapseLauncher\Classes\RegionManagement\RegionManagement.cs:line 179 at CollapseLauncher.MainPage.FetchLauncherLocalizedResources(CancellationToken Token, PresetConfigV2 Preset) in W:\GitHub Repos\Collapse\CollapseLauncher\Classes\RegionManagement\RegionManagement.cs:line 169 at CollapseLauncher.MainPage.TryLoadResourceInfo(ResourceLoadingType resourceType, PresetConfigV2 preset) in W:\GitHub Repos\Collapse\CollapseLauncher\Classes\RegionManagement\RegionManagement.cs:line 135

After that, I can't switch the game to another game. And I cannot access the program settings through the GUI. image

Here is some warning in console: image

I'm sure there's nothing wrong with my internet connection: the other game's pages are accessible and I can run StarRail through the official launcher. I've tried modifying proxy settings and resetting my internet connection, neither of which solved the problem.

log-2023-09-20-sta1.71.10-id1.log DxDiag.txt

Expected Behavior

  1. This problem came out of nowhere this morning. I was playing the game normally last night. I'm not sure what went wrong.
  2. Even if an error occurs, I recommend that the program not prevent the user from switching to other pages that can be accessed normally, such as program settings.

Steps to reproduce

To reproduce the problem, I did:

  1. Reset the program's configuration file (C:\Users\username\AppData\LocalLow\CollapseLauncher\config.ini)
  2. restart the program and switch the game to StarRail

Related Issues

No response

Screenshot(s)

info

Additional Information

In my tests, only the region "Mainland China" has this problem. Selecting "Global" allows you to access the page normally.

Tachibana-Kin commented 1 year ago

I’d like to share something I found. As the same, I couldn't open Honkai Star Rail(China Mainland) with my local network. when I open Collapse with my clash on, this bug (might be) has been solved. 屏幕截图 2023-09-20 104250 Just a normal try. (Because I can't access to Github with local network today.)

yaxuan97 commented 1 year ago

It auto resolved at about 1 hours ago.