question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.ArgumentOutOfRangeException in ReactiveCollectionMixins

See original GitHub issue

I’ve received this bug report today that makes my app crash: https://github.com/zkSNACKs/WalletWasabi/issues/750

There are way too many turtles down as to spot at first sight what’s causing this issue. While I am investigating it, I was hoping someone else have a better eye to spot the problem here, due to the familiarity with the code base.

Relevant lines:

  • Avalonia.Base\Threading\AvaloniaScheduler.cs:line 40
  • Avalonia.Base\Threading\Dispatcher.cs:line 65
  • Avalonia.Controls\Application.cs:line 237

Stack trace:

2018-10-21 17:08:01 CRITICAL Program: System.ArgumentOutOfRangeException: Index must be within the bounds of the List.
Parameter name: index
   at System.Collections.Generic.List`1.Insert(Int32 index, T item)
   at ReactiveUI.Legacy.ReactiveDerivedCollection`2.onSourceCollectionChanged(NotifyCollectionChangedEventArgs args) in D:\a\1\s\src\ReactiveUI\ReactiveCollectionMixins.cs:line 494
   at System.Reactive.AnonymousSafeObserver`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\AnonymousSafeObserver.cs:line 46
   at System.Reactive.ScheduledObserver`1.Run(Object state, Action`1 recurse) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ScheduledObserver.cs:line 254
   at System.Reactive.Concurrency.Scheduler.InvokeRec1[TState](IScheduler scheduler, Pair`2 pair) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\Scheduler.Recursive.cs:line 89
   at Avalonia.Threading.AvaloniaScheduler.<>c__DisplayClass2_1`1.<Schedule>b__1() in C:\projects\Avalonia\src\Avalonia.Base\Threading\AvaloniaScheduler.cs:line 40
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in C:\projects\Avalonia\src\Avalonia.Base\Threading\JobRunner.cs:line 40
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken)
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in C:\projects\Avalonia\src\Avalonia.Base\Threading\Dispatcher.cs:line 65
   at Avalonia.Application.Run(Window mainWindow) in C:\projects\Avalonia\src\Avalonia.Controls\Application.cs:line 237
   at AvalonStudio.Shell.Shell.StartShellApp[TAppBuilder,TMainWindow](TAppBuilder builder, String appName, IDockFactory layoutFactory, Func`1 dataContextProvider) in C:\Users\user\Desktop\WalletWasabi\WalletWasabi.Dependencies\AvalonStudio.Shell\src\AvalonStudio.Shell\Shell.cs:line 14
   at WalletWasabi.Gui.Program.Main(String[] args) in C:\Users\user\Desktop\WalletWasabi\WalletWasabi.Gui\Program.cs:line 26

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nopara73commented, Oct 21, 2018

I need to be much more careful from the 1.0 release. This was very bad.

1reaction
danwalmsleycommented, Oct 21, 2018

Good to hear its fixed I was getting worried 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

wpf - C# Strange Instance of 'System. ...
Basically the value of _counter is being set to an unexpected value somewhere else in the code due to multi threading and that...
Read more >
ArgumentOutOfRangeException Class (System)
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked...
Read more >
C# Exception Guide: ArgumentOutOfRangeException
An exception is a runtime error in a program that violates a system or application constraint, or a condition that is not expected...
Read more >
System.ArgumentOutOfRangeException when setting ...
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked...
Read more >
Error: System.ArgumentOutOfRangeException
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found