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> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| test | ||
| windows | ||
| .gitattributes | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| build_android.sh | ||
| build_android_deps.sh | ||
| build_fdroid.sh | ||
| build_ios.sh | ||
| ios_arm64.sh | ||
| ios_x64.sh | ||
| ndk_arm.sh | ||
| ndk_arm64.sh | ||
| ndk_x64.sh | ||
| ndk_x86.sh | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
| run.sh | ||
flutter_hbb
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples and guidance on mobile development, and a full API reference.