Skip to content

[v12] Touch freezing #21141

@Martin12350

Description

@Martin12350

Describe the bug

When touching buttons a few times or multiple of them at one time, one core of the CPU rises to 100%, and touch input no longer reacts. Sometimes it is even visible that the button stays visually like half touched. The application is still working, that means labels changing text, and all works, but the touch no longer reacts (on anything). Seems like a deadlock. Restarting the application fixes the issue, but it can freeze again. Also, during the freeze, checking evtest, the touchscreen is normally working, so it is not a kernel/driver issue.

I tried to use DRM and FbDev, I also tried to use EvDev instead of LibInput. All doing the same.
When changing to v11.3.13, all works without any issue. Updating to v12.0.0 introduces this issue.

I tried to compile v12 with LinuxFrameBuffer from v11, but the result is the same. I suspect some fundamental issue in Avalonia. But maybe I did something wrong during this test.

To Reproduce

Create a simple Avalonia template.
Change the views based on the Running Avalonia on a Raspberry Pi tutorial to support LinuxFrameBuffer.
Add 2 buttons on the view.
Press the first button fast, and it will freeze.
If you try to press both buttons at the same time fast, it will freeze even faster.
Notice the app itself is alive, just the touch no longer reacts.

Expected behavior

Same as in v11.3.13 - no freezing.

Avalonia version

12.0.0

OS

Linux

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions