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> |
||
|---|---|---|
| .. | ||
| button.dart | ||
| dragable_divider.dart | ||
| kb_layout_type_chooser.dart | ||
| list_search_action_listener.dart | ||
| material_mod_popup_menu.dart | ||
| menu_button.dart | ||
| popup_menu.dart | ||
| refresh_wrapper.dart | ||
| remote_toolbar.dart | ||
| tabbar_widget.dart | ||
| titlebar_widget.dart | ||
| update_progress.dart | ||