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.
Created attachment 18436 [details]
The following code leads to a crash:
var r = new UIGraphicsPdfRenderer (new CGRect (0, 0, 100, 100), UIGraphicsPdfRendererFormat.DefaultFormat);
NSData pdf = r.CreatePdf ((UIGraphicsPdfRendererContext ctxt) =>
var path = new UIBezierPath ();
path.MoveTo (new CGPoint (10, 10));
path.AddLineTo (new CGPoint (90, 10));
path.AddLineTo (new CGPoint (45, 90));
path.Stroke (); //<-- Crash occurs here
The same code works as expected with a UIGraphicsImageRenderer. I believe it is valid drawing code even though this is a PDF. (?)
I have attached the stack trace. I could only get the stack trace by running on a device; trying to run the code in Workbooks or on a Simulator.
Created attachment 18437 [details]
Program demonstrating error
The crash occurs at line 55: path.Stroke();
Created attachment 18685 [details]
Hello Larry, I have been able to reproduce the same crash in Objective-C so this is definitely not our bug, I do not know much about drawing pdfs so it is either a bug in apple sdks or we are missing something else.
Will you continue investigating? or are you ok if I close this bug?
Closing since I am confident this is not our bug. Cheers!