Repository navigation
Description
可以,正文如下(英文,直接粘贴到 GitHub Issue 即可):
OpenScreen fails to start silently on Windows 11 (exit code 0x80000003 / lockfile error 5)
Describe the bug
Since 2026-11-23 20:59 (local time), OpenScreen no longer starts from the interactive desktop session. Double-clicking the desktop shortcut produces no window, no error dialog, and no new log entry — the process exits within ~200 ms.
The last successful launch recorded in main.log is 2026-11-23T12:59:11Z. Every launch attempt after that never reaches the point where the app writes its --- launch --- line, so this fails very early in startup (before app initialization).
To reproduce
- On the affected machine, double-click the OpenScreen desktop shortcut (
C:\Users\Public\Desktop\Openscreen.lnk, targetD:\Agent\openscreen\Openscreen.exe). - Observe: the process appears briefly in Task Manager, then exits with no UI.
Commands used during diagnosis (from the user's own desktop session, via a .cmd file so the real session environment is used):
"D:\Agent\openscreen\Openscreen.exe"
"D:\Agent\openscreen\Openscreen.exe" --no-sandbox
"D:\Agent\openscreen\Openscreen.exe" --no-sandbox --user-data-dir="%LOCALAPPDATA%\OpenScreenData-Test"Expected behavior
The main window opens and C:\Users\czcni\AppData\Roaming\openscreen\logs\main.log gets a new --- launch 2.x.x --- line.
Actual behavior
| Launch method | Result |
|---|---|
| Normal double-click | Exits immediately, exit code 0x80000003 (STATUS_BREAKPOINT); no output, no log |
With --no-sandbox |
Prints Lock file can not be created! Error code: 5 (EACCES); no log |
With explicit --user-data-dir |
crashpad_client_win.cc:867 not connected, exit code -36861 |
Same binary, launched from an elevated/agent process with --no-sandbox --user-data-dir=<fresh dir> |
Starts successfully (full Electron process tree, launch 2.4.0 written to log) |
| "Run as administrator" from the interactive session | Still fails |
| Renaming the user data dir to force a fresh profile | Still fails from the interactive session |
Environment
- OS: Windows 11 Home (Chinese), 10.0.26300 build 26300, x64
- CPU: Intel Core Ultra 5 125H, 18 logical processors, 23.5 GB RAM
- OpenScreen: 2.4.0 (reinstalled from the official GitHub release; the issue also reproduced on the previously installed 2.3.0)
- Install location:
D:\Agent\openscreen Openscreen.exe: 223,298,048 bytes, file version 2.4.0, Authenticode status: NotSigned- User data:
C:\Users\czcni\AppData\Roaming\openscreen(directory is writable; manually creatinglockfilein it succeeds) - Session: Console; account has local admin rights
- User/Machine environment variables
ELECTRON_RUN_AS_NODE,NODE_OPTIONS,ELECTRON_DISABLE_SANDBOXare all empty (verified from the desktop session, not just the agent shell)
What has been ruled out
- Reinstalling from the official 2.4.0 installer (both GUI and
/Ssilent) — no change - Corrupt installation files / missing native helpers — all present
- Shortcut target or arguments — target is correct
- Antivirus / SmartScreen / Code Integrity blocks — no matching events
- IFEO hijack / AppCompat compatibility flags — none
- Stale Electron
Singleton*/lockfile— none found - User data directory permissions — ACL grants full control; manual
lockfilecreation works - Ambiguity about the virtual camera: temporarily setting
camEnabled: falseinrecording-settings.jsondid not fix startup (config restored afterwards)
Related observation (probably separate)
main.log from 2026-11-23 shows the recording helper resolved a DirectShow webcam named WindowCam (CLSID {5C2CD55C-92AD-4999-8666-912BD3E70010}) and a recording session then crashed. Windows Event Log contains 8 Application Error events that day where svchost.exe_FrameServer faults in WindowCamSource.dll (0xC0000005). The DLL at D:\虚拟摄像机\build\Release\WindowCamSource.dll no longer exists, but recording-settings.json still selects WindowCam. This does not appear to cause the startup failure, but may be worth noting.
Questions for maintainers
- What startup path can return
0x80000003/-36861before any log line is written? Is there an earlyDCHECKor breakpoint in the Electron wrapper? - Why would Electron fail to create its single-instance lock file with error 5 while the same directory is writable by the same user from a
.cmdfile? - Is there a known incompatibility with Windows build 26300 / recent Windows 11 updates?
Please let me know if you need a crash dump, ProcMon trace, or any additional logs.
Activity
EtienneLescot commentedon Dec 1, 2026
Thanks for the very thorough report, @czcnick. The failure happens inside Electron's own startup, before any OpenScreen code runs, so one check would tell us whether it is specific to OpenScreen: does another Electron app (for example VS Code, Discord or Slack) start normally from that same desktop session?
czcnick commentedon Dec 1, 2026
Yes — other Electron apps start normally from the same desktop session. Specifically, CodeBuddy GUI, WorkBuddy, and DeepSeek Harness are all Electron-based and launch fine. So the failure appears to be specific to OpenScreen rather than a general Electron/desktop-session issue.
@EtienneLescot
czcnick commentedon Dec 1, 2026
Got it — reinstalling fixed it.