fishfolk / jumpy

Tactical 2D shooter in fishy pixels style. Made with Rust-lang 🦀 and Bevy 🪶
https://fishfolk.org/games/jumpy/
Other
1.65k stars 121 forks source link

LAN hosting panics #1030

Open JeromeSchmied opened 3 weeks ago

JeromeSchmied commented 3 weeks ago

Description

when setting up a new LAN server, game panics soon something with mDNS

To Reproduce

No response

Expected Behavior

No response

Additional Context

No response

Log Messages

jumpy
2024-09-14T16:28:50.037096Z  INFO bevy_winit::system: Creating new window "App" (0v0)
2024-09-14T16:28:50.150076Z  INFO bevy_render::renderer: AdapterInfo { name: "Intel(R) UHD Graphics (TGL GT2)", vendor: 32902, device: 39544, device_type: IntegratedGpu, driver: "Intel open-source Mesa driver", driver_info: "Mesa 24.2.2-arch1.1", backend: Vulkan }
2024-09-14T16:28:50.201354Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux  Arch Linux", kernel: "6.10.9-arch1-2", cpu: "11th Gen Intel(R) Core(TM) i3-1125G4 @ 2.00GHz", core_count: "4", memory: "7.5 GiB" }
2024-09-14T16:28:55.109119Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:28:55.434324Z  INFO magic_ep{me=7hds5wvnqfxhqqye}:magicsock{me=7hds5wvnqfxhqqye}:actor: iroh_net::magicsock: home is now relay https://euw1-1.relay.iroh.network./, was None
2024-09-14T16:28:55.434440Z  INFO pkarr_publish{me=7hds5wvnqfxhqqye}: iroh_net::discovery::pkarr: Publish node info to pkarr relay_url=Some("https://euw1-1.relay.iroh.network./")
2024-09-14T16:28:55.434440Z  INFO magic_ep{me=7hds5wvnqfxhqqye}:magicsock{me=7hds5wvnqfxhqqye}:relay-actor: iroh_net::magicsock::relay_actor: adding connection to relay: https://euw1-1.relay.iroh.network./ for home-keep-alive
2024-09-14T16:28:57.907471Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:28:59.574415Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:28:59.674373Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:28:59.974195Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:00.074511Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:00.241239Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:00.508176Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:00.807917Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:00.874336Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:01.008975Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:01.908309Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:02.274684Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:02.741631Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:02.840988Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:02.941305Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:03.008532Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:03.174699Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:03.441307Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:04.174489Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:04.740876Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:04.808451Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:04.908788Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:05.040888Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:05.441531Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:05.874678Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:06.404314Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:06.508867Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:06.940799Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:07.574784Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:10.140988Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:10.374237Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:10.741545Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:10.807447Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:10.974008Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:12.841415Z  INFO bones_framework::networking::lan: Starting LAN server
2024-09-14T16:29:12.841429Z ERROR bones_framework::logging: A panic occurred panic.payload="called `Result::unwrap()` on an `Err` value: TryFromIntError(())" panic.location="/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mdns-sd-0.10.5/src/service_info.rs:633:39" panic.backtrace=disabled backtrace panic.note="run with RUST_BACKTRACE=1 environment variable to display a backtrace"
thread 'mDNS_daemon' panicked at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mdns-sd-0.10.5/src/service_info.rs:633:39:
called `Result::unwrap()` on an `Err` value: TryFromIntError(())
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2024-09-14T16:29:14.273832Z  WARN bones_framework::networking::lan: Lan: failed to stop server: Error unregistering MDNS service: flume::channel::send failed: sending on a closed channel
2024-09-14T16:29:17.573863Z  INFO bones_framework::networking::lan: New service hosting
2024-09-14T16:29:22.641325Z ERROR bones_framework::logging: A panic occurred panic.payload="Could not register MDNS service.: Msg(\"flume::channel::send failed: sending on a closed channel\")" panic.location="/build/.cargo/git/checkouts/bones-b608aa0d074178a4/bf745aa/framework_crates/bones_framework/src/networking/lan.rs:78:10" panic.backtrace=disabled backtrace panic.note="run with RUST_BACKTRACE=1 environment variable to display a backtrace"
thread 'main' panicked at /build/.cargo/git/checkouts/bones-b608aa0d074178a4/bf745aa/framework_crates/bones_framework/src/networking/lan.rs:78:10:
Could not register MDNS service.: Msg("flume::channel::send failed: sending on a closed channel")
Encountered a panic in exclusive system `bones_bevy_renderer::step_bones_game`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
2024-09-14T16:29:22.650881Z  WARN bones_framework::logging: LogFileGuard dropped - flushing buffered tracing to file, no further tracing will be written to file. If unexpected, make sure bones logging init is done in root scope of app.
MaxCWhitehead commented 1 day ago

Have some changes to how lan discovery works in the pipe - will revisit this issue once those are complete. Thanks for the report!