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 <https://github.com/Genymobile/scrcpy/pull/2783> Refs f801d8b3128cf5aae3725c981f32abfd4b6c307e Fixes #2838 <https://github.com/Genymobile/scrcpy/issues/2838> PR #2840 <https://github.com/Genymobile/scrcpy/pull/2840>