an-anime-team / an-anime-game-launcher

An Anime Game launcher for Linux with telemetry disabling
https://discord.gg/ck37X6UWBp
GNU General Public License v3.0
1.56k stars 65 forks source link

Spends too much time on loading launcher #409

Open Henryxjh opened 3 months ago

Henryxjh commented 3 months ago

After I open the launcher, it appears a transparent window. Minutes later, the main interface show up.

Here's the log:

2024-07-27T15:36:30.000052Z  INFO anime_game_launcher: Starting application (3.10.3)
    at src/main.rs:192

  2024-07-27T15:36:30.180888Z DEBUG anime_launcher_sdk::config: Reading config data from file
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:41

  2024-07-27T15:36:30.182195Z  INFO anime_game_launcher: Set UI language to zh-CN
    at src/main.rs:216

  2024-07-27T15:36:30.188986Z  INFO anime_game_launcher::ui::main: Initializing main window
    at src/ui/main/mod.rs:634

  2024-07-27T15:36:30.239662Z  INFO anime_game_launcher::ui::about: Initializing about dialog
    at src/ui/about.rs:122

  2024-07-27T15:36:30.269009Z  INFO anime_game_launcher::ui::main: Main window initialized
    at src/ui/main/mod.rs:849

  2024-07-27T15:36:30.269276Z  INFO anime_game_launcher::ui::main: Initializing heavy tasks
    at src/ui/main/mod.rs:855

  2024-07-27T15:36:30.269622Z DEBUG anime_game_launcher::background: Downloading background picture
    at src/background.rs:63

  2024-07-27T15:36:30.269591Z TRACE anime_game_core::traits::git_sync: Checking local repository sync state: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components"
    at /run/build/aagl/cargo/vendor/anime-game-core/src/traits/git_sync.rs:21

  2024-07-27T15:36:30.269722Z DEBUG anime_game_core::games::genshin::game: Trying to find version diff for the game
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:134
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }

  2024-07-27T15:36:30.269750Z TRACE anime_game_core::games::genshin::api: Fetching API for China
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/api/mod.rs:12
    in anime_game_core::games::genshin::api::request with game_edition: China
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }

  2024-07-27T15:36:30.269913Z TRACE minreq::connection: Setting up TLS parameters for hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:171

  2024-07-27T15:36:30.269913Z TRACE anime_game_core::traits::git_sync: Checking local repository sync state. Folder: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components". Remote: https://github.com/an-anime-team/components
    at /run/build/aagl/cargo/vendor/anime-game-core/src/traits/git_sync.rs:40

  2024-07-27T15:36:30.269933Z TRACE minreq::connection: Setting up TLS parameters for hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:171

  2024-07-27T15:36:30.272815Z TRACE minreq::connection: Establishing TCP connection to hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:179

  2024-07-27T15:36:30.272820Z TRACE minreq::connection: Establishing TCP connection to hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:179

  2024-07-27T15:36:30.297548Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(7.972246988s))
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:158

  2024-07-27T15:36:30.297658Z TRACE minreq::connection: Timeout requested, it is currently: Ok(None)
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:158

  2024-07-27T15:36:30.304887Z TRACE minreq::connection: Establishing TLS session to hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:183

  2024-07-27T15:36:30.304901Z TRACE minreq::connection: Establishing TLS session to hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:183

  2024-07-27T15:36:30.304926Z TRACE minreq::connection: Writing HTTPS request to hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:185

  2024-07-27T15:36:30.304939Z TRACE minreq::connection: Writing HTTPS request to hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:185

  2024-07-27T15:36:30.304941Z TRACE minreq::connection: Timeout requested, it is currently: Ok(None)
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:158

  2024-07-27T15:36:30.304966Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(7.964820803s))
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:158

  2024-07-27T15:36:30.317915Z TRACE minreq::connection: Reading HTTPS response from hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:190

  2024-07-27T15:36:30.317980Z TRACE minreq::connection: Reading HTTPS response from hyp-api.mihoyo.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:190

  2024-07-27T15:36:30.420896Z DEBUG anime_game_core::games::genshin::game: Trying to get installed game version
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:53
    in anime_game_core::games::genshin::game::get_version with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }

  2024-07-27T15:36:30.426215Z DEBUG anime_game_core::games::genshin::game: return: Ok(4.8.0)
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:51
    in anime_game_core::games::genshin::game::get_version with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }

  2024-07-27T15:36:30.426268Z DEBUG anime_game_core::games::genshin::game: Game version is latest
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:171
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }

  2024-07-27T15:36:30.426285Z DEBUG anime_game_core::games::genshin::game: return: Ok(Latest { version: 4.8.0, edition: China })
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:132
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }

  2024-07-27T15:36:30.426300Z  INFO anime_game_launcher::ui::main: Updated game version status
    at src/ui/main/mod.rs:955

  2024-07-27T15:36:30.649147Z DEBUG anime_game_launcher::background: Background picture is already downloaded. Skipping
    at src/background.rs:73

  2024-07-27T15:36:31.266026Z  INFO anime_game_launcher::ui::preferences::main: Initializing preferences window
    at src/ui/preferences/main.rs:72

  2024-07-27T15:36:31.269006Z DEBUG anime_game_launcher::ui::main: Called main window event: SetGameDiff(Some(Latest { version: 4.8.0, edition: China }))
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: SetGameDiff(Some(Latest { version: 4.8.0, edition: China })), component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:36:31.269821Z DEBUG anime_game_launcher::ui::preferences::main: Called preferences window event: SetGameDiff(Some(Latest { version: 4.8.0, edition: China }))
    at src/ui/preferences/main.rs:101
    in relm4::component::r#async::builder::update_with_view with input: SetGameDiff(Some(Latest { version: 4.8.0, edition: China })), component: "anime_game_launcher::ui::preferences::main::PreferencesApp", id: "0x7ffe88484600"

  2024-07-27T15:36:31.269994Z  INFO anime_game_launcher::ui::preferences::general: Initializing general settings
    at src/ui/preferences/general/mod.rs:539

  2024-07-27T15:36:31.271066Z  INFO anime_game_launcher::ui::migrate_installation: Initializing migration window
    at src/ui/migrate_installation.rs:40

  2024-07-27T15:36:31.295411Z DEBUG anime_game_launcher::ui::preferences::general: Called general settings event: UpdateDownloadedWine
    at src/ui/preferences/general/mod.rs:575
    in relm4::component::r#async::builder::update_with_view with input: UpdateDownloadedWine, component: "anime_game_launcher::ui::preferences::general::GeneralApp", id: "0x7ffe884855d0"

  2024-07-27T15:36:31.295547Z DEBUG anime_game_launcher::ui::preferences::general: Called general settings event: UpdateDownloadedDxvk
    at src/ui/preferences/general/mod.rs:575
    in relm4::component::r#async::builder::update_with_view with input: UpdateDownloadedDxvk, component: "anime_game_launcher::ui::preferences::general::GeneralApp", id: "0x7ffe884855d0"

  2024-07-27T15:36:31.295612Z DEBUG anime_game_launcher::ui::preferences::general: Called general settings event: SetGameDiff(Some(Latest { version: 4.8.0, edition: China }))
    at src/ui/preferences/general/mod.rs:575
    in relm4::component::r#async::builder::update_with_view with input: SetGameDiff(Some(Latest { version: 4.8.0, edition: China })), component: "anime_game_launcher::ui::preferences::general::GeneralApp", id: "0x7ffe884855d0"

  2024-07-27T15:36:31.295692Z  INFO anime_game_launcher::ui::preferences::enhancements: Initializing enhancements settings
    at src/ui/preferences/enhancements/mod.rs:647

  2024-07-27T15:36:31.298883Z TRACE minreq::connection: Setting up TLS parameters for discord.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:171

  2024-07-27T15:36:31.299032Z TRACE minreq::connection: Establishing TCP connection to discord.com.
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:179

  2024-07-27T15:36:31.313125Z TRACE minreq::connection: Timeout requested, it is currently: Ok(None)
    at /run/build/aagl/cargo/vendor/minreq-2.12.0/src/connection.rs:158

  2024-07-27T15:36:31.666270Z  INFO anime_game_launcher::ui::main: App is ready
    at src/ui/main/mod.rs:973

  2024-07-27T15:38:40.703538Z TRACE anime_launcher_sdk: Checking package availability
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:50
    in anime_launcher_sdk::is_available with binary: "gamemoderun"

  2024-07-27T15:38:40.705579Z TRACE anime_launcher_sdk: return: true
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:48
    in anime_launcher_sdk::is_available with binary: "gamemoderun"

  2024-07-27T15:38:40.705693Z TRACE anime_launcher_sdk: Checking package availability
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:50
    in anime_launcher_sdk::is_available with binary: "gamescope"

  2024-07-27T15:38:40.706570Z TRACE anime_launcher_sdk: return: false
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:48
    in anime_launcher_sdk::is_available with binary: "gamescope"

  2024-07-27T15:38:40.710128Z DEBUG anime_game_launcher::ui::preferences::main: Called preferences window event: Toast { title: "获取 Discord RPC 图标失败", description: Some("Connection timed out (os error 110)") }
    at src/ui/preferences/main.rs:101
    in relm4::component::r#async::builder::update_with_view with input: Toast { title: "获取 Discord RPC 图标失败", description: Some("Connection timed out (os error 110)") }, component: "anime_game_launcher::ui::preferences::main::PreferencesApp", id: "0x7ffe88484600"

  2024-07-27T15:38:40.711922Z DEBUG anime_game_launcher::ui::main: Called main window event: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: UpdateLauncherState { perform_on_download_needed: false, show_status_page: true }, component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.711958Z DEBUG anime_launcher_sdk::games::genshin::states: Trying to get launcher state
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/games/genshin/states.rs:155
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.712011Z DEBUG anime_launcher_sdk::components::loader: Getting wine versions
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/components/loader.rs:12
    in anime_launcher_sdk::components::loader::get_wine_versions with index: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components"
    in anime_launcher_sdk::components::loader::get_wine_versions with self: ComponentsLoader { folder: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components" }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.714201Z DEBUG anime_launcher_sdk::games::genshin::states: Trying to get launcher state
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/games/genshin/states.rs:70
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.714255Z DEBUG anime_game_core::games::genshin::game: Trying to find version diff for the game
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:134
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.714295Z DEBUG anime_game_core::games::genshin::game: Trying to get installed game version
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:53
    in anime_game_core::games::genshin::game::get_version with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.717321Z DEBUG anime_game_core::games::genshin::game: return: Ok(4.8.0)
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:51
    in anime_game_core::games::genshin::game::get_version with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.717390Z DEBUG anime_game_core::games::genshin::game: Game version is latest
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:171
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.717411Z DEBUG anime_game_core::games::genshin::game: return: Ok(Latest { version: 4.8.0, edition: China })
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/game.rs:132
    in anime_game_core::games::genshin::game::try_get_diff with self: Game { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen", edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.717492Z DEBUG anime_game_core::games::genshin::voice_data::package: Trying to find version diff for zh-cn voice package
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/voice_data/package.rs:347
    in anime_game_core::games::genshin::voice_data::package::try_get_diff with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.717508Z DEBUG anime_game_core::games::genshin::voice_data::package: Trying to get zh-cn voice package version
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/voice_data/package.rs:237
    in anime_game_core::games::genshin::voice_data::package::try_get_version with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_game_core::games::genshin::voice_data::package::try_get_diff with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.718764Z DEBUG anime_game_core::games::genshin::voice_data::package: Found .version file: 4.7.0
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/voice_data/package.rs:247
    in anime_game_core::games::genshin::voice_data::package::try_get_version with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_game_core::games::genshin::voice_data::package::try_get_diff with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.718811Z DEBUG anime_game_core::games::genshin::voice_data::package: return: Ok(4.7.0)
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/voice_data/package.rs:232
    in anime_game_core::games::genshin::voice_data::package::try_get_version with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_game_core::games::genshin::voice_data::package::try_get_diff with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.718824Z DEBUG anime_game_core::games::genshin::voice_data::package: Package is outdated: 4.7.0 -> 4.8.0
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/voice_data/package.rs:407
    in anime_game_core::games::genshin::voice_data::package::try_get_diff with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.718841Z DEBUG anime_game_core::games::genshin::voice_data::package: return: Ok(Diff { current: 4.7.0, latest: 4.8.0, uri: "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/audio_zh-cn_4.7.0_4.8.0_hdiff_QdLjeERMAoCvExzt.zip", edition: China, downloaded_size: 375041379, unpacked_size: 814032799, installation_path: None, version_file_path: Some("/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese/.version"), temp_folder: None })
    at /run/build/aagl/cargo/vendor/anime-game-core/src/games/genshin/voice_data/package.rs:345
    in anime_game_core::games::genshin::voice_data::package::try_get_diff with self: Installed { path: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese", locale: Chinese, game_edition: China }
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.718862Z DEBUG anime_launcher_sdk::games::genshin::states: return: Ok(VoiceUpdateAvailable(Diff { current: 4.7.0, latest: 4.8.0, uri: "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/audio_zh-cn_4.7.0_4.8.0_hdiff_QdLjeERMAoCvExzt.zip", edition: China, downloaded_size: 375041379, unpacked_size: 814032799, installation_path: None, version_file_path: Some("/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese/.version"), temp_folder: None }))
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/games/genshin/states.rs:153
    in anime_launcher_sdk::games::genshin::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: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.719294Z DEBUG anime_game_launcher::ui::main: Called main window event: SetLoadingStatus(Some(Some("正在计算启动器状态")))
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(Some(Some("正在计算启动器状态"))), component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.719635Z DEBUG anime_game_launcher::ui::main: Called main window event: SetLoadingStatus(Some(Some("正在计算启动器状态: 验 证游戏版本号")))
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(Some(Some("正在计算启动器状态: 验证游戏版本号"))), component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.719872Z DEBUG anime_game_launcher::ui::main: Called main window event: SetLoadingStatus(Some(Some("正在计算启动器状态: 验 证\u{2068}Chinese\u{2069}语音")))
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(Some(Some("正在计算启动器状态: 验证\u{2068}Chinese\u{2069}语音"))), component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.720100Z DEBUG anime_game_launcher::ui::main: Called main window event: SetLauncherState(Some(VoiceUpdateAvailable(Diff { current: 4.7.0, latest: 4.8.0, uri: "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/audio_zh-cn_4.7.0_4.8.0_hdiff_QdLjeERMAoCvExzt.zip", edition: China, downloaded_size: 375041379, unpacked_size: 814032799, installation_path: None, version_file_path: Some("/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese/.version"), temp_folder: None })))
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: SetLauncherState(Some(VoiceUpdateAvailable(Diff { current: 4.7.0, latest: 4.8.0, uri: "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/audio_zh-cn_4.7.0_4.8.0_hdiff_QdLjeERMAoCvExzt.zip", edition: China, downloaded_size: 375041379, unpacked_size: 814032799, installation_path: None, version_file_path: Some("/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/Yuanshen/YuanShen_Data/StreamingAssets/AudioAssets/Chinese/.version"), temp_folder: None }))), component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.720397Z DEBUG anime_game_launcher::ui::main: Called main window event: SetLoadingStatus(None)
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(None), component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:38:40.726697Z  INFO anime_game_launcher::ui::preferences::general::components: Initializing general settings -> components page
    at src/ui/preferences/general/components.rs:239

  2024-07-27T15:38:40.727381Z DEBUG anime_launcher_sdk::components::loader: Getting dxvk versions
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/components/loader.rs:83
    in anime_launcher_sdk::components::loader::get_dxvk_versions with index: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components"
    in anime_launcher_sdk::components::loader::get_dxvk_versions with self: ComponentsLoader { folder: "/home/deck/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components" }

  2024-07-27T15:38:40.736147Z DEBUG anime_game_launcher::ui::preferences::general::components: Called general settings event: UpdateDownloadedWine
    at src/ui/preferences/general/components.rs:329
    in relm4::component::r#async::builder::update_with_view with input: UpdateDownloadedWine, component: "anime_game_launcher::ui::preferences::general::components::ComponentsPage", id: "0x7ffe884842d0"

  2024-07-27T15:38:40.738438Z DEBUG anime_game_launcher::ui::preferences::general::components: Called general settings event: UpdateDownloadedDxvk
    at src/ui/preferences/general/components.rs:329
    in relm4::component::r#async::builder::update_with_view with input: UpdateDownloadedDxvk, component: "anime_game_launcher::ui::preferences::general::components::ComponentsPage", id: "0x7ffe884842d0"

  2024-07-27T15:38:40.746509Z  INFO anime_game_launcher::ui::preferences::gamescope: Initializing gamescope settings
    at src/ui/preferences/gamescope.rs:282

  2024-07-27T15:38:40.758300Z  INFO anime_game_launcher::ui::preferences::enhancements::game: Initializing game settings
    at src/ui/preferences/enhancements/game.rs:146

  2024-07-27T15:38:40.759280Z  WARN anime_launcher_sdk::games::genshin::sessions: Session file doesn't exist. Returning default value
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/games/genshin/sessions.rs:38

  2024-07-27T15:38:40.759304Z  WARN anime_launcher_sdk::games::genshin::sessions: Session file doesn't exist. Returning default value
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/games/genshin/sessions.rs:38

  2024-07-27T15:38:40.760476Z  INFO anime_game_launcher::ui::preferences::enhancements::sandbox: Initializing sandbox settings
    at src/ui/preferences/enhancements/sandbox.rs:321

  2024-07-27T15:38:40.768181Z TRACE anime_launcher_sdk: Checking package availability
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:50
    in anime_launcher_sdk::is_available with binary: "bwrap"

  2024-07-27T15:38:40.768988Z TRACE anime_launcher_sdk: return: true
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:48
    in anime_launcher_sdk::is_available with binary: "bwrap"

  2024-07-27T15:38:40.769696Z  INFO anime_game_launcher::ui::preferences::enhancements::environment: Initializing environment settings
    at src/ui/preferences/enhancements/environment.rs:150

  2024-07-27T15:40:28.217280Z DEBUG anime_game_launcher::ui::main: Called main window event: OpenPreferences
    at src/ui/main/mod.rs:980
    in relm4::component::sync::builder::update_with_view with input: OpenPreferences, component: "anime_game_launcher::ui::main::App", id: "0x7ffe88485a00"

  2024-07-27T15:40:31.159869Z DEBUG anime_launcher_sdk::config: Flushing config data
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:76

  2024-07-27T15:40:31.159918Z DEBUG anime_launcher_sdk::config: Updating config data
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:66

  2024-07-27T15:40:38.425344Z DEBUG anime_launcher_sdk::config: Flushing config data
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:76

  2024-07-27T15:40:38.425396Z DEBUG anime_launcher_sdk::config: Updating config data
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:66
Javatrix commented 3 months ago

At which point does the window render properly? i.e. which log line is printed when that happens, or does it happen even later, at a time which the logs don't cover?

Henryxjh commented 3 months ago

The last INFO in the logs: 2024-07-27T15:38:40.769696Z INFO anime_game_launcher::ui::preferences::enhancements::environment: Initializing environment settings at src/ui/preferences/enhancements/environment.rs:150

Javatrix commented 3 months ago

Do you have a consistent way of reproducing this? Did this issue appear in a new update, or has it always been that way? What desktop environment are you using? (just trying to get as much info as possible, cuz for now I have no idea what could be the issue heh)

Henryxjh commented 3 months ago
  1. In my opinion, this issue may be region related. To reproduce, may be block the connection with Discord, some api to genshin and Github.
  2. I found this issue first several updates ago, and now it still happend.
  3. I'm using it on steamos(arch) with flatpak.