Git Product home page Git Product logo

Comments (4)

Delicious-Bacon avatar Delicious-Bacon commented on June 2, 2024 1

@Jleagle I've opened the PR. See if it's OK.

from steam-go.

Jleagle avatar Jleagle commented on June 2, 2024 1

Thanks!

from steam-go.

Delicious-Bacon avatar Delicious-Bacon commented on June 2, 2024

From my observation, the issue comes from escaped backslash followed by escaped quotation mark \\\".

Looking at the key-value pair,
"arguments" "\"Client.exe code:1622 locale:USA env:Regular ver:246 logip:35.162.171.43 logport:11000 chatip:54.214.176.167 chatport:8002 setting:\\\"file://data/features.xml\\\" sn:{tracking_uid} sid:{tracking_sessionid} /P:{passport} -Steam\" --nx:title=Mabinogi --nx:serviceId=880915460"

the error reports it broke at i in \\\"file.

If I am correct, it broke on f, not i and the error reports the wrong location (and character)!

This is what I see it reads:

"arguments": "\"Client.exe code:1622 locale:USA env:Regular ver:246 logip:35.162.171.43 logport:11000 chatip:54.214.176.167 chatport:8002 setting:\\\"

and then it breaks on f because it expects quotation marks to start the new key, not the i.


I implemented a temporary "fix" by replacing all \\\" marks with \" and it works. However, that's a hack.

b := app.GetBuffer()

kv, err := steamvdf.ReadBytes(b)
if err != nil {
    // temporary recover
    b = bytes.ReplaceAll(b, []byte(`\\\"`), []byte(`\"`))
    kv, err = steamvdf.ReadBytes(b)
    if err != nil {
        ph.steamClient.appBin.err = fmt.Errorf("[steamvdf.ReadyBytes] failed to read vdf: %w", err)
        return
    }
}

from steam-go.

Jleagle avatar Jleagle commented on June 2, 2024

Hey, thanks for the report. I think globalsteam.online gets this same error on prod and i never got to the bottom of it. Don't really have time to look into it but happy to accept a PR.

from steam-go.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.