Skip to content

Bug: Omi Desktop for Windows crashes on launch after restart attempt with "Cannot find module 'ms'" error #10738

Description

@hugoaap-code

Summary

After closing Omi to check whether recording would resume, the Windows desktop app showed a startup error instead of reopening normally.

This happened after the earlier blank-screen capture problem reported in #10737.

Related issue

Problem

On launch, Omi shows a JavaScript main-process error and fails with:

Error: Cannot find module 'ms'

This appears during app startup, preventing normal use.

Expected behavior

  • Omi should restart normally after being closed
  • Restarting the app should be a valid recovery step after capture issues
  • The app should not fail on launch because of a missing module dependency

Actual behavior

  • Omi was closed to test whether recording would resume after the blank-screen issue
  • On relaunch, the app showed a JavaScript error in the main process
  • The visible error says Cannot find module 'ms'
  • The stack trace points into the packaged Windows app resources

Redacted stack trace detail

The screenshot shows local Windows installation paths. Redacting the personal username, the relevant path pattern is:

C:\Users\<redacted>\AppData\Local\Programs\omi-windows\resources\app.asar\...

Impact

This turns a recording failure into a full app startup failure.

A user who tries to recover from broken capture by restarting the app can end up unable to reopen Omi at all.

Suggested investigation

  • Check why the packaged Windows app is missing the ms module at runtime
  • Verify whether a partial update, corrupted install, or packaging issue can cause this dependency failure
  • Check whether this can be triggered after restarting from a bad capture state
  • Add a safer recovery path or clearer remediation message if a required module is missing
  • Investigate whether the blank-screen capture issue and this startup crash share the same root cause

Environment

  • Omi Desktop
  • Windows
  • Observed on Monday, July 27, 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions