'Electron app crash after trying to download embedded pdf

I have an Electron app with this in my ejs file

<body>
    <iframe 
        src="/recursos/pdf/orden.pdf"
        width="800px"
        height="600px"
        style="border: none;"    
    />
</body>

on my controller I build a pdf with pdfkit-table and it has an editable form. that controllers render the mentioned view and the view shows the pdf created in the controller.

the problem is that everytime I write in the pdf's form and I try to download it, the app crashes and visual studio send me the next error:

npm ERR! code ELIFECYCLE
npm ERR! errno 3221225477
npm ERR! [email protected] start: `electron main.js`
npm ERR! Exit status 3221225477

I don't know what is going on, I would appreciate any help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source