[Wayland] Window close fails with LateInitializationError on RustDesk 1.4.3 #3739

Closed
opened 2026-02-21 01:35:18 -05:00 by deekerman · 2 comments
Owner

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. Install latest RustDesk from AUR (1.3.4) on Arch/Wayland. (rustdesk-bin)
  2. Run RustDesk natively under Wayland.
  3. Attempt to close the window via titlebar X, Alt+F4.
  4. Clicking the x on an active connection window appears to end the session (window goes black), but nothing else happens. Clicking the X (or minimize) on the main window has no effect.
  5. Same effect whether tiled or floating

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: 0 as reported by hyprctl clients)
Omarchy 3.10

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) <asynchronous suspension> #3 _DesktopTabState._saveFrame (package:flutter_hbb/desktop/widgets/tabbar_widget.dart:409) <asynchronous suspension> #4 _DesktopTabState.onWindowClose (package:flutter_hbb/desktop/widgets/tabbar_widget.dart:462) <asynchronous suspension> ### How to Reproduce Steps to reproduce the behavior: 1. Install latest RustDesk from AUR (`1.3.4`) on Arch/Wayland. (rustdesk-bin) 2. Run RustDesk natively under Wayland. 3. Attempt to close the window via titlebar X, Alt+F4. 4. Clicking the x on an active connection window appears to end the session (window goes black), but nothing else happens. Clicking the X (or minimize) on the main window has no effect. 5. Same effect whether tiled or floating ### 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: 0` as reported by `hyprctl clients`) Omarchy 3.10
deekerman 2026-02-21 01:35:18 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Oct 24, 2025):

https://github.com/rustdesk/rustdesk/pull/13265

@rustdesk commented on GitHub (Oct 24, 2025): https://github.com/rustdesk/rustdesk/pull/13265
Author
Owner

@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.

@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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#3739
No description provided.