Closed kira-bruneau closed 5 years ago
I looked into this a bit and found vdf library developer's comment on appinfo.vdf file structure here.
I've pushed a change to the appinfo_parse branch that should allow the file to be parsed properly without having to deal with flaky regexes. Can you test if it works?
It seems to be working for me, but @aanderse was the one who originally encountered the crash.
From at ValvePython/vdf#13 (comment) it looks like the app section contains a size. I'm assuming that describes the size of the vdf_data, so could that be used to speed up the parsing?
EDIT: I didn't see the "for real this time" commit, looks good :+1:
Issue was discussed at NixOS/nixpkgs#64705 and the resulting bug fix has been merged into master.
@aanderse encountered a crash while trying to test out a new package for protontricks on NixOS: NixOS/nixpkgs/pull/64705.
The issue was narrowed down to
find_proton_app
using a magic number in a regex when trying to lookup up the proton app id. This magic number should probably be made more generic, or the binary API for vdf should be used instead.https://github.com/Matoking/protontricks/blob/7f90359eb6fbbc84b57b2e6ef374535c7a9ecf95/src/protontricks/steam.py#L309-L318