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 UTF8 error (similar to Issue #9), fatal error when trying to run in cargo #23

Closed
OverseerCave opened this issue May 28, 2021 · 7 comments

Comments

@OverseerCave
Copy link

OverseerCave commented May 28, 2021

Similar to Issue #9, steam-tui puts up a fatal error when starting it normally:

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

However, when trying to run it with cargo run 2> err , I get another error:

Problem("Unknown command sent [0mUsage:\n\tlogin <username> [<password>] [<Steam guard code>]\n")

err.txt

So I tried to build it again (using cargo build --release) and this happened

I am using Ubuntu 21.04 over a SSH connection

Edit: I just tested this in the VM's console (no SSH involved this way) and while it didn't do stuff like in that picture, it still failed like above

@dmadisetti
Copy link
Owner

Hmm, I can look at this later tonight but can you run the unit tests to see if they break on your machine? What version of steamcmd are you using?

Also, try deleting ~/.config/steam-tui. The login thing is strange

2> won't work since I removed the logging. I think I can hide it under a feature flag, so I might put it back in, and get you to run again.

Thanks!

@OverseerCave
Copy link
Author

OverseerCave commented May 28, 2021

This may sound stupid, but how do I run the unit tests?

dpkg reports the version to be "Version: 0~20180105-4" when freshly installed, but steamcmd autoupdates when it launches

@dmadisetti
Copy link
Owner

dmadisetti commented May 28, 2021 via email

@OverseerCave
Copy link
Author

These are the results of the unit-test.txt

from what I can tell, it passed the tests

@dmadisetti
Copy link
Owner

Yeah unit tests are working. Are there any special characters in your steam username? Maybe windows line endings? What happened when you tried to delete the cache? Same problem?

Trying to think what it could be

@dmadisetti
Copy link
Owner

I think what may have happened is that you had an old version of the code, it crashed, and it got your config in a strange state.
Playing around, I also got my config into a weird state- so I wrote some code to try and fix that.
Try pulling main and rerunning?

@OverseerCave
Copy link
Author

Success! No errors, no weirdness now!

I also ran cargo build --release and ran the executable and still successful!

I will now close this issue, thanks for fixing!

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