ezKEa / aagl-gtk-on-nix

Run an-anime-game-launcher GTK version on Nix/NixOS!
GNU General Public License v3.0
72 stars 10 forks source link

Sync component index failed #98

Closed Cryolitia closed 6 months ago

Cryolitia commented 6 months ago

log

  2024-03-27T04:57:37.779710Z  INFO anime_game_launcher: Starting application (3.9.4)
    at src/main.rs:157

  2024-03-27T04:57:37.839998Z DEBUG anime_launcher_sdk::config: Reading config data from file
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/config/mod.rs:41

  2024-03-27T04:57:37.840451Z  INFO anime_game_launcher: Set UI language to zh-CN
    at src/main.rs:208

  2024-03-27T04:57:37.842631Z  INFO anime_game_launcher::ui::first_run::main: Initializing first run window
    at src/ui/first_run/main.rs:123

  2024-03-27T04:57:37.846513Z  INFO anime_game_launcher::ui::first_run::main: First run window initialized. App is ready
    at src/ui/first_run/main.rs:171

  2024-03-27T04:57:39.251049Z TRACE anime_launcher_sdk: Checking package availability
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/lib.rs:44
    in anime_launcher_sdk::is_available with binary: "git"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::welcome::WelcomeApp", id: "0x7ffc49a0abf0"

  2024-03-27T04:57:39.253284Z TRACE anime_launcher_sdk: return: true
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/lib.rs:42
    in anime_launcher_sdk::is_available with binary: "git"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::welcome::WelcomeApp", id: "0x7ffc49a0abf0"

  2024-03-27T04:57:39.253323Z TRACE anime_launcher_sdk: Checking package availability
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/lib.rs:44
    in anime_launcher_sdk::is_available with binary: "xdelta3"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::welcome::WelcomeApp", id: "0x7ffc49a0abf0"

  2024-03-27T04:57:39.255476Z TRACE anime_launcher_sdk: return: true
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/lib.rs:42
    in anime_launcher_sdk::is_available with binary: "xdelta3"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::welcome::WelcomeApp", id: "0x7ffc49a0abf0"

  2024-03-27T04:57:39.255488Z TRACE anime_launcher_sdk: Checking package availability
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/lib.rs:44
    in anime_launcher_sdk::is_available with binary: "7z"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::welcome::WelcomeApp", id: "0x7ffc49a0abf0"

  2024-03-27T04:57:39.256168Z TRACE anime_launcher_sdk: return: true
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/lib.rs:42
    in anime_launcher_sdk::is_available with binary: "7z"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::welcome::WelcomeApp", id: "0x7ffc49a0abf0"

  2024-03-27T04:57:39.256254Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: ScrollToDefaultPaths
    at src/ui/first_run/main.rs:177
    in relm4::component::sync::builder::update_with_view with input: ScrollToDefaultPaths, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7ffc49a0a4e8"

  2024-03-27T04:57:42.151777Z DEBUG anime_launcher_sdk::config: Updating config data
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/config/mod.rs:66
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::default_paths::DefaultPathsApp", id: "0x7ffc49a0aa80"

  2024-03-27T04:57:42.152045Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: ScrollToSelectVoiceovers
    at src/ui/first_run/main.rs:177
    in relm4::component::sync::builder::update_with_view with input: ScrollToSelectVoiceovers, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7ffc49a0a4e8"

  2024-03-27T04:57:50.091769Z DEBUG anime_launcher_sdk::config: Updating config data
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/config/mod.rs:66
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::select_voiceovers::SelectVoiceoversApp", id: "0x7ffc49a0abf0"

  2024-03-27T04:57:50.092219Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: ScrollToDownloadComponents
    at src/ui/first_run/main.rs:177
    in relm4::component::sync::builder::update_with_view with input: ScrollToDownloadComponents, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7ffc49a0a4e8"

  2024-03-27T04:57:50.092396Z TRACE anime_game_core::traits::git_sync: Checking local repository sync state: "/home/cryolitia/.local/share/anime-game-launcher/components"
    at /build/cargo-vendor-dir/anime-game-core-1.17.4/src/traits/git_sync.rs:21

  2024-03-27T04:57:50.092453Z  WARN anime_game_core::traits::git_sync: Given local repository folder doesn't exist
    at /build/cargo-vendor-dir/anime-game-core-1.17.4/src/traits/git_sync.rs:24

  2024-03-27T04:57:50.092460Z DEBUG anime_game_core::traits::git_sync: Syncing local patch repository with remote
    at /build/cargo-vendor-dir/anime-game-core-1.17.4/src/traits/git_sync.rs:89

  2024-03-27T04:57:50.092594Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: SetLoadingStatus(Some(Some("正在更新组件索引")))
    at src/ui/first_run/main.rs:177
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(Some(Some("正在更新组件索引"))), component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7ffc49a0a4e8"

  2024-03-27T04:57:50.355268Z ERROR anime_game_launcher::ui::first_run::main: Failed to sync components index
    at src/ui/first_run/main.rs:222

  2024-03-27T04:57:50.355489Z DEBUG anime_launcher_sdk::components::loader: Getting wine versions
    at /build/cargo-vendor-dir/anime-launcher-sdk-1.12.5/src/components/loader.rs:12
    in anime_launcher_sdk::components::loader::get_wine_versions with index: "/home/cryolitia/.local/share/anime-game-launcher/components"
    in anime_launcher_sdk::components::loader::get_wine_versions with self: ComponentsLoader { folder: "/home/cryolitia/.local/share/anime-game-launcher/components" }
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7ffc49a0a8f0"

  2024-03-27T04:57:50.355597Z TRACE os_info::imp: linux::current_platform is called
    at /build/cargo-vendor-dir/os_info-3.7.0/src/linux/mod.rs:9
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7ffc49a0a8f0"

  2024-03-27T04:57:50.363263Z TRACE os_info::imp::lsb_release: lsb_release command returned Output { status: ExitStatus(unix_wait_status(0)), stdout: "Distributor ID:\tNixOS\nDescription:\tNixOS 24.05 (Uakari)\nRelease:\t24.05\nCodename:\tuakari\n", stderr: "No LSB modules are available.\n" }
    at /build/cargo-vendor-dir/os_info-3.7.0/src/linux/lsb_release.rs:64
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7ffc49a0a8f0"

  2024-03-27T04:57:50.363326Z TRACE os_info::imp::lsb_release: Trying to parse "Distributor ID:\tNixOS\nDescription:\tNixOS 24.05 (Uakari)\nRelease:\t24.05\nCodename:\tuakari\n"
    at /build/cargo-vendor-dir/os_info-3.7.0/src/linux/lsb_release.rs:75
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7ffc49a0a8f0"

  2024-03-27T04:57:50.363346Z TRACE os_info::imp::lsb_release: Parsed as 'Some("NixOS")' distribution and 'Some("24.05")' version
    at /build/cargo-vendor-dir/os_info-3.7.0/src/linux/lsb_release.rs:90
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7ffc49a0a8f0"

  2024-03-27T04:57:50.366537Z TRACE os_info::imp: Returning Info { os_type: NixOS, version: Custom("24.05"), edition: None, codename: Some("uakari"), bitness: X64, architecture: Some("x86_64") }
    at /build/cargo-vendor-dir/os_info-3.7.0/src/linux/mod.rs:17
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7ffc49a0a8f0"

  2024-03-27T04:57:50.369278Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: Toast { title: "同步组件索引失败", description: Some("No such file or directory (os error 2)") }
    at src/ui/first_run/main.rs:177
    in relm4::component::sync::builder::update_with_view with input: Toast { title: "同步组件索引失败", description: Some("No such file or directory (os error 2)") }, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7ffc49a0a4e8"

  2024-03-27T04:57:50.370097Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: SetLoadingStatus(None)
    at src/ui/first_run/main.rs:177
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(None), component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7ffc49a0a4e8"

录屏 2024-03-27 13-00-13.webm

NixOS config:

https://github.com/Cryolitia/nixos-config/blob/a0df707f613aa796bbc270444239ffc232e0716b/graphic/software/aagl.nix#L1-L11

Cryolitia commented 6 months ago

related https://github.com/an-anime-team/an-anime-game-launcher/issues/346

Cryolitia commented 6 months ago

It seems to be a upstream closed source part issue. If upstream returned down to fix it. Maybe we should do some dry work like https://github.com/Cryolitia/nur-packages/blob/9a622bd8d294a127bdd9d39aecc63eb95d254c00/pkgs/MaaX/default.nix#L43

ezKEa commented 6 months ago

I cannot reproduce this issue. Can you confirm if this issue was present prior to https://github.com/ezKEa/aagl-gtk-on-nix/commit/ad6c769c7c38265daebb37ac9f21a170bffb754a?

ezKEa commented 6 months ago

I actually do get the same issue when I use nixos-unstable. Yuck. I'll see if I can find the nixpkgs commit responsible.