Bug 58956 - Exception thrown in DispatchQueue delegates are not shown in Exception Caught dialog
Summary: Exception thrown in DispatchQueue delegates are not shown in Exception Caught...
Status: RESOLVED DUPLICATE of bug 58352
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Runtime ()
Version: 3.8.0 (d15-4)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-22 17:26 UTC by Manish Sinha
Modified: 2017-08-23 06:59 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 58352

Description Manish Sinha 2017-08-22 17:26:31 UTC
Steps to reproduce

1. Create a Cocoa App in VSMac
2. After ViewDidLoad, add the following lines

> var backgroundQueue = new DispatchQueue("nameOfDispatchQueue", false);
> backgroundQueue.DispatchAsync(() => throw new Exception("Exception in background queue"));

3.Run


Expected: Since the dispatched delegate hits an exception, the IDE should notify the user of an unhandled exception
Actual: No exception dialog shows up and the only error shown is in Application Output, only if Continue button is pressed

> 2017-08-22 13:20:28.101 rewnhbwrnh[11509:62569536] 
> Unhandled Exception:
> System.Exception: Exception in background queue
> [ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Exception in background queue


About VS and Ide.log https://gist.github.com/52b8cd932c09d22b203464514f0cb4f8
Comment 1 Timothy Risi 2017-08-23 06:59:41 UTC

*** This bug has been marked as a duplicate of bug 58352 ***