Giter Site home page Giter Site logo

[Bug]: Abnormally long load times when initially opening Freetube, behaviour not present when "Open New Window" is pressed about freetube HOT 23 OPEN

hjc25 avatar hjc25 commented on June 2, 2024
[Bug]: Abnormally long load times when initially opening Freetube, behaviour not present when "Open New Window" is pressed

from freetube.

Comments (23)

absidue avatar absidue commented on June 2, 2024

Could you please try uninstalling and installing FreeTube again, maybe your anti-virus is slowing it down.

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

Could you please try uninstalling and installing FreeTube again, maybe your anti-virus is slowing it down.

No difference in initial load time.

Antimalware service executable shows no activity during this time.

from freetube.

eshsdhsd avatar eshsdhsd commented on June 2, 2024

Can you show me a screenshot and is it similar to this?

#4701

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

Can you show me a screenshot and is it similar to this?

#4701

I'm in the office today so I don't have access to the affected machine at this time, but that extended delay they are experiencing would be the same behaviour. For me, it happens on application launch, not refreshing or opening the new window.

If they can confirm whether or not it also happens at application launch then we have found at what point the abnormal behaviour is occurring.

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

Can you show me a screenshot and is it similar to this?

#4701

At home today, here's the behaviour on my home machine as you requested.

image

from freetube.

eshsdhsd avatar eshsdhsd commented on June 2, 2024

Can you show me a screenshot and is it similar to this?
#4701

At home today, here's the behaviour on my home machine as you requested.

image

Yes this is the same problem as I have, though it happen in new windows for me

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

Still not resolved as on 2024-03-24

from freetube.

absidue avatar absidue commented on June 2, 2024

Still not resolved as on 2024-03-24

It's difficult to try to fix something that we can't reproduce, even you said yourself it only happens on one of your computers.

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

Still not resolved as on 2024-03-24

It's difficult to try to fix something that we can't reproduce, even you said yourself it only happens on one of your computers.

Is there some verbose logging I can turn on, spit it out to a log file, and provide in here to see where the deadlock is when I open the app? That could help find the problem.

from freetube.

absidue avatar absidue commented on June 2, 2024

You can try opening the devtools once it has loaded by pressing CTRL+SHIFT+I and looking at the console tab, so see if any errors showed up (red text). Other than that no, we would have to create a custom build for you that litters time measuring code everywhere, which I've been meaning to do but haven't had the time for it, so I didn't mention it here earlier so that I wouldn't get hassled about it.

My only suspicion would have been that your computer is failing to fetch the instances list from api.invidious.io, which times out after 15 seconds (yes I know it's a long timeout but some people have slow connections especially the people that use FreeTube with tor). but that seems rather unlikely because otherwise it would be happening when you open new windows too (currently each window acts like it's own thing).

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

You can try opening the devtools once it has loaded by pressing CTRL+SHIFT+I and looking at the console tab, so see if any errors showed up (red text). Other than that no, we would have to create a custom build for you that litters time measuring code everywhere, which I've been meaning to do but haven't had the time for it, so I didn't mention it here earlier so that I wouldn't get hassled about it.

My only suspicion would have been that your computer is failing to fetch the instances list from api.invidious.io, which times out after 15 seconds (yes I know it's a long timeout but some people have slow connections especially the people that use FreeTube with tor). but that seems rather unlikely because otherwise it would be happening when you open new windows too (currently each window acts like it's own thing).

Scratch the last message, I've got it up now. F12 instead of the CTRL+SHIFT+I

In regards to your comment about failing to fetch invidious instances, looks like it too. Quickly opening F12 and hitting reload after opening FreeTube shows a 25.26s load time for instances.json.

image

However I am using Local API with Fallback to Non-Preferred Backend on Failure Disabled, so Invidious shouldn't be getting touched in this case.

image

And yes, this abnormal load time also doesn't happen when I push that "Open New Window" button. Loads almost instantly.

image

In regards to console logging, all I see after it opens is some feed.xml files returning a 404. Although presumably that the large quantity of subscriptions and YouTube falls back to an RSS feed.

image

When searching a channel, there are some errors on various views, as shown below.

image

There are many when viewing a channel page, so I'll put it in a code snippet instead.

image

(code tags aren't playing ball, so I've moved it to a pastebin instead)
https://pastebin.com/KE6JVPP7

On the video player, just the one regarding Merchandise.

image

from freetube.

eshsdhsd avatar eshsdhsd commented on June 2, 2024

You can try opening the devtools once it has loaded by pressing CTRL+SHIFT+I and looking at the console tab, so see if any errors showed up (red text). Other than that no, we would have to create a custom build for you that litters time measuring code everywhere, which I've been meaning to do but haven't had the time for it, so I didn't mention it here earlier so that I wouldn't get hassled about it.

My only suspicion would have been that your computer is failing to fetch the instances list from api.invidious.io, which times out after 15 seconds (yes I know it's a long timeout but some people have slow connections especially the people that use FreeTube with tor). but that seems rather unlikely because otherwise it would be happening when you open new windows too (currently each window acts like it's own thing).

It happens to me when opening a new window, stays blank for 5-9 seconds then displays

from freetube.

eshsdhsd avatar eshsdhsd commented on June 2, 2024

Still not resolved as on 2024-03-24

It's difficult to try to fix something that we can't reproduce, even you said yourself it only happens on one of your computers.

Throttle your disk mabye when opening a new window? I don't know what causes it.

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

Still not resolved as on 2024-03-24

It's difficult to try to fix something that we can't reproduce, even you said yourself it only happens on one of your computers.

Throttle your disk mabye when opening a new window? I don't know what causes it.

Throttle what disk? It's installed to the main boot drive, an NVME SSD.
The slowness occurs at any time when opening Freetube.

from freetube.

My-Random-Thoughts avatar My-Random-Thoughts commented on June 2, 2024

I am having the same issue, but only with v0.20.0. Opening the app shows a blank window for 10 seconds then everything loads. Using v0.19.2 everything loads quickly as expected (2-3 seconds).

I am using Linux Mint 21.3 with the FreeTube AppImage option.

EDIT: Additionally, the blank window is unresponsive to pressing F12 or CTRL+SHIFT+I for the dev console. Only once the 10 second delay has passed the console is shown and the videos load. No errors.

I am not using invidious at all:

image

from freetube.

eshsdhsd avatar eshsdhsd commented on June 2, 2024

When the it will load the content online before displaying the UI. The UI should Display first no matter what instantly regardless if connected to the internet or not, then load the content later.

Slow your internet and you will see the blank screen longer. It's disappointing 😞

EDIT but I found a potential fix of the problem

(Ui display immediate first and everything loads later)

from freetube.

absidue avatar absidue commented on June 2, 2024

@eshsdhsd It would have to display a completely empty UI and block you from doing anything with the app, if it fetched the content afterwards.

Also you are using Windows 7, which we don't officially support anymore, so things are going to be dreadfully slow for you regardless of the speed of your internet connection.

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

Slow your internet and you will see the blank screen longer. It's disappointing 😞

My home internet is 900/550 (Mbps) and it'll still be a delay upwards of 15 seconds before the UI loads, content near instant afterwards.

It's not internet related when other non-YouTube clients I use (Revanced, Tubular) are as responsive as FreeTube with fetching the content (after the initial slowdown FreeTube does have) I'm reporting.

from freetube.

absidue avatar absidue commented on June 2, 2024

It's really weird that only 3 FreeTube users have absolutely dreadful connections to api.invidious.io. If you find a way to trigger the problem on a device that it isn't currently happening on, please let me know, because currently there is nothing we can do without any way to reproduce the issue.

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

It's really weird that only 3 FreeTube users have absolutely dreadful connections to api.invidious.io. If you find a way to trigger the problem on a device that it isn't currently happening on, please let me know, because currently there is nothing we can do without any way to reproduce the issue.

You mean that for UI content being loaded from app launch right? The original ticket stated I was using the Local API, correct?

from freetube.

absidue avatar absidue commented on June 2, 2024

It doesn't matter what your preferred backend setting is, FreeTube will always fetch the list of Invidious instances from https://api.invidious.io/instances.json when a window is opened.

from freetube.

My-Random-Thoughts avatar My-Random-Thoughts commented on June 2, 2024

My issue seems to have fixed itself. It's now loading as quick as it should be.
No idea why?!

from freetube.

hjc25 avatar hjc25 commented on June 2, 2024

My issue seems to have fixed itself. It's now loading as quick as it should be. No idea why?!

Still a slow first load for me here

from freetube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.