Supreeeme / xwayland-satellite

Xwayland outside your Wayland
Mozilla Public License 2.0
94 stars 4 forks source link

Crash when running .NET 4.7 application through mono #22

Closed Waelwindows closed 1 month ago

Waelwindows commented 1 month ago

Possible duplicate of #16. xwayland-satelite crashes when I enable MAVLink passthrough in MissionPlanner.

Here's the log when running w/ RUST_LOG=debug debug_log.txt

Backtrace:

2024-05-23T15:09:24.033Z WARN  xwayland_satellite::xstate > unrecognized message: Atom { res_id: 250 }
ignoring non newvalue for property Atom { res_id: 248 }
 2024-05-23T15:09:32.758Z WARN  xwayland_satellite::xstate > unrecognized message: Atom { res_id: 250 }
 2024-05-23T15:09:32.759Z WARN  xwayland_satellite::xstate > unrecognized message: Atom { res_id: 250 }
 2024-05-23T15:09:33.565Z WARN  xwayland_satellite::xstate > unrecognized message: Atom { res_id: 250 }
thread 'main' panicked at src/xstate.rs:40:65:
called `Result::unwrap()` on an `Err` value: Protocol(X(Window(ValueError { response_type: 0, error_code: 3, sequence: 212, bad_value: 4197475, minor_opcode: 0, major_opcode: 20, pad: 1 }), Some("x::GetProperty")))
stack backtrace:
   0:     0x55cad510da27 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4886110ae7835fd2
   1:     0x55cad513c260 - core::fmt::write::h6fab83f0f5bc0c8f
   2:     0x55cad51264a5 - std::io::Write::write_fmt::h64824cb874054607
   3:     0x55cad510d7f4 - std::sys_common::backtrace::print::hb8fea9d041077138
   4:     0x55cad510e367 - std::panicking::default_hook::{{closure}}::hc60f0f690c67943c
   5:     0x55cad510e0c7 - std::panicking::default_hook::h56281bcc5d6e2f17
   6:     0x55cad510e8d8 - std::panicking::rust_panic_with_hook::hd61e30fe5971d187
   7:     0x55cad510e7ba - std::panicking::begin_panic_handler::{{closure}}::h95d2684e28f89fd2
   8:     0x55cad510dc56 - std::sys_common::backtrace::__rust_end_short_backtrace::h48780d898316fff8
   9:     0x55cad510e504 - rust_begin_unwind
  10:     0x55cad4eff2d5 - core::panicking::panic_fmt::hdb89b5c14a056cec
  11:     0x55cad4eff773 - core::result::unwrap_failed::h850510ea6c159887
  12:     0x55cad4f814fd - xwayland_satellite::xstate::PropertyCookieWrapper<F>::resolve::h4e2e320bb6f7fe7a
  13:     0x55cad4f845b0 - xwayland_satellite::xstate::XState::handle_events::h756e1c1ff580859c
  14:     0x55cad4f35833 - xwayland_satellite::main::h0809fa617a28476c
  15:     0x55cad4f4926e - xwayland_satellite::main::hbae59271ffcadeb5
  16:     0x55cad4f575b3 - std::sys_common::backtrace::__rust_begin_short_backtrace::hbc3f149de41fb0bc
  17:     0x55cad4f5ffd9 - std::rt::lang_start::{{closure}}::h665dd6208aee118b
  18:     0x55cad510e404 - std::panicking::try::ha86251cf5daa9bea
  19:     0x55cad50ff48b - std::rt::lang_start_internal::ha6a51778162f8d22
  20:     0x55cad4f49455 - main
  21:     0x7f22fe56d10e - __libc_start_call_main
  22:     0x7f22fe56d1c9 - __libc_start_main@@GLIBC_2.34
  23:     0x55cad4effb45 - _start
  24:                0x0 - <unknown>

Reproduction Steps (nix):

  1. Run xwayland-satelite
  2. Run MissionPlanner from nixpkgs using nix-shell -p mission-planner then running env DISPLAY=:0 mission-planner
  3. When MissionPlanner finishes initializing, press Ctrl+F
  4. Click on the MAVLink button (1st column, 6th row)
  5. Click on the top-left dropdown menu and select TCP Host- 14550
  6. Click on the "OK" button
  7. Press "OK" when the pop up appears
  8. Observe crash

Info:

Supreeeme commented 1 month ago

Believe this should be fixed now.