Skip to content

[Linux] Fix dead lock after SetDataAsync from clipboard in X11Clipboard.cs #20479

@SweetLoverFT

Description

@SweetLoverFT

Describe the bug

Call "Clipboard.SetTextAsync" will create a dead lock on UOS system.
UOS system is a Debian10-based Chinese system

To Reproduce

  1. Prepare a PC and a USB
  2. Download system image from "https://www.chinauos.com/resource/download-professional"
  3. Install Chinese UOS system (Debian 10) on your PC, you can choose an intel or amd cpu chipset
  4. Try to use the call:
Dispatcher.UIThread.Post(async () =>
{
    var board = MainWindow.Inst.Clipboard;
    if (board != null)
        await board.SetTextAsync(text);    // Dead lock
});

Expected behavior

board.SetTextAsync(text) could not cause a dead lock

Avalonia version

11.3.11

OS

Linux

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions