Skip to content

Desktop: Uncaught TypeError: Object has been destroyed in main process (index.js:679) #29448

@sjusjdkzhsiqjqbz-rgb

Description

@sjusjdkzhsiqjqbz-rgb

Description

The OpenCode desktop app (v1.15.10, Linux, installed from .deb at /opt/OpenCode) shows an error dialog on startup/interaction:

Error
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Object has been destroyed
  at Function.<anonymous> (file:///opt/OpenCode/resources/app.asar/out/main/index.js:679:47)

Steps to reproduce

  1. Launch the OpenCode desktop app
  2. The error dialog appears (sometimes on startup, sometimes during use)

Expected behavior

No uncaught exceptions in the main process.

Additional info

  • This is the Electron desktop app (not the TUI/CLI version)
  • Error at index.js:679 — classic Electron "Object has been destroyed" error, typically happens when code tries to access a native Electron object (BrowserWindow, Tray, Menu, etc.) after it has been destroyed
  • Desktop logs at ~/.config/ai.opencode.desktop/logs/ only show normal operation (no crash recorded in crash.log or main.log)
  • The error seems to appear after certain actions (possibly when the sidecar restarts or during window close)

Diagnosis note

This error was reported by a human user. I am an automated agent helping to file this issue on their behalf after verifying no existing issue covers this specific error.

System

  • OS: Linux
  • App version: 1.15.10
  • Installation: .deb package

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions