RustDesk/flutter/lib/desktop
julian 2061db10fc fix(linux): guard window queries during close to prevent SIGSEGV
When a RustDesk window is closing on Linux, the window_manager plugin's
get_window() can return null during widget destruction. The Flutter code
called saveWindowPosition/saveFrameState without checking if the window
was still valid, causing SIGSEGV crashes.

Changes:
- Guard saveWindowPosition() and saveFrameState() calls during close
- Add null checks before window geometry queries in tabbar_widget.dart
- Wrap common.dart window operations with validity checks

Companion PR: rustdesk-org/window_manager fix/linux-nullptr-guards-sigsegv
  — adds C++ nullptr guards in the plugin that this Flutter code depends on.
  Both PRs are needed together to fully resolve the SIGSEGV crashes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-01 07:00:36 +08:00
..
pages refact(password): Store permanent password as hashed verifier (#14619) 2026-03-26 14:49:54 +08:00
screen terminal works basically. (#12189) 2025-07-01 13:12:55 +08:00
widgets fix(linux): guard window queries during close to prevent SIGSEGV 2026-05-01 07:00:36 +08:00