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
App crashes when printing the content #25327
Comments
I have came across many similar issues, and most of them tagged as Closed. |
same here on macos 10.15.6 |
I created a fiddle with the code that makes electron crash. After testing a bit it seems the callback function causes the segfault: |
Were you able to fix this issue? @hmt |
Yes, remove the callback and just print with options or without options. So, instead of:
do this:
or this:
|
Yes, callback is causing issue, but my requirement slightly different, if you can suggest something here, I'll be grateful. I'm trying to print from angular app which is running over the electron, so I'm not calling
|
Not sure but I think the remote call makes it pretty much the same to electron. You could try to set up an ipc channel to let the main process handle the print? |
When I try to open a PDF in the integrated PDF viwer It Works Fine, but when I click to print, the preview window crashes. I am using reactjs. Some idea How to fix this issue? Using windows 10 |
I tried this way, but there's catch here, I want to print the content of newly opened window and not main window, so to achieve this I can't create |
Sorry, can't think of a solution |
Closing in favor of #25397 |
Were you able to fix this? |
Preflight Checklist
Issue Details
Expected Behavior
Main process shouldn't crash when printing any content in the render process.
Actual Behavior
Main process crashes when trying to print
div
contentTo Reproduce
Angular application running over Electron, and triggering
window.print()
from new window (usingwindow.open()
)The text was updated successfully, but these errors were encountered: