FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.37k stars 825 forks source link

[Bug]: `TypeError: Cannot read properties of undefined (reading 'title')` #3386

Closed efb4f5ff-1298-471a-8973-3d47447115dc closed 1 year ago

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 year ago

Guidelines

Describe the bug

Noticed this error when testing https://github.com/FreeTubeApp/FreeTube/pull/3362 but i dont notice any issues with FT.

  1. Play any playlist
  2. Go to the end of the video
  3. Let the countdown do its thing
  4. Next video load
  5. Error
TypeError: Cannot read properties of undefined (reading 'title')
    at a.currentTitle (renderer.js:2:1688331)
    at t.get (renderer.js:2:827872)
    at t.evaluate (renderer.js:2:829054)
    at a.currentTitle (renderer.js:2:841873)
    at a.<anonymous> (renderer.js:2:1689246)
    at t._render (renderer.js:2:847229)
    at a.n (renderer.js:2:877807)
    at t.get (renderer.js:2:827872)
    at t.run (renderer.js:2:828791)
    at hi (renderer.js:2:830753)

The following error spams the console but i think that would be resolved if the first one gets solved

renderer.js:2 TypeError: Cannot read properties of undefined (reading 'startSeconds')
    at a.updateCurrentChapter (renderer.js:2:1742147)
    at Ce (renderer.js:2:825205)
    at a.i (renderer.js:2:818550)
    at Ce (renderer.js:2:825205)
    at t.$emit (renderer.js:2:846105)
    at e.<anonymous> (renderer.js:2:1654674)
    at n.dispatcher.n.dispatcher (renderer.js:2:238929)
    at hn (renderer.js:2:239927)
    at e.trigger (renderer.js:2:244598)
    at wa.forEach.ka.<computed> [as handleTechTimeupdate_] (renderer.js:2:433352)

Watch 0-20 sec and then skip to the 1min mark (i got distracted a bit)

https://user-images.githubusercontent.com/73130443/229303197-da4bd05a-3fd4-4b0b-a198-534cd39e2591.mp4

Expected Behavior

No error

Issue Labels

API issue

FreeTube Version

Latest nightly

Operating System Version

Win10 22H2

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

absidue commented 1 year ago

It's not just any playlist, it's that specific playlist in the video (https://youtube.com/playlist?list=PLieFcZgde9z-SDwkG-US6oRknDGNK0U7l). The fifth video in the playlist "Have you ever dropped your phone into a lake?" has a chapter at 11:30 but the video is only 11:31 long, so for some reason that chapter being right at the end is causing problems for the next video.

Also definitely issue in FreeTube, the chapters don't open.