question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception Object has been destroyed

See original GitHub issue
Uncaught Exception:
Error: Object has been destroyed
    at Error (native)
    at exports.default.appWindow (/Applications/Cerebro.app/Contents/Resources/app.asar/webpack:/app/main/createWindow/toggleWindow.js:6:17)
    at Function.toggleMainWindow (/Applications/Cerebro.app/Contents/Resources/app.asar/webpack:/app/main/createWindow.js:34:34)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
alexhx5commented, Mar 1, 2017

@KELiON @maximbaz these guys here https://github.com/tinytacoteam/zazu are using a different approach and their app’s search bar doesn’t have this issue, it is getting closed only by pressing Esc or clicking outside the window. In their case alt + f4 is closing the app itself (not only the search bar), I think that’s how it should be for Cerebro, this approach will resolve the problem with referencing a destroyed object and raising this exception. What do you think of that guys?

1reaction
vandammcommented, Feb 16, 2017

@KELiON it’s easy:

  1. Invoke Cerebro window
  2. Press Cmd+W (I’m on Mac)
  3. Invoke Cerebro window again
Uncaught Exception:
Error: Object has been destroyed
    at Error (native)
    at exports.default.appWindow (/Applications/Cerebro.app/Contents/Resources/app.asar/webpack:/app/main/createWindow/toggleWindow.js:6:17)
    at click (/Applications/Cerebro.app/Contents/Resources/app.asar/webpack:/app/main/createWindow/AppTray.js:41:22)
    at MenuItem.click (/Applications/Cerebro.app/Contents/Resources/electron.asar/browser/api/menu-item.js:52:9)
    at Function.executeCommand (/Applications/Cerebro.app/Contents/Resources/electron.asar/browser/api/menu.js:121:15

Still happens on 0.2.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object has been destroyed when open secondary/child ...
Uncaught Exception: Error: Object has been destroyed at Error (native) at EventEmitter. (/home/xxxx/electron/fin/main.js:36:21) at emitOne ...
Read more >
Object has been destroyed · Issue #1 - GitHub
I found that mainBindings() is creating listeners and not clearing them properly. This is why we get the object destroyed error, the listener...
Read more >
The object of type '' has been destroyed but you are still trying ...
MissingReferenceException : The object of type 'DontDestroyOnLoad' has been destroyed but you are still trying to access it.
Read more >
Object has been destroyed - General - Navigraph
... I ran into an “uncaught exception:type error: Object has been … ... Object has been destroyed” which seems to be a Java...
Read more >
Error: Object has been destroyed | Pinnacle 21
Hello Parth,. Thank you for reporting this issue. Does it happen right when you start the app, when you open Validator, or when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found