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

Ytermusic freezes indefinately - ERROR - probe reach EOF at 0 bytes #108

Open
Lite5h4dow opened this issue Feb 3, 2025 · 6 comments
Open

Comments

@Lite5h4dow
Copy link

Lite5h4dow commented Feb 3, 2025

after selecting a song or ytermusic attempting to download a song, ytermusic freezes forever with this error in the log:

ERROR - probe reach EOF at 0 bytes. [/build/cargo-vendor-dir/symphonia-core-0.5.4/src/probe.rs]

happens even after clearing db and cache

@Lite5h4dow
Copy link
Author

Yes ive tried cookies and user agents from different browsers (schizofox and chromium) and no dice

@restalex
Copy link

restalex commented Feb 4, 2025

It's an error from the Synphonia decoder create. Seems to be because the downloaded file size is invalid. Is this issue appears for any downloaded songs? If not, can you provide the video id or the incriminated mp4 file?

@Lite5h4dow
Copy link
Author

Lite5h4dow commented Feb 4, 2025

Is this issue appears for any downloaded songs?

Yes, it's all of them. Any song and it just freezes.

.cache/ytermusic/downloads
at 10:36 ❯ ls -al
total 32
drwxr-xr-x 2 lotus users 4096 Feb  4 10:28 .
drwxr-xr-x 3 lotus users 4096 Feb  4 10:28 ..
-rw-r--r-- 1 lotus users  134 Feb  4 10:28 apauw3GioIw.json
-rw-r--r-- 1 lotus users    0 Feb  4 10:28 apauw3GioIw.mp4
-rw-r--r-- 1 lotus users  159 Feb  4 10:28 ByS13qHW3Gk.json
-rw-r--r-- 1 lotus users    0 Feb  4 10:28 ByS13qHW3Gk.mp4
-rw-r--r-- 1 lotus users  119 Feb  4 10:28 jo_sp22BbvE.json
-rw-r--r-- 1 lotus users    0 Feb  4 10:28 jo_sp22BbvE.mp4
-rw-r--r-- 1 lotus users  114 Feb  4 10:28 pkigEQEjEnE.json
-rw-r--r-- 1 lotus users    0 Feb  4 10:28 pkigEQEjEnE.mp4
-rw-r--r-- 1 lotus users  235 Feb  4 10:28 P-X-iHTe5PI.json
-rw-r--r-- 1 lotus users    0 Feb  4 10:28 P-X-iHTe5PI.mp4
-rw-r--r-- 1 lotus users  137 Feb  4 10:28 TwpLzAt4UxM.json
-rw-r--r-- 1 lotus users    0 Feb  4 10:28 TwpLzAt4UxM.mp4

@restalex
Copy link

restalex commented Feb 4, 2025

All your mp4s have a filesize of zero. Theoretically the downloader lib check the length of the mp4, but it seems that it's not the case for you. If you installed ytermusic manually, try to do cargo update before cargo build --release in order to update the download dependencies.
If It does not resolve your problem, there is a test in the download.rs source to tackle the problem at line 194, called video_download_test. If you can run it, paste the results of this test here.

@Lite5h4dow
Copy link
Author

im using nix, and i just built using the unstable branch (which should be building from source link here: https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=ytermusic)

@restalex
Copy link

restalex commented Feb 5, 2025

I'm not very familiar with NixOS, but if you want to keep ytermusic as a package, I think you need to create an update request for the dependencies at the nixpkgs github. From what I see, the package has not been updated since 3 months ago. In the issue, please inform the maintainers that the cargo.lock file needs to be regenerated to get the last version of the rusty_ytdl commit as it has not been updated yet in this project.

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

2 participants