Skip to content

[Bug]: MAUI: Animators may only be run on Looper threads exception after updating to 22.1.1 version #4185

@Daxter98

Description

@Daxter98

Describe the bug 🐞

After installing or updating to the latest version of ReactiveUI, an exception is thrown about Looper threads when you create a property and a command to update its value. This is related to UI updates from a thread other than the UI thread.

Step to reproduce

  1. Create a new project
  2. Install ReactiveUI 22.1.1
  3. Create a simple VM with a Property and a Command.
  4. Bind both the command and the property to the UI
  5. See error

Reproduction repository

https://github.com/Daxter98/RxDemoApp

Expected behavior

It should change the value of the property.

Screenshots 🖼️

No response

IDE

Visual Studio Code

Operating system

Linux

Version

No response

Device

Motorola Edge 50 Pro

ReactiveUI Version

22.1.1

Additional information ℹ️

I tried using this builder I found on another issue, #4147 , below the initial maui builder

RxAppBuilder.CreateReactiveUIBuilder()
.WithMaui()
.Build();

Tried using MainThread.BeingInvokeOnMainThread inside the method, setting outputScheduler to RxSchedulers.MainThreadScheduler and nothing worked.

DOTNET VERSION: 10.0-rc2
Platforms Tested: Android, iOS.
Happens in both Release and Debug mode.

If I go back to version 20.4.1 it works perfectly.

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