zopfli-rs / zopfli

A Rust implementation of the Zopfli compression algorithm.
Apache License 2.0
37 stars 4 forks source link

panic at reading file #19

Closed Arian-p1 closed 1 year ago

Arian-p1 commented 1 year ago

thread 'main' panicked at 'ERROR: Failed to read file!: TextDecode("Found invalid encoding")', src/helpers/gen_funcs.rs:16:10

AlexTMjugador commented 1 year ago

Hi! There is no way that this library may cause that panic, as it doesn't contain the source file mentioned in the panic message. Can you please describe your execution environment, what are you doing and what did you expect in more detail? Otherwise, I can't act on this issue, and I'll have to close it eventually.

Arian-p1 commented 1 year ago

Hi! There is no way that this library may cause that panic, as it doesn't contain the source file mentioned in the panic message. Can you please describe your execution environment, what are you doing and what did you expect in more detail? Otherwise, I can't act on this issue, and I'll have to close it eventually.

i was listening to music and it got crash after choosing another song I guess it have trouble to read some file I tried to found the code but as u said its in lib and why it will crash isn't that better to just return the error ? Also the files are mp3

Arian-p1 commented 1 year ago

also can you give me the info that i need to know to add the a dir to queue and add shuffle option

AlexTMjugador commented 1 year ago

I don't think I can effectively help you with this problem, sorry. Zopfli is a compression tool, not a music player. My guess is that you tried to play a file with badly formatted text metadata and the music player didn't handle it gracefully. Please contact the authors of the music player you're using, they'll most likely be able to help you, or at least give you a better picture of what's going on.

Arian-p1 commented 1 year ago

I don't think I can effectively help you with this problem, sorry. Zopfli is a compression tool, not a music player. My guess is that you tried to play a file with badly formatted text metadata and the music player didn't handle it gracefully. Please contact the authors of the music player you're using, they'll most likely be able to help you, or at least give you a better picture of what's going on.

at least can you make it to avoid panic ?

mqudsi commented 1 year ago

This doesn't have anything to do with zopfli, maybe you are using an app that is using zopfli?

AlexTMjugador commented 1 year ago

at least can you make it to avoid panic ?

For the reasons stated above, I don't think I can do anything on my end to avoid this panic.

Arian-p1 commented 1 year ago

This doesn't have anything to do with zopfli, maybe you are using an app that is using zopfli?

I'm opening it with alacritty and fish as shell

mqudsi commented 1 year ago

(I’m a fish dev too, you’re in luck!)

Zopfli (this project) is not an executable. You can’t “run” this project. You ran an app that used this project.