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

Freezes when access a playlist #95

Open
hartontw opened this issue Jul 22, 2024 · 8 comments
Open

Freezes when access a playlist #95

hartontw opened this issue Jul 22, 2024 · 8 comments

Comments

@hartontw
Copy link

hartontw commented Jul 22, 2024

Hello,

Every time I open the application and try to navigate some list, the application show me the list or not even that and then freezes.
I've tried with several lists and several wait times before accessing some list, but always happens the same.
When is frozen the usage of CPU and RAM does not varies.

SO: Arch x86_64

With:
yay -S ytermusic or yay -S ytermusic-bin

imagen

# YTerMusic log file

INFO - Logger mode INFO [src/systems/logger.rs]
INFO - Init: 0ms [src/structures/performance.rs]
INFO - Startup: 0ms [src/structures/performance.rs]
INFO - Spawned clean task: 0ms [src/structures/performance.rs]
INFO - Loading config from "/home/harton/.config/ytermusic/config.toml" [src/config.rs]
INFO - Clean task: 0ms [src/structures/performance.rs]
INFO - Spawned system task: 38ms [src/structures/performance.rs]
INFO - Spawned last playlist task: 38ms [src/structures/performance.rs]
INFO - Spawned api task: 38ms [src/structures/performance.rs]
INFO - Running manager: 38ms [src/structures/performance.rs]
INFO - Database getter task on [src/tasks/local_musics.rs]
INFO - Local musics: 0ms [src/structures/performance.rs]
INFO - API task on [src/tasks/api.rs]
INFO - Last playlist task on [src/tasks/last_playlist.rs]
INFO - Last playlist: 0ms [src/structures/performance.rs]
INFO - Playlist Episodes for Later is too small so skipped [src/tasks/api.rs]
INFO - Browse playlist Episodes for Later: 196ms [src/structures/performance.rs]
...
INFO - Browse playlist Musica2: 1165ms [src/structures/performance.rs]
INFO - API task: 2559ms [src/structures/performance.rs]
INFO - Browse playlist Trending 20 Spain: 224ms [src/structures/performance.rs]
...
INFO - Browse playlist Electronic Radio • Focus: 5750ms [src/structures/performance.rs]
INFO - Appended S.T.A.L.K.E.R.: Shadow Of Chernobyl [Music] - Menu Theme to database [src/database/mod.rs]
ERROR - reached probe limit of 1048576 bytes. [/home/ccgauche/.cargo/git/checkouts/symphonia-8fbe6c90fc095688/bb7c180/symphonia-core/src/probe.rs]
INFO - Appended Epilogue to database [src/database/mod.rs]
INFO - Appended Firelake - Dirge for Planet (S.T.A.L.K.E.R. OST) to database [src/database/mod.rs]
INFO - Appended Я больше не могу спать to database [src/database/mod.rs]
INFO - Appended Main theme - Metro: Last Light Soundtrack to database [src/database/mod.rs]

With:
cargo install ytermusic --git https://github.com/ccgauche/ytermusic

imagen

# YTerMusic log file

INFO - Logger mode INFO [src/systems/logger.rs]
INFO - Init: 0ms [src/structures/performance.rs]
INFO - Startup: 0ms [src/structures/performance.rs]
INFO - Spawned clean task: 0ms [src/structures/performance.rs]
INFO - Loading config from "/home/harton/.config/ytermusic/config.toml" [src/config.rs]
INFO - Clean task: 0ms [src/structures/performance.rs]
INFO - Spawned system task: 35ms [src/structures/performance.rs]
INFO - Spawned last playlist task: 35ms [src/structures/performance.rs]
INFO - Spawned api task: 35ms [src/structures/performance.rs]
INFO - Running manager: 35ms [src/structures/performance.rs]
INFO - API task on [src/tasks/api.rs]
INFO - Last playlist task on [src/tasks/last_playlist.rs]
INFO - Last playlist: 0ms [src/structures/performance.rs]
INFO - Database getter task on [src/tasks/local_musics.rs]
INFO - Local musics: 0ms [src/structures/performance.rs]
INFO - Playlist Episodes for Later is too small so skipped [src/tasks/api.rs]
INFO - Browse playlist Episodes for Later VLSE: 138ms [src/structures/performance.rs]
...
INFO - Browse playlist Musica VLPL8CD0A40407A99765: 803ms [src/structures/performance.rs]
INFO - API task: 1858ms [src/structures/performance.rs]
INFO - Browse playlist Trabajo VLPLjcYLwR0PYnPAvqFL4VX20A7AXYZKv6t7: 877ms [src/structures/performance.rs]
...
INFO - Browse playlist My Supermix VLRDTMAK5uy_kset8DisdE7LSD4TNjEVvrKRTmG7a56sY: 1279ms [src/structures/performance.rs]
ERROR - panicked at /home/harton/.local/share/cargo/git/checkouts/rusty_ytdl-b94e6218ea8b0a29/c017540/src/utils.rs:517:50:
called `Result::unwrap()` on an `Err` value: JsError { inner: Native(JsNativeError { kind: Syntax, message: "abrupt end", cause: None, .. }) } [src/main.rs]

With:

git clone https://github.com/ccgauche/ytermusic.git
cd ytermusic
cargo build --release
# YTerMusic log file

INFO - Logger mode INFO [src/systems/logger.rs]
INFO - Init: 0ms [src/structures/performance.rs]
INFO - Startup: 0ms [src/structures/performance.rs]
INFO - Spawned clean task: 0ms [src/structures/performance.rs]
INFO - Loading config from "/home/harton/.config/ytermusic/config.toml" [src/config.rs]
INFO - Clean task: 0ms [src/structures/performance.rs]
INFO - Spawned system task: 40ms [src/structures/performance.rs]
INFO - Spawned last playlist task: 40ms [src/structures/performance.rs]
INFO - Spawned api task: 40ms [src/structures/performance.rs]
INFO - Running manager: 40ms [src/structures/performance.rs]
INFO - Last playlist task on [src/tasks/last_playlist.rs]
INFO - Last playlist: 0ms [src/structures/performance.rs]
INFO - API task on [src/tasks/api.rs]
INFO - Database getter task on [src/tasks/local_musics.rs]
INFO - Local musics: 0ms [src/structures/performance.rs]
INFO - Playlist Episodes for Later is too small so skipped [src/tasks/api.rs]
INFO - Browse playlist Episodes for Later VLSE: 126ms [src/structures/performance.rs]
...
INFO - Browse playlist Western VLPLjcYLwR0PYnNCAAlyo9X3c8WuFR2v0AqD: 652ms [src/structures/performance.rs]
INFO - API task: 1571ms [src/structures/performance.rs]
INFO - Browse playlist Retrowave VLPLjcYLwR0PYnMCQ9EaVCzy16bnLQejr6IG: 669ms [src/structures/performance.rs]
...
INFO - Browse playlist Wallpaper VLPLjcYLwR0PYnP5KxX06gggNmYsC2lscZsL: 1649ms [src/structures/performance.rs]
INFO - Appended Dragon Ball Z Soundtrack 81 to database [src/database/mod.rs]
INFO - Appended Naruto Shippuden OST 1 - Track 26 - Keisei Gyakuten ( Reverse Situation ) to database [src/database/mod.rs]
INFO - Appended Ultimate Battle to database [src/database/mod.rs]
INFO - Appended Dragon Power Mugendai [DBZ MOVIE 11 ENDING] to database [src/database/mod.rs]
ERROR - probe reach EOF at 0 bytes. [/home/harton/.local/share/cargo/git/checkouts/symphonia-8fbe6c90fc095688/4f41954/symphonia-core/src/probe.rs]
INFO - Appended Vegeta Breaking His Limits Theme - Dragon Ball Super OST - Epic Orchestral Version to database [src/database/mod.rs]
INFO - Appended Gohans Anger Theme to database [src/database/mod.rs]
INFO - Appended Black to database [src/database/mod.rs]
@progeroffline
Copy link

I have the same problem.

@ccgauche
Copy link
Owner

I fixed the issue. Youtube changed some antibot systems. The next release will contain the patch. You can clone the repo cargo clean then cargo build --release to get a fixed binary. If you can confirm me this works.

@progeroffline
Copy link

Thank you. I compiled the executable file and tested its operation. Freezes are almost gone, only when starting some playlists the program freezes.

@hartontw
Copy link
Author

cargo clean
git pull
cargo build --release

Now is working. Thank you.

@ccgauche
Copy link
Owner

@progeroffline Would you have the ID of a playlist that freezes the app ?

@progeroffline
Copy link

@ccgauche Now it crashes when it play songs from local playlist.

@ccgauche
Copy link
Owner

Have you tried resetting your cookies ?

@progeroffline
Copy link

@ccgauche, still don't works for me.

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