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

Countdown timer freezing #56

Open
recifecode opened this issue Apr 27, 2022 · 4 comments
Open

Countdown timer freezing #56

recifecode opened this issue Apr 27, 2022 · 4 comments

Comments

@recifecode
Copy link

recifecode commented Apr 27, 2022

Sometimes it happens to get the download queue stopped, then when I click the extension, I notice that countdown timer (shown as "STATUS") stucks.

Not sure about the root cause, but I believe it happens when you keep using the Chrome window, opening and closing some others tabs, which is something completely necessary to organize your queue of courses.

image

@recifecode
Copy link
Author

I think it's related to the browser tab closing.

If I start the extension by downloading Course A and open other courses in new tabs, the functions (lets say like that), keep going under the course A tab instead of executing in a wide scope (valid for other tabs). That's my guess for the timer getting stopped and download queue consequently. It happens when we close the tab that was the originator of the funcion call.

@recifecode
Copy link
Author

BTW, the uncaught error below is related to the timer and keeps incrementing the number of errors only in the console within the tab that started the 'download' while the extension is busy downloading videos:

Uncaught (in promise) Error: The message port closed before a response was received. (course-player:1)

@arminanton
Copy link
Contributor

I noticed that behaviour when I left the extension downloading the stuff and went to do something else in other tab or in another app (outside chrome). I suspect that it froze due to the memory garbage collector that chrome has to better manage your memory consumption.. Could also be that the cookie token expired and needed to be renewed by loading a new video to play on the site.
For me, the only way around this was to reload the page and begin a new course download using e and c keys, which would then re-download all the files that were previously downloaded. (perhaps if we had a way to check if the file already exists and if the filesize matches).. not sure.

@ai1000ws
Copy link

I always get stuck in the same way with the last two to three videos. I've tried closing all windows, enabling and disabling the addons, attempting possible keyboard shortcuts, and changing the options, but nothing seems to work. I'm just wondering if there are any suggestions. Re-downloading is an option, but it's becoming complicated and always creates duplicate files, making it a time-wasting endeavor so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants