Skip to content

Unexpected error: Cannot read property 'isMinimized' of null #3321

Closed

Description

@NegassaB

Description

An unexpected error occurred in the main process.

Stack Trace

TypeError: Cannot read property 'isMinimized' of null
    at Wt.bringToFront (/opt/Mark Text/resources/app.asar/dist/electron/main.js:2:277101)
    at Object.<anonymous> (/opt/Mark Text/resources/app.asar/dist/electron/main.js:2:279559)
    at Object.onceWrapper (events.js:422:26)
    at Object.emit (events.js:327:22)

Version

Mark Text: v0.16.3
Operating system: Linux x64 4.15.0-187-generic (linux)

Activity

  1. added
    🐛 bug
    🐞 pri/critical
    🐧 platform/linux
    on May 16, 2026
  2. Jocs commented on May 23, 2026

    @Jocs
    Member

    Closing — this was fixed in the main-process refactor.

    bringToFront in src/main/windows/base.ts:85 now short-circuits when the underlying BrowserWindow has been destroyed before the IPC handler fires:

    bringToFront(): void {
      const { browserWindow: win } = this
      if (!win) return
      ...
    }

    so the null isMinimized / webContents deref from your stack trace can no longer happen.

    If you still see this on a recent build, please reopen with the exact version and the window-management steps that triggered it.

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

    🐧 platform/linux🐛 bug🐞 pri/critical

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions