mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
[Wayland] Window close fails with LateInitializationError on RustDesk 1.4.3 #3739
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#3739
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pm-global on GitHub (Oct 22, 2025).
Originally assigned to: @fufesou on GitHub.
Bug Description
When running RustDesk as a native Wayland client on Hyprland, attempting to close any RustDesk window (titlebar X, Alt+F4, or Hyprland close) fails. The window remains open and the following Flutter error is printed:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LateInitializationError: Local 'position' has not been initialized.
#0 LateError._throwLocalNotInitialized (dart:_internal-patch/internal_patch.dart:203)
#1 saveWindowPosition.setPreFrame (package:flutter_hbb/common.dart)
#2 saveWindowPosition (package:flutter_hbb/common.dart:1767)
#3 _DesktopTabState._saveFrame (package:flutter_hbb/desktop/widgets/tabbar_widget.dart:409)
#4 _DesktopTabState.onWindowClose (package:flutter_hbb/desktop/widgets/tabbar_widget.dart:462)
How to Reproduce
Steps to reproduce the behavior:
1.3.4) on Arch/Wayland. (rustdesk-bin)Expected Behavior
The window should close normally when requested via UI or window manager.
Operating system(s) on local (controlling) side and remote (controlled) side
Arch Linux
RustDesk Version(s) on local (controlling) side and remote (controlled) side
1.4.3 -> ?
Screenshots
no screenshots, nothing happens.
Additional Context
Windowing: Native Wayland (
xwayland: 0as reported byhyprctl clients)Omarchy 3.10
@rustdesk commented on GitHub (Oct 24, 2025):
https://github.com/rustdesk/rustdesk/pull/13265
@aspasia-patron commented on GitHub (Nov 2, 2025):
@rustdesk I was searching for project's release cycle policy, but wasn't able to find anything. How long would it take until 1.4 is released? Have you considered releasing a minor version with bugfixes and such? This bug makes the flatpak experience unusable atm.