Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Steps to reproduce:
1. Open the sample application "ZoomingPdfViewer".
2. Select the active configuration as Release.
3. Run the application.
4. Observe that FATAL UNHANDLED EXCEPTION appears in the MonoDevelop console.
Actual result: When Run the solution the application does not launch successfully, as it gives the error in the MonoDevelop console, i.e. FATAL UNHANDLED EXCEPTION.
Expected result: The application should run successfully without throwing any error/exception.
Stack trace of the error:
[ERROR] FATAL UNHANDLED EXCEPTION: MonoTouch.UIKit.UIKitThreadAccessException: UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.
at MonoTouch.UIKit.UIApplication.EnsureUIThread () [0x0001f] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:50
at MonoTouch.UIKit.UIView.get_Bounds () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIView.g.cs:1174
at ZoomingPdfViewer.TiledLayerDelegate.DrawLayer (MonoTouch.CoreAnimation.CALayer layer, MonoTouch.CoreGraphics.CGContext context) [0x00000] in <filename unknown>:0
On both Release and Debug mode.
monotouch-samples, branch monotouch-5.4
Fixed in abf3bb1a94d4bf56fd40c8783d1b5b55829128ce (master, since 5.4 branch will be merged there)