Is there an existing issue for this?
Operating System
Windows 11
CKAN Version
1.35.0
Games
KSP 1
Game Version
1.12.5
Did you make any manual changes to your game folder (i.e., not via CKAN)?
No
Describe the bug
Launching CKAN after updating to 1.35.0 from 1.34.4 fails to launch, only displaying a command window with the attached log
Steps to reproduce
- Have an
.acf file in your Steam library with something weird about it (still investigating, but so far one user has found a file containing nothing but null bytes)
- Go to ckan.exe
- Click ckan.exe
- wait for error
Workaround
Delete corrupted .acf files from your Steam library
Relevant log output
Unhandled Exception: ValveKeyValue.KeyValueException: Found end of file when another token type was expected. ---> System.InvalidOperationException: Attempted to finalize object while in state InObjectBetweenKeyAndValue.
at ValveKeyValue.Deserialization.KV1TextReader.FinalizeCurrentObject(Boolean explicit)
at ValveKeyValue.Deserialization.KV1TextReader.FinalizeDocument()
at ValveKeyValue.Deserialization.KV1TextReader.ReadObject()
--- End of inner exception stack trace ---
at ValveKeyValue.Deserialization.KV1TextReader.ReadObject()
at ValveKeyValue.KVSerializer.Deserialize(Stream stream, KVSerializerOptions options)
at CKAN.SteamLibrary.<>c__DisplayClass3_0.<LibraryPathGames>b__0(String acfFile)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.<ConcatIterator>d__59`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at CKAN.SteamLibrary..ctor()
at CKAN.GameInstanceManager..ctor(IUser user, IConfiguration configuration)
at CKAN.CmdLine.MainClass.Execute(GameInstanceManager manager, CommonOptions opts, String[] args)
at CKAN.CmdLine.MainClass.Main(String[] args)
|
.Select(acfFile => acfParser.Deserialize<SteamGame>(File.OpenRead(acfFile)) |
Is there an existing issue for this?
Operating System
Windows 11
CKAN Version
1.35.0
Games
KSP 1
Game Version
1.12.5
Did you make any manual changes to your game folder (i.e., not via CKAN)?
No
Describe the bug
Launching CKAN after updating to 1.35.0 from 1.34.4 fails to launch, only displaying a command window with the attached log
Steps to reproduce
.acffile in your Steam library with something weird about it (still investigating, but so far one user has found a file containing nothing but null bytes)Workaround
Delete corrupted
.acffiles from your Steam libraryRelevant log output
CKAN/Core/SteamLibrary.cs
Line 60 in 7568b2e