Bug 4566 - ZoomingPDFViewer does not launch successfully, as it gives the FATAL UNHANDLED EXCEPTION in the MonoDevelop console.
Summary: ZoomingPDFViewer does not launch successfully, as it gives the FATAL UNHANDLE...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 5.3.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2012-04-20 13:04 UTC by PJ
Modified: 2012-04-20 15:16 UTC (History)
2 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 FIXED

Description PJ 2012-04-20 13:04:40 UTC
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

Found on:
MT 5.3.3
MD 2.8.8.4
Mono 2.10.9
Mac 10.7.3
On both Release and Debug mode.
monotouch-samples, branch monotouch-5.4
Comment 1 Sebastien Pouliot 2012-04-20 15:16:04 UTC
Fixed in abf3bb1a94d4bf56fd40c8783d1b5b55829128ce (master, since 5.4 branch will be merged there)