Skip to content

[Bug]: ReactiveCommand crash on android #4261

@Marioo1357

Description

@Marioo1357

Describe the bug 🐞

I only tested on Android on many physical devices in .net Maui 10, ReactiveUI newest

In app you can see Button1 and Button2 with ReactiveCommands 1 and 2
Bug exists always on only 1st created ReactiveCommand in app, so we can observe that Button1 crash app, Button2 works good

this crash:
ClickCommand1 = ReactiveCommand.CreateFromTask(ClickCommand1Execute);

this also crash
ClickCommand1 = ReactiveCommand.CreateFromTask(ClickCommand1Execute, outputScheduler: RxSchedulers.MainThreadScheduler);

this works fine
ClickCommand1 = ReactiveCommand.CreateFromTask(ClickCommand1Execute, outputScheduler: RxApp.MainThreadScheduler);

Step to reproduce

  1. Open repro app on Android
  2. Click on 'Button 1'
  3. Crash

Reproduction repository

https://github.com/reactiveui/ReactiveUI

Expected behavior

Button click should not crash app

Screenshots 🖼️

No response

IDE

Rider macOS

Operating system

Mac OS

Version

No response

Device

Samsung S23

ReactiveUI Version

22.3.1

Additional information ℹ️

Reproduction 100%

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