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

Corrupted files in macOS #1033

Open
EbrahimTahernejad opened this issue Oct 2, 2024 · 14 comments
Open

Corrupted files in macOS #1033

EbrahimTahernejad opened this issue Oct 2, 2024 · 14 comments
Labels

Comments

@EbrahimTahernejad
Copy link

EbrahimTahernejad commented Oct 2, 2024

System Details:

  • Operating System: macOS 14.6.1 | 14.6 | 15.0
  • Persepolis Version: 5.0.1
  • How do you install Persepolis? Repo

Issue Description and steps to reproduce:
In macOS, the download gets stopped (and the downloaded file will be corrupted if resumed) randomly.
Downgrading to 4.3.0 fixes it.
This might be an aria2 bug.

@alireza-amirsamimi
Copy link
Member

Hello
Is it possible to send me that part of the log that is related to that download? (from help menu select log window)

@EbrahimTahernejad
Copy link
Author

Alright. I have to install 5.0.1 again and download a large file.

@mh-firouzjah
Copy link

hey 👋
I have seen similar problem in kubuntu 2404, the downloads overflowed 100% (e.g 116%) and downloads didn't finish successfully but with an error, resuming download will stop at 100% and finish successfully.
currently I have a single download file corrupted among many successful downloads so I can't say for sure that corruption is a reault of this weird behavior or something else.

@mehdico
Copy link

mehdico commented Oct 10, 2024

Same issue:
Screenshot 2024-10-10 at 15 15 56

I'm using v5.0.0 on MacOS.

@alireza-amirsamimi
Copy link
Member

@mehdico Thanks for reporting. This bug was reported before. Resuming download fixes the problem. We will fix this bug for next version.

@mh-firouzjah
Copy link

@alireza-amirsamimi I have another downloaded file (both video files) corrupted now and I think there is a possibility that resuming a download for multiple time or the way persepolis merges the download parts may caused the issue; I'm not sure how to trace it

@alireza-amirsamimi
Copy link
Member

@alireza-amirsamimi I have another downloaded file (both video files) corrupted now and I think there is a possibility that resuming a download for multiple time or the way persepolis merges the download parts may caused the issue; I'm not sure how to trace it

My guess is that one part is downloaded twice. I will try to fix this bug tomorrow. This bug was reported here.

@mh-firouzjah
Copy link

@alireza-amirsamimi I've downloaded lots of videos using Persepolis and nearly all of them are corrupted. when playing the video at some point the player jumps to far ahead in time and using the keyboard arrow keys to return to the correct place doesn't work. I've checked the files using ffmpeg, mpv and other tools and all of these tools showed lots of errors within the videos. the worst case is with TV while playing videos on USB it will terminate and jumps out.
it seems aria2 is not replaced by a good alternative.
I've also tried to install older version of Persepolis to use aria2 but it just prompts me to use newer release of Persepolis and doesn't work, could you please make that version available too? linux world doesn't have a good alternative to IDM but that version of Persepolis was a bit more close to a good one.

@mehdico
Copy link

mehdico commented Oct 28, 2024

I still have the same problem even with 5.0.1

@cbdejavu
Copy link

Not sure if my issue is related since it is occurring on a different OS platform but it sounds as if maybe it is.
I am running CachyOS (Arch Linux) Using Kernel Linux 6.12.0-1-cachyos-bore
64gb ram
Gnome DE 47.1
i7-12700 cpu

I'm running Persepolis v5.0.0-1 from the Arch Linux extra repositories

I just downloaded the latest .iso file for cachyos linux that was hosted by source forge and every time I downloaded the file it isn't getting the correct SHA256 hash. So I just downloaded the file regularly from firefox and the file has the correct SHA256 hash so when downloading using persepolis v5.0.0 the file is being corrupted every time (I tried downloading it 3 separate times from 3 separate mirrors and then to further test I also downloaded it from the "direct download link" which was located at cdn77.cachyos.org and had the same results of the hash failing.

To test I uninstalled v5.0.0 and rolled back to version 4.2.0 which was the prior version and I can download the same file from source forge and from the direct cdn77.cachyos.org link with no problems at all and the downloaded file has the correct SHA256 hash.

Also as a note I'm not experiencing the "over-download" issue, the files move along until they come up saying 100%.
Also at no point did the download stop or fail, so a resume was never necessary or performed.
The size of the file is 2.8gb (it is the latest release of the cachyos ISO release).

@alireza-amirsamimi
Copy link
Member

@cbdejavu Hello
can you test AUR version please?

@cbdejavu
Copy link

I just installed persepolis-git 5.0.1.r0.g1e46168-1 from the AUR. Downloading now I'll update with the results (completely unrelated but the fusion style issue where it looks terrible in gnome but switching to another style makes it usable is still an issue in this latest release, being as it isn't a gnome app it isn't really personally all that concerning to me just first thing I noticed when installing the new version again and since it is the the only style that is pretty much unusable in gnome maybe isn't the best choice for default style). I'll post the results here when the download finishes getting a nice 3.45Mib/s download rate (vs about 500K when just using the browser which is why I love persepolis to begin with).

@cbdejavu
Copy link

That latest version (persepolis-git 5.0.1.r0.g1e46168-1) from the AUR isn't working either. I'm getting a corrupted file. Also of note, the corruption isn't consistent meaning that the SHA256 value is different every time with these corrupted files so it isn't like the file is being padded or something else in a consistent manner.

For now I'll roll back to 4.2.0 since that version is working fine. Let me know if you'd like me to test any other updates.

@alireza-amirsamimi
Copy link
Member

@cbdejavu
Thanks for reporting. I am trying to fix this bug.

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

No branches or pull requests

5 participants