Skip to content

Web-server port conflict silently kills app boot — no window, no error #80

Closed

Description

@currentbits

electron/main.js:300 — webServer = await startWebServer({...}) sits unguarded inside app.whenReady().then(async ...). If port 4620 is taken (EADDRINUSE — plausible, since the port is fixed and a previous instance may still hold it), the promise rejects, createWindow() at line 378 never runs, and the app is up with no window and no error anywhere.

Fix: try/catch around the web server start with warn-and-continue, or fall back to port 0. No test covers the boot path today (web.test.js tests the module, not the wiring).

Found during the 2026-08-16 improvement audit.

Activity

  1. added
    bug
    plan:todo
    on Aug 16, 2026
  2. added
    plan:done
    and removed
    plan:todo
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions