Skip to content

Open Recent, when the only open window is minimized, causes Uncaught Exception #2881

@peternlewis

Description

@peternlewis

Describe the problem

Selecting File > Open Recent from the Arduino IDE menus fails with an uncaught exception if the only open window is minimized.

Exeption is reported as:

A JavaScript error occurred in
the main process
Uncaught Exception:
TypeError: Object has been destroyed
at _.send (node:electron/js2c/
browser_init:2:73448)
at t.nodeld.r.click (/Applications/Arduino
IDE.app/Contents/Resources/app/lib/
backend/electron-main.js:5:29489)
at Menultem.click (node:electron/js2c/
browser_init:2:33700)
at a._executeCommand (node:electron/
js2c/browser_init:2:39128)

To reproduce

  1. Open a project in Arduino IDE
  2. Open a new window
  3. Minimize the new window
  4. Close the project
  5. Select File > Open Recent from the Arduino IDE menus.

🐛 An exception is raised.

Expected behavior

Work

Arduino IDE version

2.3.8

Operating system

macOS

Operating system version

Sequoia 15.7.1 (24G231)

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    os: macosSpecific to macOS operating systemtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions