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> |
||
|---|---|---|
| .. | ||
| pages | ||
| screen | ||
| widgets | ||