`Error: Object has been destroyed`
See original GitHub issueDescription
Occasionally, an error Object has been destroyed is thrown on window startup, preventing the application from launching:

Environment
- electron-splashscreen version: 0.3.4
- Electron version: 4.1.1
- OS: Manjaro Linux x86_64 (Kernel 5.0.1-1-MANJARO)
Steps to Reproduce
I have not yet been able to reproduce this consistently. The app in question is jgierer12/pocket-casts-linux.
Expected behaviour
The application launches correctly without errors.
Actual behaviour
The above Object has been destroyed error is thrown and the application does not launch.
Related issues
Related discussions are in jgierer12/pocket-casts-linux#3, jgierer12/pocket-casts-linux#4, and jgierer12/pocket-casts-linux#7
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Object has been destroyed when open secondary/child ...
If I closed the pop window and reopen it again, I will get this error: Uncaught Exception: Error: Object has been destroyed at...
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 >Error: Object has been destroyed | Pinnacle 21
Error : Object has been destroyed in pinnacle 21. I have installed in macOS m1 mac somehow I am not able to use...
Read more >MongoDB Compass start error - Error: Object has been ...
Hi, To avoid restarting Windows, use Resource Monitor -> CPU tab -> in handles type Compass, and Kill all associated processes. It will...
Read more >Object has been destroyed - General - Navigraph
Im having the same issue, just updated this morning and it started up fine and once I started flight planning, the Java script...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It looks like the error is thrown when attempting to close the splashscreen app and the app object has already been destroyed. Possibly if the splashscreen took too long to load. I’m looking into it. Thanks.
FYI, I was able to reproduce this error being thrown on windows by closing the app while the splashscreen was still running (without the fix). Testing with the fix, the issue was indeed resolved.
This fix is now published as part of v1.0.0.