-
Notifications
You must be signed in to change notification settings - Fork 62
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
Unable to generate PDF with a big data (Ionic 3 app is crashing) #110
Comments
Hi @lukawal-miller , can you please attach logs ? In this example there is a case similar to yours where I attach multiple pages maybe can be of help. |
@cesarvr I've tried attaching debugger to the function, but app did not stop, just crashed. And since it crashed, debugger did not work. Code below:
Is there a better way to get a log for you to look at? Cheers. |
Look what I did: I get my sample project and execute it using: open platforms/iOS/Testing.xcworkspace Once there I run the simulator and hook Safari (I'm using a Mac), then in the console I copy paste your code and got this: Now safari is struggling to draw the resulting base64 because the content is large, so if I have to guess, your crash has to do more with an out of memory error or something similar, in that case you maybe need to treat the resulting data with careful like not printing it in the console or whatever action that may tax your device. Here is a screen shot of the content: Hope this helps :) |
@cesarvr Thanks for your reply. I was able to generate base64 in console (43 MB as base64 string). I've also tried to run our app on a newer device with 4GB RAM... and document got generated without app crashing. |
@cesarvr Guessing there is nothing else we can do? Thanks. |
= Is this crash happening when the promise returns ? |
App is crashing while base64 string gets generated. So promise never returns and app just dies. We are working with Android devices. |
conseguiram resolver de alguma forma? estou com o mesmo problema. |
Our app is crashing while we are trying to generate quite a big PDF file.
Would you mind helping us resolve this issue @cesarvr ?
The text was updated successfully, but these errors were encountered: