FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: TypeError: Cannot read properties of undefined (reading 'sectionListRenderer')

Open Troughy opened this issue 2 years ago • 6 comments

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.

Describe the bug

Every time the application is started, right before showing the content it shows the following error: TypeError: Cannot read properties of undefined (reading 'sectionListRenderer')

Expected Behavior

Issue Labels

API issue

FreeTube Version

v0.17.0

Operating System Version

Linux Mint 21 MATE

Installation Method

.deb

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

Screenshot at 2022-08-07 17-40-54

Nightly Build

Troughy avatar Aug 07 '22 15:08 Troughy

Is it possible for u to provide your subscription file? Either here or in IRC through DM.

Location of the file

The ~/.config/FreeTube/profiles.db file looks like this

{
    "_id": "allChannels",
    "name": "All Channels",
    "bgColor": "#304FFE",
    "textColor": "#FFFFFF",
    "subscriptions": [
        { "id": "valid id", "name": "valid name", "thumbnail": "valid url (https://yt3.ggpht.com/ytc/...)" }
    ]
}

The original json is valid. There's a total of 24 channels so let me know if it's absolutely necessary for you to see the original file.

Troughy avatar Aug 10 '22 18:08 Troughy

Ok lets try another route before trying to request your db file

On opening FT press CRTL+SHIFT+I this should open the console. In here u need to look for the red errors. Copy all the red errors all the way from left to right!

https://pastebin.com/raw/yneuYZU8 it's the same error twice the error was not red btw

Troughy avatar Aug 11 '22 08:08 Troughy

If i had to guess, you're probably subscribed to a channel that doesn't have a "videos" tab. ex: a "artist -topic" channel

ChunkyProgrammer avatar Sep 01 '22 14:09 ChunkyProgrammer

If i had to guess, you're probably subscribed to a channel that doesn't have a "videos" tab. ex: a "artist -topic" channel

I think you're right, I'm getting this error 3 times, and I am subscribed to 3 topic channels

Troughy avatar Sep 01 '22 15:09 Troughy

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 07 '22 02:10 github-actions[bot]

Bump

ChunkyProgrammer avatar Oct 07 '22 02:10 ChunkyProgrammer

I'm facing the same issue for some time now. Today it's especially bad.

None of my channels show any videos whatsoever. Links to other channels redirect to completely different channels. What's going on?

node:electron/js2c/renderer_init:33 The vm module of Node.js is deprecated in the renderer process and will be removed.
o._load @ node:electron/js2c/renderer_init:33
renderer.js:2 updateTheme
renderer.js:2 updateTheme
renderer.js:2 updateTheme
User is using Electron
renderer.js:2 TypeError: Cannot read properties of undefined (reading 'sectionListRenderer')
    at YoutubeGrabberHelper.parseChannelVideoResponse (/opt/FreeTube/resources/app.asar/node_modules/yt-channel-info/app/helper.js:70)
    at Function.getChannelVideosNewest (/opt/FreeTube/resources/app.asar/node_modules/yt-channel-info/app/fetchers/channel.js:7)
    at async Function.getChannelVideos (/opt/FreeTube/resources/app.asar/node_modules/yt-channel-info/app/youtube-grabber.js:218)
27renderer.js:2 TypeError: Cannot read properties of undefined (reading 'contents')
    at YoutubeGrabberHelper.parseChannelVideoResponse (/opt/FreeTube/resources/app.asar/node_modules/yt-channel-info/app/helper.js:70)
    at Function.getChannelVideosNewest (/opt/FreeTube/resources/app.asar/node_modules/yt-channel-info/app/fetchers/channel.js:7)
    at async Function.getChannelVideos (/opt/FreeTube/resources/app.asar/node_modules/yt-channel-info/app/youtube-grabber.js:218)
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/opml-to-json/lib/opml-to-json.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/autolinker.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/utils.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/anchor-tag-builder.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/html-tag.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/truncate/truncate-smart.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/truncate/truncate-middle.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/truncate/truncate-end.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/match/match.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/match/email-match.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/match/hashtag-match.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/match/mention-match.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/match/phone-match.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/match/url-match.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/matcher.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/email-matcher.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/regex-lib.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/tld-regex.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/url-matcher.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/url-match-validator.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/hashtag-matcher.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/phone-matcher.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/mention-matcher.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/htmlParser/parse-html.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/match/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/autolinker/dist/commonjs/matcher/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/yt-dash-manifest-generator/node_modules/miniget/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/yt-dash-manifest-generator/node_modules/m3u8stream/dist/parse-time.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/yt-dash-manifest-generator/node_modules/m3u8stream/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/yt-dash-manifest-generator/node_modules/m3u8stream/node_modules/miniget/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/yt-dash-manifest-generator/node_modules/m3u8stream/dist/m3u8-parser.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/yt-dash-manifest-generator/node_modules/m3u8stream/dist/dash-mpd-parser.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/yt-dash-manifest-generator/node_modules/m3u8stream/dist/queue.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/underscore/underscore-node.cjs.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/underscore/underscore-node-f.cjs.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/@freetube/youtube-chat/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/@freetube/youtube-chat/dist/live-chat.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/@freetube/youtube-chat/dist/parser.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/miniget/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/m3u8stream/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/m3u8stream/dist/m3u8-parser.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/m3u8stream/dist/dash-mpd-parser.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/m3u8stream/dist/parse-time.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/m3u8stream/dist/queue.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/socks-proxy-agent/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/socks/build/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/socks/build/client/socksclient.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/smart-buffer/build/smartbuffer.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/smart-buffer/build/utils.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/socks/build/common/constants.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/socks/build/common/helpers.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/socks/build/common/util.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/socks/build/common/receivebuffer.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/agent-base/dist/src/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/agent-base/dist/src/promisify.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/https-proxy-agent/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/https-proxy-agent/dist/agent.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/http-proxy-agent/dist/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/http-proxy-agent/dist/agent.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///opt/FreeTube/resources/app.asar/node_modules/@tootallnate/once/dist/index.js.map: Unexpected end of JSON input 

eNTi avatar Nov 01 '22 08:11 eNTi

YouTube is testing some stuff so some things are going to break

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 30 '22 02:11 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Dec 07 '22 02:12 github-actions[bot]