-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Between 0.46.0-beta1 and 0.46.0 a change to Windows parsing of "chromium-args" in package.json truncates it to a length of MAX_PATH (260 characters). #7670
Comments
This is also affecting some projects of mine. Would appreciate a review and merge of the PR @rogerwang. |
@sirisian I looked at the PR related to this. Should we instead have a flag which dynamically sets the character limit higher than 260 with an upper limit of 32,000? Let's say the user's cc @rogerwang |
It would be great to increase it dynamically as many use nw.js for games or other GPU and media related things. There are many Chromium args that support this type of use case. Now if it stays at a size of 260, that would be extremely obstructive. |
This is currently blocking us on over 500 000 devices. We urgently need a fix here. @rogerwang would it be possible to fix this in 0.92.0 Please 🙏 |
Is there anything I can do here to speed this up? We urgently need this resolved... |
@rogerwang is there anything I can do to help move this along? |
NWJS Version : 0.46.0+
Operating System: Only Windows
Expected behavior
"chromium-args" of any length should be parsed.
(I know some of those flags are no longer valid, just an example).
Actual behavior
The "chromium-args" truncates and only seems to process the first 260 characters silently ignoring the rest. This can cause very unexpected and subtle bugs when upgrading past 0.46.0-beta1.
How to reproduce
Add in a bunch of flags like I have and it'll ignore the ones after 260 characters.
Refer to the changes made to "src/nw_package.cc" in this diff:
nw-v0.46.0-beta1...nw-v0.46.0
The following code was added that I think caused this:
One could just naively replace MAX_PATH to a larger number like 10000 or correctly handle this by growing an array with the value returned by ExpandEnvironmentStrings?
The text was updated successfully, but these errors were encountered: