an-anime-team / the-honkers-railway-launcher

The Honkers Railway launcher for Linux with automatic patching and telemetry disabling
https://discord.gg/ck37X6UWBp
GNU General Public License v3.0
575 stars 15 forks source link

Launcher stuck on loading data - "Session file doesn't exist" #89

Open demsarm opened 8 months ago

demsarm commented 8 months ago

After updating to 1.5.0, I've been having an issue where the launcher gets stuck on loading data. Running it from the terminal tells me it's having some problems with the sessions but I don't know how it really works (hence why I'm here).


(process:14733): Adwaita-WARNING **: 17:59:46.500: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
  2023-11-15T16:59:47.212345Z  WARN anime_launcher_sdk::games::star_rail::sessions: Session file doesn't exist. Returning default value
    at /var/home/observer/.cargo/git/checkouts/anime-launcher-sdk-72c1eacede3fc588/923a389/src/games/star_rail/sessions.rs:38

  2023-11-15T16:59:47.212376Z  WARN anime_launcher_sdk::games::star_rail::sessions: Session file doesn't exist. Returning default value
    at /var/home/observer/.cargo/git/checkouts/anime-launcher-sdk-72c1eacede3fc588/923a389/src/games/star_rail/sessions.rs:38

Well, this is embarrassing.

honkers-railway-launcher had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-48bc0d62-ae6d-47c0-bfd1-09c4eac27790.toml". Submit an issue or email with the subject of "honkers-railway-launcher Crash Report" and include the report as an attachment.

- Homepage: https://github.com/an-anime-team/the-honkers-railway-launcher
- Authors: Nikita Podvirnyy <krypt0nn@vk.com>

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!

With the report file containing the following:

"operating_system" = "EndeavourOS Rolling Release (rolling) [64-bit]"
"crate_version" = "1.5.0"
"explanation" = """
Panic occurred in file '/var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/79fa0ea/src/games/star_rail/voice_data/package.rs' at line 265
"""
"cause" = "internal error: entered unreachable code"
"method" = "Panic"
"backtrace" = """

   0: 0x55b257b98040 - <unresolved>
   1: 0x55b257ced23b - <unresolved>
   2: 0x55b257c67c64 - <unresolved>
   3: 0x55b257c30442 - <unresolved>
   4: 0x7f2ad0d0df69 - <unresolved>
   5: 0x7f2ad0d6c327 - <unresolved>
   6: 0x7f2ad0d0c162 - g_main_context_iteration
   7: 0x7f2ad1a60b16 - g_application_run
   8: 0x55b257cd8297 - <unresolved>
   9: 0x55b257cd83a0 - <unresolved>
  10: 0x55b257d73e2d - <unresolved>
  11: 0x55b257d6c238 - <unresolved>
  12: 0x55b257d70dea - <unresolved>
  13: 0x7f2ad09aacd0 - <unresolved>
  14: 0x7f2ad09aad8a - __libc_start_main
  15: 0x55b257b78ef5 - <unresolved>
  16:        0x0 - <unresolved>"""
jsedge commented 8 months ago

Ran into the same issue on Arch, using the aur package. Taking a peek at where it got the error it seems related to some new voice data changes over in anime-game-core, cleaned up snippet from my debug log before it happened:

  2023-11-16T14:21:00.956513Z DEBUG anime_game_core::games::star_rail::voice_data::package: Trying to find version diff for en-us voice package
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/79fa0ea/src/games/star_rail/voice_data/package.rs:330
    in anime_game_core::games::star_rail::voice_data::package::try_get_diff with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_launcher_sdk::games::star_rail::states::get_from_config
    in relm4::component::sync::builder::update_with_view with input: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }, component: "honkers_railway_launcher::ui::main::App", id: "0x7ffde5f44330"

  2023-11-16T14:21:00.956526Z DEBUG anime_game_core::games::star_rail::voice_data::package: Trying to get en-us voice package version
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/79fa0ea/src/games/star_rail/voice_data/package.rs:222
    in anime_game_core::games::star_rail::voice_data::package::try_get_version with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_game_core::games::star_rail::voice_data::package::try_get_diff with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_launcher_sdk::games::star_rail::states::get_from_config
    in relm4::component::sync::builder::update_with_view with input: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }, component: "honkers_railway_launcher::ui::main::App", id: "0x7ffde5f44330"

  2023-11-16T14:21:00.958122Z DEBUG anime_game_core::games::star_rail::voice_data::package: .version file wasn't found. Predict version. Package size: 3223823082
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/79fa0ea/src/games/star_rail/voice_data/package.rs:241
    in anime_game_core::games::star_rail::voice_data::package::try_get_version with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_game_core::games::star_rail::voice_data::package::try_get_diff with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_launcher_sdk::games::star_rail::states::get_from_config
    in relm4::component::sync::builder::update_with_view with input: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }, component: "honkers_railway_launcher::ui::main::App", id: "0x7ffde5f44330"

  2023-11-16T14:21:00.958140Z DEBUG anime_game_core::games::star_rail::voice_data::package: Predicted version: 1.4.0
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/79fa0ea/src/games/star_rail/voice_data/package.rs:258
    in anime_game_core::games::star_rail::voice_data::package::try_get_version with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_game_core::games::star_rail::voice_data::package::try_get_diff with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_launcher_sdk::games::star_rail::states::get_from_config
    in relm4::component::sync::builder::update_with_view with input: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }, component: "honkers_railway_launcher::ui::main::App", id: "0x7ffde5f44330"

  2023-11-16T14:21:00.958147Z DEBUG anime_game_core::games::star_rail::voice_data::package: return: Ok(1.4.0)
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/79fa0ea/src/games/star_rail/voice_data/package.rs:217
    in anime_game_core::games::star_rail::voice_data::package::try_get_version with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_game_core::games::star_rail::voice_data::package::try_get_diff with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_launcher_sdk::games::star_rail::states::get_from_config
    in relm4::component::sync::builder::update_with_view with input: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }, component: "honkers_railway_launcher::ui::main::App", id: "0x7ffde5f44330"

  2023-11-16T14:21:00.958165Z DEBUG anime_game_core::games::star_rail::voice_data::package: Package is outdated: 1.4.0 -> 1.5.0
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/79fa0ea/src/games/star_rail/voice_data/package.rs:388
    in anime_game_core::games::star_rail::voice_data::package::try_get_diff with self: Installed { path: "~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English", locale: English, game_edition: Global }
    in anime_launcher_sdk::games::star_rail::states::get_from_config
    in relm4::component::sync::builder::update_with_view with input: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }, component: "honkers_railway_launcher::ui::main::App", id: "0x7ffde5f44330"

I deleted the folder it was referencing in there at ~/.local/share/honkers-railway-launcher/HSR/StarRail_Data/Persistent/Audio/AudioPackage/Windows/English to see what would happen, then restarted the launcher, and it re-downloaded the 1.5 version and seems to get past the error and let me download the patch afterwards.

I had pre-loaded the 1.5 patch before upgrading the launcher to the latest on aur if it helps