Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes and has problems running mini-player program simultaneously with main app open. #145

Open
Cakezoid opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels

Comments

@Cakezoid
Copy link

Operating system

Microsoft Windows [Version 10.0.22635.4510]

YouTube Music Desktop App Version

v0.14.5-rc3

Bug description

Per the error message: A Javascript error occurred in the main process. Uncaught Exception: TypeError: Object has been destroyed at App. (C:\Users\brand\AppData\Local\Youtube Music For Desktop\resources\app.asar\out\main\index.js:3163:19) at App.emit (node:events:519:28)

Error occurred when I had opened the mini-player, then terminated the main application. Music continued to play, however I wanted to add the song to a playlist and could not do so in the mini-player. After reopening the main app, the error message above opened and the main application did not open. The music playing in the music player began to pause and cut out, then after terminating the mini-player and the Java error message, I was able to open the main application with no issues.

Below is an image of the final error message I received after closing both the mini-player and main app, it is quite lengthy and I typed it out below as well into relevant log output.

image

Error
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Object has been destroyed
at BrowserWindow. (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:10295:33)
at BrowserWindow.emit (node:events:531:35)
at AppProvider._onSubWindowClose (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:3246:19)
at IpcMainImpl.func (C:\Users\brand\AppData\Local\Programs\YouTube Music for
Desktop\resources\app.asar\out\main\index.js:1327:96)
at IpcMainImpl.emit (node:events:519:28)
at WebContents. (node:electron/js2c/browser_init:2:86186)
at WebContents.emit (node:events:519:28)
at Object.showErrorBox (node:electron/js2c/browser_init:2:20971)
at node:electron/js2c/browser_init:2:126393

Steps to reproduce

  1. Open main application.
  2. Open mini player.
  3. Close main application whilst still keeping mini-player active.
  4. Attempt to reopen main application with mini-player active.

Relevant log output

A Javascript error occurred in the main process. Uncaught Exception: TypeError: Object has been destroyed at App. <anonymous> (C:\Users\brand\AppData\Local\Youtube Music For Desktop\resources\app.asar\out\main\index.js:3163:19) at App.emit (node:events:519:28)



Error
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Object has been destroyed
at BrowserWindow.<anonymous> (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:10295:33)
at BrowserWindow.emit (node:events:531:35)
at AppProvider._onSubWindowClose (C:\Users\brand\AppData\Local\Programs\YouTube Music for Desktop\resources\app.asar\out\main\index.js:3246:19)
at IpcMainImpl.func (C:\Users\brand\AppData\Local\Programs\YouTube Music for
Desktop\resources\app.asar\out\main\index.js:1327:96)
at IpcMainImpl.emit (node:events:519:28)
at WebContents.<anonymous> (node:electron/js2c/browser_init:2:86186)
at WebContents.emit (node:events:519:28)
at Object.showErrorBox (node:electron/js2c/browser_init:2:20971)
at node:electron/js2c/browser_init:2:126393
@Cakezoid
Copy link
Author

Cakezoid commented Nov 18, 2024

On a side note, sometimes the issue does not always occur after trying to reproduce the error with those exact steps. It happens about 50% of the time, but thought I should bring it to light at least.

Also, you must be playing music to open the mini-player in order to reproduce this.

Hopefully the last edit I'll make to this comment, but I felt it's worth mentioning I am enrolled with Windows Insider for Beta Channel releases of Windows 11. Here's a copy of my specs if that helps.

Edition Windows 11 Home
Version 23H2
Installed on ‎11/‎5/‎2024
OS build 22635.4510
Experience Windows Feature Experience Pack 1000.22700.1060.0

@Venipa Venipa self-assigned this Nov 19, 2024
@Venipa Venipa added bug Something isn't working electron issue investigating labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants