You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing lots of bugsnag errors Object has been destroyed pointing to the use of the BrowserWindow in that event handler after the BrowserWindow has been destroyed:
TypeError Object has been destroyed
node_modules/@bugsnag/plugin-electron-app-breadcrumbs/app-breadcrumbs.js:121:39 BrowserWindow.<anonymous>
node_modules/lodash.debounce/index.js:160:19 invokeFunc
node_modules/lodash.debounce/index.js:207:14 trailingEdge
node_modules/lodash.debounce/index.js:195:14 Timeout.timerExpired [as _onTimeout]
node:internal/timers:557:17 listOnTimeout
node:internal/timers:500:7 processTimers
We might want to clear the browserWindow in the closed event and not try to use it later in the moved event.
Environment
Bugsnag version: "@bugsnag/electron": "^7.16.2",
Browser framework version (if any):
Vue:
React:
Angular:
Server framework version (if any):
Koa:
Express:
Restify:
Browser version (e.g. chrome, safari): Electron
Device (e.g. iphonex): macOS
The text was updated successfully, but these errors were encountered:
Hi @jeremyspiegel - thanks for raising this, our engineering team are going to investigate a fix for this issue. We'll keep you updated on this thread 👍
Describe the bug
The Electron plugin app-breadcrumbs.js uses
debounce
for tracking theBrowserWindow.move
event: https://github.com/bugsnag/bugsnag-js/blob/next/packages/plugin-electron-app-breadcrumbs/app-breadcrumbs.js#L120I'm seeing lots of bugsnag errors
Object has been destroyed
pointing to the use of theBrowserWindow
in that event handler after theBrowserWindow
has been destroyed:We might want to clear the
browserWindow
in theclosed
event and not try to use it later in themoved
event.Environment
The text was updated successfully, but these errors were encountered: