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

[Bug] Application freezes #100

Closed
Virus288 opened this issue Sep 6, 2024 · 14 comments
Closed

[Bug] Application freezes #100

Virus288 opened this issue Sep 6, 2024 · 14 comments

Comments

@Virus288
Copy link

Virus288 commented Sep 6, 2024

Env: Arch linux

Build method: Aur ( also tried manually )

Whats happening: Application freezes as soon as at least 1 song is downloaded. Local playback also freezes application

What did I expect to happend: To download and play songs

When did it occur: Around a year ago out of the blue. Did not update nor anything. While "debugging", I saw a pattern. If ytermusic downloads older songs, everything is working. As soon as it manages to download anything never ( few years ), it freezes. Cannot reproduce this now. Might be just my imagination.

Logs:
log.txt

@Virus288 Virus288 changed the title Application freezes [Bug] Application freezes Sep 6, 2024
@AndrePssoa
Copy link

Same problem here.
I'm using Manjaro.

@ccgauche
Copy link
Owner

Do you have the same issue while building from the GH repo ?

@Virus288
Copy link
Author

@ccgauche Yes. I just built this app with cargo from source and still freezes. Only error in logs is

ERROR - probe reach EOF at 0 bytes. [/home/virus288/.cargo/git/checkouts/symphonia-8fbe6c90fc095688/4f41954/symphonia-core/src/probe.rs]

If you'll need some1 to test stuff, you can mark me ;)

@ccgauche
Copy link
Owner

Would you have the video id that crashes ? Seems like the file is empty... Maybe YouTube changed some download things

@luapDDas
Copy link

I've been having the same issue, I'm not sure what the difference is, but I either get the #96 issue with some songs, or the full system freeze with others.
I tested with type o negative - black no. 1 (https://music.youtube.com/watch?v=JmijMVT3x-0) and that instantly freezes, same probe.rs error message.

@Virus288
Copy link
Author

Thats the playlist I am downloading. Ytermusic shows that 5 songs are downloaded. I assume 5 from the top https://www.youtube.com/watch?v=oEM2M15Ypfw&list=PLhCAPpVUinTCLrE77JMzldvGRsDy1vX5I

@abaudhuin
Copy link

First time user, I have this issue with every songs

@Lite5h4dow
Copy link

same issue, nixos.

@zalakGoat
Copy link

Having the same issue on EndeavourOS.

@ccgauche
Copy link
Owner

ccgauche commented Dec 1, 2024

Can someone try deleting the Cargo.toml file and fetching from master to see if it works ?

@ccgauche
Copy link
Owner

ccgauche commented Dec 1, 2024

I think it was fixed in the last rusty-ytdl

@Virus288
Copy link
Author

Virus288 commented Dec 1, 2024

@ccgauche I just built it. My older config was invalid so I've added new cookie. I think that something changed in cookies, or your app changed something, because I keep on geting

ERROR - The `/home/virus288/.config/ytermusic/headers.txt` file is not configured correctly.

Full log

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/virus288/.config/ytermusic/config.toml" [src/config.rs]
INFO - Clean task: 0ms [src/structures/performance.rs]
INFO - Spawned system task: 10ms [src/structures/performance.rs]
INFO - Spawned last playlist task: 10ms [src/structures/performance.rs]
INFO - Spawned api task: 10ms [src/structures/performance.rs]
INFO - Running manager: 10ms [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]
ERROR - The `/home/virus288/.config/ytermusic/headers.txt` file is not configured correctly.
The cookies are expired or invalid. [src/tasks/api.rs]
ERROR - InvalidCookie [src/tasks/api.rs]
INFO - API task: 1129ms [src/structures/performance.rs]

And I am sure that I add proper cookies

Edit: Grammar

@ccgauche
Copy link
Owner

ccgauche commented Dec 1, 2024

I fixed the issue but be sure to enable raw mode for copying most of the time I had this issue it was because I copied the preview of the cookies which contains an UTF8 character (…) @Virus288

@Virus288
Copy link
Author

Virus288 commented Dec 2, 2024

It seems that for whatever reason, cookies from firefox ( librewolf ) are invalid. Cookies from chrome are working, which is strange, but google likes blocking people for fun...

Anyway. Seems to be working fine how. Huge thanks for fix <3 .

image

@Virus288 Virus288 closed this as completed Dec 2, 2024
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

7 participants