You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
Our applications rely on third-party libraries. Some of them have unobserved task exceptions. We do handle them by subscribing to TaskScheduler.UnobservedTaskException and marking exceptions as Observed.
TaskScheduler.UnobservedTaskException += OnTaskUnhandledException;
...
private void OnTaskUnhandledException(object sender, UnobservedTaskExceptionEventArgs args)
{
var aggregateException = args.Exception;
var baseException = aggregateException.GetBaseException();
if (IsIgnorableException(baseException)
{
_logger.Warn(baseException);
args.SetObserved();
return;
}
}
However such exceptions are still caught and reported by HockeyApp. Observered task exceptions make big noise in the AppCenter because we cannot distinguish observed and unobserved task exceptions.
We believe that HockeyApp must not report observed task exceptions as unobserved. Please do not report observed task exceptions at all.
As you can see, we're almost ready to merge #131. While we discussed this issue and the PR, we noticed that we don't fully understand how you are using UnobservedTaskException. Specifically, we are wondering how you can register a handler for UnobservedTaskException and have the exception not be of that observed type. Are you changing the state of the exception while handling it at some point?
We'd love to learn how you are using them.
Our applications rely on third-party libraries. Some of them have unobserved task exceptions. We do handle them by subscribing to TaskScheduler.UnobservedTaskException and marking exceptions as Observed.
However such exceptions are still caught and reported by HockeyApp. Observered task exceptions make big noise in the AppCenter because we cannot distinguish observed and unobserved task exceptions.
We believe that HockeyApp must not report observed task exceptions as unobserved. Please do not report observed task exceptions at all.
Bug is in this line of CrashManager.cs:
e.Observed is not checked
The text was updated successfully, but these errors were encountered: