• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

KarkinosTM

Recruit
Jan 13, 2025
6
1

Information​

When reporting a crash, stability or performance problems, please ensure that you have the files ready for submission​

[CLICK] I understand

Required​

Summary​

[FileSystem] [ERROR] Cannot find central directory ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory

Steps to reproduce​

I don't know the reason. The game suddenly shuts down by itself. It happens very often.

Expected Result​

Play smoothly without crashing or shutting down unexpectedly.

Actual Result​

I don't know the reason. The game suddenly shuts down by itself. It happens very often.

Game Version​

1.2.0f1

Affected Feature​

  • Crash

Platform​

  • Steam

Save Game​

View attachment Rotherham.cok

Crash Dump and Logs​

View attachment Player.log

Additional Information​

Screenshot or Video​



 
  • 1Like
Reactions:
I have the same issue in each player.log, also the minidumps. Even after a fresh reinstall, so that mods can not be responsible for this bug.

With internet search one can find lots of entries, not only belonging to cities skylines. The main reason in other cases seems to be that a zipped file can not be opened because SharpZipLib needs a .zip file and not a .7z file.

The problem is that the logging in player.log is more than detailed: a file is not found, but one detail is missing: which file, what is the name of the file?

So the logging is not helpful or useful. This bug should be fixed too.

The minidumps are also not helpful for the performance of cities skylines II

If the call of the unknown file is not important, why can’t it be left out? And if it is important, why is there no fix? If this call is important and doesn’t work, it might be the reason for several more bugs.
 
  • 1Like
Reactions:
the icsharp error is not the cause of the crash. This simply could mean that there is a zip file that shouldn't be there in C:/Users/asate/AppData/LocalLow/Colossal Order/Cities Skylines II/

More likely however, is that one or more of your save files is corrupt. The .cok format is a version of zip and the ICSharp process opens that. It detected corruption on one or more of them.
If you use skyve, check the skyve log. It will tell you which files are the bad ones in that log.

Your player.log itself doesn't show the cause of the crash, unfortunately. It is possible that the save you are loading is itself corrupted, but I think the error would show something different in the log.
Can you re-upload your player.log here next time it crashes? I'm not sure this one gives much info here.
 
the icsharp error is not the cause of the crash. This simply could mean that there is a zip file that shouldn't be there in C:/Users/asate/AppData/LocalLow/Colossal Order/Cities Skylines II/
Maybe you are right ad the icsharp error doest cause the crash. Then KarkinosTM reported two bugs, the icsharp error AND the crash. To give more informatio nfor the first bug: This bug occurs in my game constantly even after a fresh reinstall and without mods. A savegame is also not responsible because I just loaded my game without loading a savegame:

Result is a minidump (before was an exception because of a discord error, also after a fresh reinstall without mods and without a savegame:)
Setting breakpad minidump AppID = 949230
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561198263756338 [API loaded no]
[FileSystem] [ERROR] Cannot find central directory ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00045] in <f3bcf3993f3a4398a2bfc3d4fa2a89c4>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.Stream stream, System.Boolean leaveOpen) [0x00079] in <f3bcf3993f3a4398a2bfc3d4fa2a89c4>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.Stream stream) [0x00000] in <f3bcf3993f3a4398a2bfc3d4fa2a89c4>:0
at Colossal.IO.AssetDatabase.FileSystemDataSource.PopulateFromPackage (System.Boolean warnCollision, Colossal.Hash128 packageGuid, System.Collections.Generic.List`1[T] newData) [0x00031] in <9eb68b01d26d40548065f8e9cb4f235c>:0
at Colossal.IO.AssetDatabase.FileSystemDataSource.AddEntry (Colossal.IO.AssetDatabase.DataSourceModification modification, System.Boolean warnCollision, System.String path, System.Type type, System.Int64 size, System.Int64 offset, Colossal.Hash128 guid, Colossal.Hash128 package, System.String packageEntryName, System.Boolean fromCache, System.Collections.Generic.List`1[T] newData) [0x0023d] in <9eb68b01d26d40548065f8e9cb4f235c>:0
at Colossal.IO.AssetDatabase.FileSystemDataSource.PopulateFromDirectory (System.String root, System.Boolean priorityData, System.Threading.CancellationToken ct, System.Collections.Generic.List`1[T] newData) [0x00156] in <9eb68b01d26d40548065f8e9cb4f235c>:0

It looks like the icsharp bug cannot load asset data. Are you sure that the missing data doesnt have anything to do with the crash? Which data can not be read by the system? Is it important, then why do we ignore this bug? Is it not important, then why do we need the icsharp call?
 
well it reads anything that looks like an archive. This would include zip files or .cok files. The .cok files aren't just for saved games or maps, they are used to store the game settings and a number of mods and user made assets use them too for their own settings and stored values.

If you want to try and use Skyve mod, the Skyve log will tell you exactly which file(s) it is that is causing the issue via the log it generates-unfortunately none of the game logs reveal which one it is by itself without the third party mod. It would help track down the problem file at least. Hope that makes sense.
 
well it reads anything that looks like an archive. This would include zip files or .cok files. The .cok files aren't just for saved games or maps, they are used to store the game settings and a number of mods and user made assets use them too for their own settings and stored values.

If you want to try and use Skyve mod, the Skyve log will tell you exactly which file(s) it is that is causing the issue via the log it generates-unfortunately none of the game logs reveal which one it is by itself without the third party mod. It would help track down the problem file at least. Hope that makes sense.
Hi, Qualiall! Thanks for your information. There is one point of view I can't agree. It is not "unfortunately" they do not track down the name of the file. It is a bug. And as this bug prevents to find other bug locations it is a severe bug that should be fixed with high priority. Do you agree? In my log file the missing file causes 68 lines of logging, almost the history of the world since the dinosaurs is written there but not the name of the missing file.

Following your advice I checked the skyve log. There were entries of missing files, just as you said. These entries had to with skyve itself. Skyve tried to find files that didn't exist. I add my report form 16 of december 2024.

Great mod!

I have two questions to the contents of my SkyveApp.log:

1. Isnt the address of the folder ....Cities Skylines II\.cache\mods? The address of the folder that Skyve didnt find doesnt exist.
2. I dont have the saves anymore. If skyve wants to open saves, how can I configure them?

Best regards




[INFO 0,000] Skyve Debug v0.12.6.0
[INFO 0,002] Now = 2024-12-16 07:09:45
[INFO 0,003] Here = C:\Program Files (x86)\Skyve CS-II
[INFO 0,003] SaveLocation = C:\Users\peter\AppData\LocalLow\Colossal Order\Cities Skylines II\ModsData
[INFO 0,233] Folder Settings:
Platform: Windows
UserIdType: steam
UserIdentifier: 76561198263756338
GamingPlatform: Steam
GamePath: C:\Program Files (x86)\Steam\steamapps\common\Cities Skylines II
AppDataPath: C:\Users\peter\AppData\LocalLow\Colossal Order\Cities Skylines II
SteamPath: C:\program files (x86)\steam
[INFO 0,585] Checking for internet connection..
[INFO 0,586] Starting PDX SDK..
[INFO 1,610] [Auto] PlaysetChanged
[INFO 1,614] [Auto] PlaysetUpdated
[INFO 1,616] Loading packages..
[WARN 1,619] Folder not found: 'C:\Users\peter\AppData\LocalLow\Colossal Order\Cities Skylines II\Mods'
[INFO 2,056] [Auto] RefreshUI
[INFO 2,668] [Auto] RefreshUI
[INFO 4,246] [Auto] RefreshUI
[FATAL 28,652] Failed to load asset: C:\Users\peter\AppData\LocalLow\Colossal Order\Cities Skylines II\Saves\76561198263756338\AutoSave01-Oktober-00-13-41.cok
System.IO.InvalidDataException: Das Ende des Datensatzes im zentralen Verzeichnis wurde nicht gefunden.
bei System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
bei System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)
bei System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
bei Skyve.Systems.CS2.Utilities.AssetsUtil.<GetAssets>d__9.MoveNext() in E:\Programming\Skyve-CS2\Skyve.Systems.CS2\Utilities\AssetsUtil.cs:Zeile 64.

[FATAL 28,838] Failed to load asset: C:\Users\peter\AppData\LocalLow\Colossal Order\Cities Skylines II\Saves\76561198263756338\AutoSave15-Juli-10-41-53.cok
System.IO.InvalidDataException: Das Ende des Datensatzes im zentralen Verzeichnis wurde nicht gefunden.
bei System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
bei System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)
bei System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
bei Skyve.Systems.CS2.Utilities.AssetsUtil.<GetAssets>d__9.MoveNext() in E:\Programming\Skyve-CS2\Skyve.Systems.CS2\Utilities\AssetsUtil.cs:Zeile 64.

So I decided to unstall skyve for a test. I loaded my game once more without loading a save game and I still catch the minidump and the icsharp errors. Naturally I reinstalled skyve. And now? What's next?
 
  • 1Like
Reactions:
sorry I misread in my earlier reply. Not sure why it still shows those corrupted saves if you deleted them from the saves folder. They don't show up in the load game screen either?
 
Last edited:
Thank you, Qualiall.

First of all we should remember that the original bug in this thread was reported by KarkinosTM. I should have opened an own one but the bug in my logfiles were nearly the same.

I deleted the old savefiles and resetted skyve as you wrote. No more icsharp errors. But once more: without your help I had never thought about a configuration problem in skyve. Why is that not reported in the error log? In my opinion this is still a bug and it stole your time to support me.

I still see accesses to the deleted files in the skyveService.log. So the reset in skyve didn't "kill" everything. Whatelse do I have to reset/delete in skyve to clean the configuration completely?

Now I have a new minidump with lots of entries like
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Cities Skylines II/Cities2_Data/MonoBleedingEdge/data-0000022AEEFB2020.dll

But this is another story. Or the same story?
 
Hi,

Do you still experience this issue with the currently, with the newest update (1.2.3f1)?
I am not sure. The main problem is the very bad quality of the error logging in the player.log. The error logging only wrote there was in exception due to an access to sharpziplib because of a missing file but the error logging didnt give the name of the file. That I could only find out with the skyve-logs but only because Qualiall explained. Thanks again!

I cannot reproduce the bug but that doesnt mean that it is fixed.

As I didn't find any hint in the patch notes I suppose it is not fixed. A better quality of the error logging would help many players to find problems themselves and would help you to save lots of time.
 
Hi,

Do you still experience this issue with the currently, with the newest update (1.2.3f1)?
My game also has this problem, but sometimes it doesn't cause a crash; instead, it gets stuck for a very long time especially when saving the game, this problem is bound to occur.
At the very beginning, saving the game would cause a lag of 2 to 3 seconds. As my city expands, saving will cause a lag of about one minute.
屏幕截图 2025-01-31 153640.png
 
Screenshot 2025-02-05 213406.png


I'm also experiencing consistent crashing to desktop and the same errors after a few minutes of playing the game, this is after the latest patch. Verify file integrity on Steam found nothing.
 
Same here, but game run's fine if just running simulation, but as soon as I start doing things in-game, it crashes, at random.
The Isharp errors (not causing crash) are due to a save that is corrupted. In the folder
C:\Users\%username%\AppData\LocalLow\Colossal Order\Cities Skylines II\Saves\76561198026544124\
Delete this save-as it cannot be recovered
AutoSave12-februar-19-07-41.cok

for the actual crash cause, I am suspecting Urban Promenades DLC in this one-specifically, the mixed use buildings-you can either try uninstalling Urban Promenades or, while paused, remove any Urban Promenades mixed use buildings from the city. Hopefully a patch will come soon for it.
What draws my suspicion to Urban Promenades as cause
Code:
[WARN]  Transitioned property has been changed, but the transition animation wasn't started.
Colossal.UI.LogHandler:WriteLog(Severity, String, UInt64)
cohtml.Net.ILogHandler:SwigDirectorWriteLog(Int32, String, UInt64, IntPtr)
cohtml.Net.cohtmlNativePINVOKE:View_Advance(HandleRef, UInt32, Double)
cohtml.Net.View:Advance(UInt32, Double)
 
  • 1Like
Reactions:
The Isharp errors (not causing crash) are due to a save that is corrupted. In the folder
C:\Users\%username%\AppData\LocalLow\Colossal Order\Cities Skylines II\Saves\76561198026544124\
Delete this save-as it cannot be recovered
AutoSave12-februar-19-07-41.cok

for the actual crash cause, I am suspecting Urban Promenades DLC in this one-specifically, the mixed use buildings-you can either try uninstalling Urban Promenades or, while paused, remove any Urban Promenades mixed use buildings from the city. Hopefully a patch will come soon for it.
What draws my suspicion to Urban Promenades as cause
You, my Lord, is a knight in shining armor<3
Only error left is Discord… but I guess that one is always going to be there xD
Anyhow, thank you sooo much for the help.
 
The Isharp errors (not causing crash) are due to a save that is corrupted. In the folder
C:\Users\%username%\AppData\LocalLow\Colossal Order\Cities Skylines II\Saves\76561198026544124\
Delete this save-as it cannot be recovered
AutoSave12-februar-19-07-41.cok

for the actual crash cause, I am suspecting Urban Promenades DLC in this one-specifically, the mixed use buildings-you can either try uninstalling Urban Promenades or, while paused, remove any Urban Promenades mixed use buildings from the city. Hopefully a patch will come soon for it.
What draws my suspicion to Urban Promenades as cause
Code:
[WARN]  Transitioned property has been changed, but the transition animation wasn't started.
Colossal.UI.LogHandler:WriteLog(Severity, String, UInt64)
cohtml.Net.ILogHandler:SwigDirectorWriteLog(Int32, String, UInt64, IntPtr)
cohtml.Net.cohtmlNativePINVOKE:View_Advance(HandleRef, UInt32, Double)
cohtml.Net.View:Advance(UInt32, Double)
How do you know from the logs which specific save file it is? I am facing the error too but have no idea which one it is