Skip to content
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 process execution on Windows 7 #2840

Merged
merged 1 commit into from
Dec 1, 2021
Merged

Fix process execution on Windows 7 #2840

merged 1 commit into from
Dec 1, 2021

Conversation

rom1v
Copy link
Collaborator

@rom1v rom1v commented Nov 30, 2021

According to this bug report on Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1460995

CreateProcess fails with ERROR_NO_SYSTEM_RESOURCES on Windows 7. It
looks like the reason why is because PROC_THREAD_ATTRIBUTE_HANDLE_LIST
doesn't like console handles.

To avoid the problem, do not pass console handles to PROC_THREAD_ATTRIBUTE_HANDLE_LIST.

Refs #2783
Refs f801d8b
Fixes #2838


Here is a binary including the fix, replace this file in the v1.21 release:

  • win64: scrcpy.exe sha256:8c41744d76ba9003d4a5e5ac7c0e4d42bc136349076b4db099888fdc06f0bb5a
  • win32: scrcpy.exe sha256:1160d3b66bfedcd6d7038562d43ab54bde943b6c6fe2a8e21c0c12edd1eff0c9

Even if you are not using Windows 7, please use this version and report any regression you might encounter 😉

According to this bug report on Firefox:
<https://bugzilla.mozilla.org/show_bug.cgi?id=1460995>

> CreateProcess fails with ERROR_NO_SYSTEM_RESOURCES on Windows 7. It
> looks like the reason why is because PROC_THREAD_ATTRIBUTE_HANDLE_LIST
> doesn't like console handles.

To avoid the problem, do not pass console handles to
PROC_THREAD_ATTRIBUTE_HANDLE_LIST.

Refs #2783 <#2783>
Refs f801d8b
Fixes #2838 <#2838>
@rom1v rom1v merged commit 5cbdd56 into dev Dec 1, 2021
rom1v added a commit that referenced this pull request Dec 1, 2021
According to this bug report on Firefox:
<https://bugzilla.mozilla.org/show_bug.cgi?id=1460995>

> CreateProcess fails with ERROR_NO_SYSTEM_RESOURCES on Windows 7. It
> looks like the reason why is because PROC_THREAD_ATTRIBUTE_HANDLE_LIST
> doesn't like console handles.

To avoid the problem, do not pass console handles to
PROC_THREAD_ATTRIBUTE_HANDLE_LIST.

Refs #2783 <#2783>
Refs f801d8b
Fixes #2838 <#2838>
PR #2840 <#2840>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant