OpenFileDialog crashes program
See original GitHub issueWhen canceling on OpenFileDialog on linux the application crashes. Steps to reproduce:
- Open OpenFileDialog
- Press Cancel
expected behavior: the application does not crash behavior: the application crashes
Exception
Unhandled exception. ReactiveUI.UnhandledErrorException: An object implementing IHandleObservableErrors (often a ReactiveCommand or ObservableAsPropertyHelper) has errored, thereby breaking its observable pipeline. To prevent this, ensure the pipeline does not error, or Subscribe to the ThrownExceptions property of the object in question to handle the erroneous case. ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source') at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at FrameTimeHandler.ViewModels.MainWindowViewModel.<.ctor>b__94_0() --- End of inner exception stack trace --- at ReactiveUI.RxApp.<>c__DisplayClass9_0.<.cctor>b__2() in d:\a\1\s\src\ReactiveUI\RxApp.cs:line 103 at System.Reactive.Concurrency.Scheduler.Invoke(IScheduler scheduler, Action action) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\Scheduler.Simple.cs:line 254 at System.Reactive.Concurrency.Scheduler.<>c.<Schedule>b__74_0(IScheduler s, Action a) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\Scheduler.Simple.cs:line 37 at Avalonia.Threading.AvaloniaScheduler.Schedule[TState](TState state, TimeSpan dueTime, Func`3 action) at System.Reactive.Concurrency.LocalScheduler.Schedule[TState](TState state, Func`3 action) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\LocalScheduler.cs:line 32 at System.Reactive.Concurrency.Scheduler.Schedule(IScheduler scheduler, Action action) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\Scheduler.Simple.cs:line 37 at ReactiveUI.RxApp.<>c.<.cctor>b__9_1(Exception ex) in d:\a\1\s\src\ReactiveUI\RxApp.cs:line 108 at System.Reactive.AnonymousSafeObserver`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\AnonymousSafeObserver.cs:line 44 at System.Reactive.ObserveOnObserverNew`1.DrainStep(ConcurrentQueue`1 q) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ScheduledObserver.cs:line 577 at System.Reactive.ObserveOnObserverNew`1.DrainShortRunning(IScheduler recursiveScheduler) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ScheduledObserver.cs:line 509 at System.Reactive.ObserveOnObserverNew`1.<>c.<.cctor>b__17_0(IScheduler scheduler, ObserveOnObserverNew`1 self) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ScheduledObserver.cs:line 497 at Avalonia.Threading.AvaloniaScheduler.<>c__DisplayClass2_1`1.<Schedule>b__1() at Avalonia.Threading.JobRunner.Job.Avalonia.Threading.JobRunner.IJob.Run() at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) at Avalonia.X11.X11PlatformThreading.CheckSignaled() at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken) at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) at FrameTimeHandler.Program.Main(String[] args)Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Open file dialog cannot show and application always crashes
OpenFileDialog is a low level component in Windows, so error messages are logged in Windows Event Viewer: "Windows Event Viewer" => "Windows ...
Read more >Crash when pick a file with OpenFileDialog - System. ...
Describe the bug Program crash when pick a file with OpenFileDialog. I can't replicate this on my machine and never experienced this, ...
Read more >File Open and File Save dialogs crash various programs ...
Various programs crash when attempting to open or save a file. It seems to be the moment the File Open dialog, or the...
Read more >Crash when use the function "OpenFiledialog"
I just meet a crash today when I fixed another crash, ... I try to import csv with open a file dialog, it...
Read more >Opening file dialog causes a crash with various ...
When performing opening operations, the Autodesk product will crash. This includes the following operations: Open Upload Load Adding a data ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
DotNet Core 3.1.301 Avalonia version: 0.9.11 OS: Ubuntu 19.04 64bit Build configurations tried: both release and debug Source code link: https://github.com/FlexxxerAlex/frametime-handler
No, it is not: https://github.com/FlexxxerAlex/frametime-handler/blob/master/FrameTimeHandler/ViewModels/MainWindowViewModel.cs#L285-L287