dmadisetti / steam-tui

Rust TUI client for steamcmd
MIT License
858 stars 17 forks source link

Crash with UTF8error #9

Closed alchemistswater closed 3 years ago

alchemistswater commented 3 years ago

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 commented 3 years ago

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

alchemistswater commented 3 years ago

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, :tm: and at least one with an accented o, ö and a registered trademark symbol, ®. I don't know if any of those count.

dmadisetti commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

alchemistswater commented 3 years ago

Nope, loaded just fine this time. No issues.

dmadisetti commented 3 years ago

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