FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Channels "Channel list" tab empty: "0 channel(s) found."

Open redactedscribe opened this issue 1 year ago • 11 comments
trafficstars

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have encountered this bug in the official downloads of FreeTube.
  • [X] I have searched the issue tracker for open and closed issues that are similar to the bug report 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.
  • [X] This issue contains only one bug.

Describe the bug

This has been present since 0.19.2 at least for me. Updating to 0.21.0 did not change the situation. It's been so many months since I've seen anything under this tab I'm not even sure what it's meant to look like. In fact, I might have never seen anything under this tab. All I know is that it shows 0 channels when presumably it should display something.

Expected Behavior

Should not be an empty page since I have many subscriptions.

Issue Labels

content not loading

FreeTube Version

0.21.0

Operating System Version

Windows 11 Pro

Installation Method

Scoop (Unofficial)

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

Unsure

Additional Information

No response

Nightly Build

redactedscribe avatar Jul 02 '24 14:07 redactedscribe

Please follow these steps:

  1. Launch FreeTube
  2. Open the dev tool with ctrl + shift + i
  3. Go to the Channel List page
  4. See if there are any red errors listed in the console of the dev tools
  5. Make a screenshot and upload here

Would this be a firewall issue? I don't see anything by FreeTube.exe blocked. My second guess is that it's related the instance I'm using. I should try another.

FreeTube_2024-07-07_13-21-02

The same in text:

# AFTER LAUNCHING FREETUBE:

renderer.js:2 VIDEOJS: WARN: using Vhs.BANDWIDTH_VARIANCE is UNSAFE be sure you know what you are doing
(anonymous) @ renderer.js:2
index.html#/subscriptions:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: app://bundle/fonts/Roboto-Regular.ttf
rQeGWScM...-c0x00ffffff-no-rj:1 

       Failed to load resource: the server responded with a status of 404 ()
Nb2CB5_NTO6xs44W...

Failed to load resource: ...
Failed to load resource: ...
Failed to load resource: ...
Failed to load resource: ...
Failed to load resource: ...

etc...

# AFTER PRESSING CHANNELS TAB:

renderer.js:2 TypeError: Failed to construct 'URL': Invalid URL
    at r.thumbnailURL (renderer.js:2:1518280)
    at renderer.js:2:1520234
    at r.$e [as _l] (renderer.js:2:604247)
    at r.<anonymous> (renderer.js:2:1520006)
    at t._render (renderer.js:2:632762)
    at r.n (renderer.js:2:663335)
    at t.get (renderer.js:2:613997)
    at t.run (renderer.js:2:614730)
    at Pn (renderer.js:2:616703)
    at Array.<anonymous> (renderer.js:2:611434)
ki @ renderer.js:2
Ci @ renderer.js:2
wi @ renderer.js:2
t._render @ renderer.js:2
n @ renderer.js:2
t.get @ renderer.js:2
t.run @ renderer.js:2
Pn @ renderer.js:2
(anonymous) @ renderer.js:2
Ei @ renderer.js:2
Promise.then (async)
Ti @ renderer.js:2
Ri @ renderer.js:2
In @ renderer.js:2
t.update @ renderer.js:2
t.$forceUpdate @ renderer.js:2
(anonymous) @ renderer.js:2
l @ renderer.js:2
Si @ renderer.js:2
i @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
c @ renderer.js:2
(anonymous) @ renderer.js:2
setTimeout (async)
Va @ renderer.js:2
(anonymous) @ renderer.js:2
requestAnimationFrame (async)
(anonymous) @ renderer.js:2
requestAnimationFrame (async)
$a @ renderer.js:2
C @ renderer.js:2
Wa @ renderer.js:2
remove @ renderer.js:2
C @ renderer.js:2
S @ renderer.js:2
Qa.nodeOps @ renderer.js:2
t._update @ renderer.js:2
n @ renderer.js:2
t.get @ renderer.js:2
t.run @ renderer.js:2
Pn @ renderer.js:2
(anonymous) @ renderer.js:2
Ei @ renderer.js:2
Promise.then (async)
Ti @ renderer.js:2
Ri @ renderer.js:2
In @ renderer.js:2
t.update @ renderer.js:2
t.notify @ renderer.js:2
set @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
cn.updateRoute @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
sn @ renderer.js:2
(anonymous) @ renderer.js:2
n @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
(anonymous) @ renderer.js:2
g @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
n @ renderer.js:2
sn @ renderer.js:2
cn.confirmTransition @ renderer.js:2
cn.transitionTo @ renderer.js:2
e.push @ renderer.js:2
(anonymous) @ renderer.js:2
wn.push @ renderer.js:2
YB.push @ renderer.js:2
v @ renderer.js:2
Si @ renderer.js:2
i @ renderer.js:2
a._wrapper @ renderer.js:2

