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
Electron crashes after canceling print #20426
Comments
I have the exact same problem. I call window.print() from a button click. If I go ahead and print, then all is good. However, if I cancel the print job, then my app freezes. All javascript functions stop working except I can still right click and enter text into input elements. I am using Electron version 6.0.11 and problem occurs on both MacOS and Windows 10. |
Easy to reproduce with the electron-quick-start repo. Just add this line to index.html:
Then click the button and choose Cancel. Try to click that button again. No reaction. Also, the devtools breakpoints do not work anymore. Try to set an event listener breakpoint on the click event... Please increase the priority of this bug. Every electron app that supports printing cal fall victim to complete data loss! |
I updated to electron 7.1.9 and it solved the issue (tested on Windows 7 and Windows 10) |
I try with electron 7.1.9 but my app still crashes. With 5.0.4 version no problem. I tested on a macOs 10.15.2. |
This has been fixed in latest versions of Electron. @Celtak i could not reproduce this issue on the same setup - this may be an issue with your machine. |
I created different branches in the given repository (https://github.com/schnetzi/electron-problem) to be able to check with the different electron versions:
To ReproduceI tried this now on windows. I will right away check on Mac as well. In the versions
In the versions
Please let me know if you need any further information. |
On Mac I have a very similar behaviour. Versions In the versions |
@codebytere can this be reopened or should I create another issue for that? |
I just saw that you are talking in another issue about that and saying that it will be solved in the next versions: #21397 Thanks @codebytere |
Hi Guys. Is this issue fixed in the latest version of electron (9.1.0)? |
hi @dvuvne do you have any update on this? Been trying to print on macos (using electron v10.1.1) |
Preflight Checklist
Issue Details
Expected Behavior
When I print using
window.print();
the print dialog opens. But after clicking on cancel I want to be able to continue using the app.Actual Behavior
After cancelling the print modal nothing is clickable anymore.
To Reproduce
I created a github repo with a "Print" button on the Home-page. It's the skeleton project.
https://github.com/schnetzi/electron-problem
If you install electron in version 5.0.4 it works again.
The text was updated successfully, but these errors were encountered: