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

Crash on "Cannot read properties of undefined (reading 'videoId')" #1223

Open
2 tasks done
superaven opened this issue Dec 19, 2023 · 3 comments
Open
2 tasks done

Crash on "Cannot read properties of undefined (reading 'videoId')" #1223

superaven opened this issue Dec 19, 2023 · 3 comments
Labels
Bug Something isn't working

Comments

@superaven
Copy link

superaven commented Dec 19, 2023

Consent

  • I verified that there is no open/closed issue for the same subject.
  • I understand that YTMDesktop have NO affiliation with Google or YouTube

Current Behavior

This is new behavior that began around 12/14/2023.
Intermittently, on change to next track the application errors and crashes with the following message:
YouTube Music Desktop App Crashed

Text:

Environment Details:
YouTube Music Desktop App 2.0.0-rc.5
Electron 27.0.2
Windows NT 10.0.19045

Name: TypeError
Message: Cannot read properties of undefined (reading 'videoId')
Cause: Unknown

TypeError: Cannot read properties of undefined (reading 'videoId')
at IpcMainImpl. (C:\Users\username\AppData\Local\youtube_music_desktop_app\app-2.0.0-rc5\resources\app.asar.webpack\main\index.js:8:514876)
at IpcMainImpl.emit (node:events:514:28)
at WebContents. (node:electron/js2c/browser_init:2:88262)
at WebContents.emit (node:events:514:28)

Image:
image

UPDATE:
I've since determined this is related to Explicit tracks that have a music video and having Restricted Mode enabled in YTM's settings.

Expected Behavior

On change to next track the application, application plays next song without error/crash.

Steps To Reproduce - UPDATED

  1. Open YTMD
  2. Confirm that Restricted Mode under General in YTM's Settings (not YTMD Settings) is enabled.
  3. Select a playlist with an explicit track.
  4. Play Song, not Video.
  5. Allow application to play tracks and observe when an Explicit track, that also has a music video is played.
  6. App will crash upon playing Song that is Explicit and also has a music video.

YTMDesktop

2.0.0-rc.5

OS

Windows

OS Version

10

Arch

x64

Installation way

YouTube.Music.Desktop.App-2.0.0-rc.5.Setup.exe

Anything else?

This is new behavior that began around 12/14/2023.

@Alipoodle Alipoodle added the Bug Something isn't working label Dec 26, 2023
@Mosoman1011
Copy link

I just got this same issue.

@superaven
Copy link
Author

I just got this same issue.
@Mosoman1011 This was for 2.0 RC5. Are you still running RC5? If so grab the latest 2.0 stable.

@chriskol
Copy link
Contributor

chriskol commented Feb 22, 2024

I've also started getting the above error on update. I'm using the latest homebrew install on the latest osx 14.3.1 if that's any help. Which is weird because at one point like within the last month this was working.

YouTube Music Desktop App Crashed

Environment Details:
YouTube Music Desktop App 2.0.0
Electron 28.2.0
macOS 14

Name: TypeError
Message: Cannot read properties of undefined (reading 'videoId')
Cause: Unknown

TypeError: Cannot read properties of undefined (reading 'videoId')
at IpcMainImpl. (/Applications/YouTube Music Desktop App.app/Contents/Resources/app.asar/.webpack/main/index.js:8:426502)
at IpcMainImpl.emit (node:events:517:28)
at WebContents. (node:electron/js2c/browser_init:2:77364)
at WebContents.emit (node:events:517:28)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants