-
Notifications
You must be signed in to change notification settings - Fork 15k
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
fix: gdi printing in silent printing mode #25679
fix: gdi printing in silent printing mode #25679
Conversation
for windows print_text_with_gdi is set to the value of is_modifiable but this code path is not taken for silent printing
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!!
@RobertBorg once this merges, could you please backport it to the affected release lines? It'll need manual backport since it's a patch sadly |
I'm happy to do the changes but i might have trouble verifying them as last i tried building 10-x-y it failed. We'll see how it goes. |
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I was unable to backport this PR to "10-x-y" cleanly; |
I was unable to backport this PR to "11-x-y" cleanly; |
I was unable to backport this PR to "9-x-y" cleanly; |
@RobertBorg has manually backported this PR to "9-x-y", please check out #25724 |
@RobertBorg has manually backported this PR to "10-x-y", please check out #25740 |
@RobertBorg has manually backported this PR to "11-x-y", please check out #25744 |
@RobertBorg this unfortunately caused a regression in silent mode - if you run https://gist.github.com/0c1c8affb9262ae83bde4d08d3401f0c and set
I opened #25937 to follow up |
While trying to reproduce this i built 2c68bad in release configuration. used your gist. changed pageRanges to silent:true and added app.commandLine.appendSwitch('enable-features', 'GdiTextPrinting'); to main.js 8else i don't think my code change has any effect whatsoever). I managed to do 50 prints without a crash. I do however remember that i needed to build release in order to be abel to print at all. Which configuration are you using? |
I'm able to trigger it now by clicking faster (was on rdp before) Im getting it mixed with this crash
both of which seems to be triggered when printing too fast. If i put a intervall printing every 600ms it seems to be able to go on forever (i kill it off at 100) Could the cause be the same for both of them? |
Description of Change
For windows print_text_with_gdi is set to the value of is_modifiable
but these code paths are not taken for silent printing.
src\printing\printing_context.cc:40
src\printing\print_settings_conversion.cc:211
this fixes #22577
Checklist
npm test
passesRelease Notes
Notes: Fixed GdiTextPrinting when used with silent printing.