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

panic: invalid encoding: expected even number of bytes for UTF-16 encoded text #87

Open
aditya-K2 opened this issue Nov 7, 2021 · 4 comments

Comments

@aditya-K2
Copy link

I am trying to get metadata from songs but now I get this weird panic .
Everything was working fine before and now i am getting panics for the same songs for which this worked before

@dhowden
Copy link
Owner

dhowden commented Nov 8, 2021

Can you provide the panic stack trace? A sample file would be great too.

@aditya-K2
Copy link
Author

panic: invalid encoding: expected even number of bytes for UTF-16 encoded text

goroutine 5 [running]:
main.getAlbumArt({0xc00007e080, 0x7f})
/H/code/goMP/imageUtils.go:28 +0x2c5
main.openImage({0xc00007e080, 0x7f}, 0x0)
/H/code/goMP/render.go:46 +0x6f
created by main.(*Renderer).Start
/H/code/goMP/render.go:65 +0x8f

@aditya-K2
Copy link
Author

A sample file would be great too.

It is happening to most files I open ( some exceptions )
even the tag commandline utilitiy returns error
but used to work properly before

sample

@aditya-K2
Copy link
Author

even the tag commandline utilitiy returns error but used to work properly before

error reading file: invalid encoding: expected even number of bytes for UTF-16 encoded text

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