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

Crash with UTF8error #9

Closed
alchemistswater opened this issue May 11, 2021 · 7 comments
Closed

Crash with UTF8error #9

alchemistswater opened this issue May 11, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@alchemistswater
Copy link

Whilst building the library once logging in, it gets to about 50 something percent and then errors with this error:

Problem("Utf8Error { valid_up_to: 4502, error_len: Some(1) }")

Any ideas?

This is on arch linux, installed from the AUR with yay. I tried the steam-tui, and the steam-tui-bin just in case.

@dmadisetti dmadisetti added the bug Something isn't working label May 11, 2021
@dmadisetti
Copy link
Owner

That's super weird. I'm wondering whether it's the regex library.
Do you have any games with non-standard latin characters? Ü Ø 天 🎉 ?

@alchemistswater
Copy link
Author

It's possible, I took a look through my library and couldn't find anything obvious, but I have a few visual novels, so I wouldn't rule it out.
The only things I can see that look strange are a few games with the trademark symbol in the name, ™️ and at least one with an accented o, ö and a registered trademark symbol, ®.
I don't know if any of those count.

@dmadisetti
Copy link
Owner

Hmm. I tried replicating failure in unit tests, but couldn't. Do you have cargo? Can you check out that branch and run
cargo run 2> err

@alchemistswater
Copy link
Author

Alright, I git cloned the repo and switched to the unicode bug branch, ran the cargo run 2> err and the result is attached. Hope it helps!
err.txt

@dmadisetti
Copy link
Owner

Thanks! Did it crash this time, or was it alright?

@alchemistswater
Copy link
Author

Nope, loaded just fine this time. No issues.

dmadisetti added a commit that referenced this issue May 12, 2021
Added unit test and soft utf8 parsing. v0.1.1
@dmadisetti
Copy link
Owner

Yeah, I think it was this: "Maxis�" who is the developer of 'Spore'. Anyway, unit-test catches it now. It'll update the crate at least, but I still need to get an aur workflow setup. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants