Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on iOS8.1 #27

Open
gpdawson opened this issue Nov 5, 2014 · 5 comments
Open

Crashes on iOS8.1 #27

gpdawson opened this issue Nov 5, 2014 · 5 comments

Comments

@gpdawson
Copy link

gpdawson commented Nov 5, 2014

I have been using this code for a while and it worked perfectly. However, when I try to run the same code on iOS8.1 there is a crash in the printToPDF function on the call to drawPageAtIndex.

Is anyone else seeing the same problem?

@gpdawson
Copy link
Author

gpdawson commented Nov 9, 2014

It looks like it is some kind of bug in iOS8, so likely nothing to do with NDHTMLtoPDF. For example see http://stackoverflow.com/questions/25822664/ios8-uiprintpagerenderer-hangs

@iclems
Copy link
Owner

iclems commented Nov 24, 2014

Seems very similar to: brentnycum/BNHtmlPdfKit#12
Have you figured out the origin?

@gpdawson
Copy link
Author

I still haven't figured out the cause - nor found a workaround, despite using a tech support incident with Apple. It doesn't occur in all circumstances. If I create a minimal project to try to replicate the error, then it runs ok. It could relate to multi-threading (I run PDF generation in background). But I also get this same crash even when the PDF content is a single line of text, so pretty sure it's not related to #12.

@gpdawson
Copy link
Author

It turns out that while this crashes in the simulator, it runs ok on a device. Hence clearly it's a simulator bug. Can't believe it took me so long to try this code on an actual device. :-/

@seriyvolk83
Copy link

It does not work at all. Crashes without any reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants