Skip to content

fix: launch crash when null device is disabled on Windows #47870

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zuohuiyang
Copy link
Contributor

@zuohuiyang zuohuiyang commented Jul 23, 2025

add node flag node::ProcessInitializationFlags::kNoStdioInitialization

Description of Change

This PR continues #44882 (originally by @yangllu, my colleague).
I've taken over this task and addressed all 4 review comments:​

​​All 3​​ were updated exactly as suggested (@deepak1556).
​​For parameter passing​​, I didn’t just ​​send​​ it to the Renderer. Since ​​the​​ node ​​module​​ is also used in the Utility process, I ​​added​​ it there ​​as well​​."

Checklist

Release Notes

Notes: add support for --no-stdio-init to be used when nul device is disabled on windows

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jul 23, 2025
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jul 30, 2025
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@deepak1556 deepak1556 added the semver/minor backwards-compatible functionality label Aug 1, 2025
@codebytere
Copy link
Member

codebytere commented Aug 1, 2025

@zuohuiyang could you please rebase this? You'll also need to sign your commit before it can be merged.

@zuohuiyang zuohuiyang force-pushed the fix/node_platforminit_202507 branch from ce779e3 to ec5de79 Compare August 1, 2025 10:56
add node flag node::ProcessInitializationFlags::kNoStdioInitialization

Co-authored-by: yangliu <yangliu.leo@bytedance.com>
@zuohuiyang zuohuiyang force-pushed the fix/node_platforminit_202507 branch from ec5de79 to d5ef01b Compare August 1, 2025 11:13
@zuohuiyang
Copy link
Contributor Author

@codebytere Okay, I've rebased and signed my commit.

@codebytere codebytere changed the title fix: fix launch crash when null device is disabled on Windows fix: launch crash when null device is disabled on Windows Aug 2, 2025
Copy link
Member

@itsananderson itsananderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review/requested 🗳 semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants