CmlLib.Core icon indicating copy to clipboard operation
CmlLib.Core copied to clipboard

[BUG] Unexpected EOF (ICSharpZip)

Open kookii1 opened this issue 3 years ago • 3 comments

Unexpected EOF (ICSharpZip) exception when using the method CmLauncher.CreateProcess, may be cause while extracting natives from JAR file (I have my specific JAR file)

  • OS: Windows 11 Beta Insider 22H2
  • CmlLib.Core Version: 3.3.4
  • .NET version: .NET Framework 4.6.2

Bug was fixed when downgrading to 3.3.1

kookii1 avatar Jun 01 '22 18:06 kookii1

Older version just ignores exception when extracting native library is failed. On newer version, it throws exception to make it easier to find the cause when the launcher has problem. I recommend you to check if your native libraries are normal.

AlphaBs avatar Jun 04 '22 05:06 AlphaBs

I'm not sure if my JAR has the natives, but where from and how does the old version gets the natives? Since when opening the game, a folder called natives with the DLL's inside it is created

kookii1 avatar Jun 06 '22 00:06 kookii1

In <game_directory>/version/<your_version>/<your_version>.json file, you can check all libraries on libraries property. In each object of array, if there is natives-windows property, it is native library.

image

AlphaBs avatar Jun 07 '22 05:06 AlphaBs