Thanks.

redactedscribe avatar Jul 07 '24 10:07 redactedscribe

My second guess is that it's related the instance I'm using

is your primary API set to Invidious?

It's set to Local API.

redactedscribe avatar Jul 07 '24 22:07 redactedscribe

Is there more than one instance of FreeTube running? Look in Task Manager if there is a windowless stale FreeTube.exe process, kill it and try again. There's an issue where the new instance can't read the databases because the first one that crashed is still blocking file access.

Gorrrg avatar Jul 11 '24 17:07 Gorrrg

I haven't had the time to look into the causes of this, but I don't believe there are any other running instances:

Taskmgr_2024-07-11_20-50-37

I honestly don't ever use the channels tab so it's not much of an issue for me (not sure what I'm missing out on). When I have some time, I'll play around with FreeTube and see if I can get the channels to show somehow.

redactedscribe avatar Jul 11 '24 17:07 redactedscribe

Also, which DB file should contain the Channels tab data? Might serve as a starting point for me. I also sync the FreeTube AppData folder to the cloud (to MEGA via Selective Sync method) to keep my settings backed up if that might cause some issue.

redactedscribe avatar Jul 11 '24 17:07 redactedscribe

see https://docs.freetubeapp.io/usage/data-location/#notable-files

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 Aug 09 '24 01:08 github-actions[bot]

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 Sep 07 '24 01:09 github-actions[bot]

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 08 '24 01:10 github-actions[bot]

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 06 '24 01:11 github-actions[bot]

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 Dec 05 '24 02:12 github-actions[bot]

Would you like to provide your .db file so i can look around if i can manage to find the culprit in there?

Fixed the issue! Found a single ID in profiles.db with no name or thumbnail: {"id":"MalteMarten","name":"","thumbnail":""}, and after deleting it, the Channels tab now populates instead of showing "0 channel(s) found.".

I resubscribed to the channel and profiles.db now reads {"id":"UCXs4k986CY3jHkJ8XfOataQ","name":"Malte Marten","thumbnail":"https://yt3.ggpht.com/w7XTvogibxD9DP9ENUk2HAiTL9lcviUdHe2t9Yn2-r70lY-t5H-Ulg82jfX-tL_7pZWHO3IRQwA=s176-c-k-c0x00ffffff-no-rj-mo"}.

Not sure how the bugged entry was created in my profiles.db but removing it solved this.


There is however another bug which appeared -- which actually seems to have fixed itself after several visits to the Channels tab, restarting FreeTube between each time:

The profiles.db file would balloon in size because it entire contents i.e. {"name":"All Channels","bgColor":"#FFD600","textColor":"#000000","subscriptions":[{"id":"...<all subscriptions>..."}],"_id":"allChannels"} would get duplicated a number of times, e.g. 10, and then reduce down to just the 1 again after quitting FreeTube. This happened reproducibly about 5 times, until it wouldn't happen anymore. The file size nor contents no longer begin duplicating a number of times when visiting the Channels tab. Looks like FreeTube needed several cycles to get some of its data back in sync is my guess.

redactedscribe avatar Dec 30 '24 18:12 redactedscribe