ccgauche / ytermusic

An in terminal youtube music client with focus on privacy, simplicity and performance
Apache License 2.0
361 stars 19 forks source link

Freezes when access a playlist #95

Open hartontw opened 1 month ago

hartontw commented 1 month ago

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 commented 1 month ago

I have the same problem.

ccgauche commented 1 month ago

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 commented 1 month ago

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

hartontw commented 1 month ago
cargo clean
git pull
cargo build --release

Now is working. Thank you.

ccgauche commented 1 month ago

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

progeroffline commented 1 month ago

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

ccgauche commented 1 month ago

Have you tried resetting your cookies ?

progeroffline commented 1 month ago

@ccgauche, still don't works for me.