node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

PhantomJS crashes with exit code 3221225477

Open ghost opened this issue 8 years ago • 8 comments

Input is HTML with 250 big images.

Error: html-pdf: Received the exit code '3221225477' Fatal Windows exception, code 0xc0000005. PhantomJS has crashed. Please read the bug reporting guide at http://phantomjs.org/bug-reporting.html and file a bug report.

at ChildProcess.respond (C:\xampp\htdocs\SPRO\viewer\node_modules\html-pdf\lib\pdf.js:121:31)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

ghost avatar Jan 02 '18 13:01 ghost

Any Fixes found on this ?

bhavin00 avatar Aug 20 '18 11:08 bhavin00

@bhavin00 have you found a solution yourself?

antwaanh avatar Sep 05 '18 18:09 antwaanh

@antwaanh. ... yes i found solution.. actually it need more server ram when there is big size html .. so, I give my html pdf function to use flexible memory instead of 2gb.. So , It works fine for me

bhavin00 avatar Sep 05 '18 18:09 bhavin00

This is not the issue of this module.. so, I think makers can close

bhavin00 avatar Sep 05 '18 18:09 bhavin00

Thanks for your help @bhavin00

antwaanh avatar Sep 05 '18 19:09 antwaanh

I'm experiencing this same issue. We are using node-html-pdf in our server less application (Azure function apps) which can only have a maximum of 1.5GB ram on a consumption based plan. Is there any way to reduce the amount of ram required?

AnthonyPhan avatar Feb 18 '20 11:02 AnthonyPhan

Please explain the solution! So just bumping the server ram amount will resolve it..?

Hiti3 avatar Oct 06 '21 09:10 Hiti3

Same error, simple html crashed the Azure function App. Can someone explain plz ?

Syn0 avatar May 10 '22 13:05 Syn0