dlebansais / PgBrewer

Helps managing beers and other liquors one can make in the Project: Gorgon MMORPG
0 stars 0 forks source link

Crash ~3 seconds after every launch on Windows 11 #2

Closed darsto closed 3 months ago

darsto commented 3 months ago

Happens every time on latest release:

$ ./PgBrewer.exe

Unhandled Exception: System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count
   at System.IO.BinaryReader.ReadBytes(Int32 count)
   at WpfLayout.IconTools.ExecuteDownload(String iconFile) in C:\Projects\PgBrewer\WpfLayout.Wpf\IconTools.cs:line 265
   at WpfLayout.IconTools.ExecuteDownload() in C:\Projects\PgBrewer\WpfLayout.Wpf\IconTools.cs:line 217
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
darsto commented 3 months ago

I managed to fix it by downloading the icons with PgJsonParse, but the readme doesn't say it's required

dlebansais commented 3 months ago

I've stopped maintaining this app, but the next time I change something I'll make sure icons are directly in the app. I'm pretty sure devs of Project: Gorgon don't really care in this case.