Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: LockRecursionException: Recursive read lock acquisitions not allowed in this mode #3932

Open
dmalukov opened this issue Nov 13, 2024 · 0 comments
Labels

Comments

@dmalukov
Copy link

dmalukov commented Nov 13, 2024

Describe the bug 🐞

During one of nightly stress tests our app got crashed with the following exception.
It's not clear what exactly happened and how to reproduce it.

System.Threading.LockRecursionException: Recursive read lock acquisitions not allowed in this mode.
   at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout)
   at WinRT.Cache.Create(IObjectReference obj, Int32 index, WeakReference`1 state)
   at WinRT.EventSource`1.Subscribe(TDelegate del)
   at System.Reactive.Concurrency.DispatcherQueueScheduler.ScheduleSlow[TState](TState state, TimeSpan dueTime, Func`3 action) in /_/src/ReactiveUI.Maui/WinUI/DispatcherQueueScheduler.cs:line 129
   at System.Reactive.Concurrency.DispatcherQueueScheduler.Schedule[TState](TState state, TimeSpan dueTime, Func`3 action) in /_/src/ReactiveUI.Maui/WinUI/DispatcherQueueScheduler.cs:line 109
   at System.Reactive.Concurrency.Scheduler.ScheduleAction[TState](IScheduler scheduler, TState state, TimeSpan dueTime, Action`1 action)
   at System.Reactive.Concurrency.Scheduler.SchedulePeriodicRecursive`1.Tick(Int32 command, Action`2 recurse)
   at System.Reactive.Concurrency.Scheduler.<>c__78`1.<ScheduleAction>b__78_0(IScheduler _, ValueTuple`2 tuple)
   at System.Reactive.Concurrency.DispatcherQueueScheduler.<>c__DisplayClass12_0`1.<ScheduleSlow>b__0(DispatcherQueueTimer s, Object e) in /_/src/ReactiveUI.Maui/WinUI/DispatcherQueueScheduler.cs:line 131
   at ABI.Windows.Foundation.TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void* thisPtr, TSenderAbi sender, TResultAbi args)

We have a crash dump with a $stowedexception, so if it may be useful, we can share it with you.

Reproduction repository

https://github.com/reactiveui/ReactiveUI

IDE

Visual Studio 2022

Operating system

Windows 10 x64

ReactiveUI Version

ReactiveUI.WinUI 21.1.1

@dmalukov dmalukov added the bug label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant