Skip to content

Attempting to call a function in a renderer window that has been closed or released #24

@DanielMcAssey

Description

@DanielMcAssey

Describe the bug
Getting an error which doesn't seem to affect anything, however does cause a stutter.

Attempting to call a function in a renderer window that has been closed or released.
Function provided here: Titlebar.registerListeners (C:**\node_modules@treverix\custom-electron-titlebar\dist\titlebar.js:110:26

The error originates from here:

this.currentWindow.on(k as any, this.events[k]);

To Reproduce
Steps to reproduce the behavior:

  1. Launch Electron
  2. Happens immediately and appears in the console

Expected behavior
Error shouldnt happen, its likely the handle for the current window is not removing listeners, maybe missing an event to removeListeners.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Electron version: 16.0.4
  • Node Version: 14.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions