Comments (3)
Override RxApp.DefaultExceptionHandler if you want a proper control over unhandled exceptions in Rx pipeline.
from avalonia.
About this issue, it seems Reactive doesn't behave quite right, when scheduler has an optimization for the current thread.
See reactiveui/ReactiveUI#1859 and reactiveui/ReactiveUI#2043.
from avalonia.
Override RxApp.DefaultExceptionHandler if you want a proper control over unhandled exceptions in Rx pipeline.
From my point of view the proper handling of an unhandled exception is to terminate an application.
As a workaround I added RxApp.DefaultExceptionHandler to bypass AvaloniaScheduler current thread optimization like that:
RxApp.DefaultExceptionHandler = Observer.Create<Exception>(exception =>
{
Dispatcher.UIThread.Post(() => throw new UnhandledErrorException("Unhandled exception was thrown.", exception),
DispatcherPriority.Send);
});
from avalonia.
Related Issues (20)
- can't excute Task.Run,but I can do that with wpf HOT 2
- Mobile Text Selection Handles HOT 4
- Memory loss with Data Grid when updating ItemSource HOT 2
- Edit & Continue works worse on Avalonia than on other projects
- Backspace incorrectly places caret before linebreak when deleting the last character of a line
- Hidden close & resize buttons when ExtendClientAreaToDecorationsHint is True and WindowsState is Maximized HOT 4
- When using Vulkan rendering for Android, app presents black screen when resuming. HOT 3
- xpat template fire exception during run at android HOT 3
- FuncDataTemplate<T> issue with usercontrols HOT 7
- [Regression] Using DynamicResource in a ResourceDictionary throws XamlException HOT 2
- Upgrading to 11.1 breaks ClickOnce deployment
- PastingFromClipboard Handled is ignored on Astra Linux
- OpenGlException: Window 0 is invalid HOT 1
- DatePicker won't let me click on a date from the combobox if I use BeginMoveDrag on Window_PointerPressed HOT 1
- TimePicker crashes under Simple Theme in 11.2.0-beta1
- Break point can not be hit when any ResourceDictionary exceeds 8192 lines HOT 3
- stack overflow in binding system HOT 13
- The Placeholder Disappears when Setting DisplayMemberBinding on ComboBox
- AttachedToVisualTree or Loaded on UserControl gives Invalid Markup HOT 1
- Constantly High CPU usage on Win10 14393
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.