blish-hud / Pathing

[Module] The official pathing module which adds marker and trail support to Blish HUD.
https://blishhud.com/docs/markers/
MIT License
13 stars 10 forks source link

Crash if marker packs are removed between reloads. #38

Closed dlamkins closed 2 years ago

dlamkins commented 2 years ago

When unloading markers with the Pathing Module's dropdown option, removing markers from the /markers directory, then reloading markers, blish will go in a long loop, then crash.

Blish HUD v0.10.0-PullRequest0443.218+Branch.pull-443-merge.Sha.886f5be8df721866e161ba6c8d660e30714ff6cf 15:21:10.9306 | WARN | BhModule.Community.Pathing.PackInitiator | Loading pack failed. System.IO.FileNotFoundException: Could not find file 'C:\Users\Quentin\Documents\Guild Wars 2\addons\blishhud\markers\tw_ALL_IN_ONE.taco'. File name: 'C:\Users\Quentin\Documents\Guild Wars 2\addons\blishhud\markers\tw_ALL_IN_ONE.taco' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding) at System.IO.Compression.ZipFile.OpenRead(String archiveFileName) at TmfLib.Content.AsyncSafeZipArchive.GetArchive() in C:\Users\dade\source\repos\TmfLib\Content\AsyncSafeZipArchive.cs:line 51 at TmfLib.Content.AsyncSafeZipArchive.d13.MoveNext() in C:\Users\dade\source\repos\TmfLib\Content\AsyncSafeZipArchive.cs:line 65 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at TmfLib.Content.ZipArchiveReader.d6.MoveNext() in C:\Users\dade\source\repos\TmfLib\Content\ZipArchiveReader.cs:line 37 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at TmfLib.Pack.d14.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 46 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at TmfLib.Pack.d16.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 73 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at TmfLib.Pack.<LoadMapAsync>d__17.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 86 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at BhModule.Community.Pathing.PackInitiator.d__18.MoveNext() in C:\Users\dade\source\repos\Pathing\PackInitiator.cs:line 152

15:21:10.9306 | WARN | BhModule.Community.Pathing.PackInitiator | Loading pack failed. System.IO.FileNotFoundException: Could not find file 'C:\Users\Quentin\Documents\Guild Wars 2\addons\blishhud\markers\tw_ALL_IN_ONE.taco'. File name: 'C:\Users\Quentin\Documents\Guild Wars 2\addons\blishhud\markers\tw_ALL_IN_ONE.taco' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding) at System.IO.Compression.ZipFile.OpenRead(String archiveFileName) at TmfLib.Content.AsyncSafeZipArchive.GetArchive() in C:\Users\dade\source\repos\TmfLib\Content\AsyncSafeZipArchive.cs:line 51 at TmfLib.Content.AsyncSafeZipArchive.d13.MoveNext() in C:\Users\dade\source\repos\TmfLib\Content\AsyncSafeZipArchive.cs:line 65 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at TmfLib.Content.ZipArchiveReader.d6.MoveNext() in C:\Users\dade\source\repos\TmfLib\Content\ZipArchiveReader.cs:line 37 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at TmfLib.Pack.d14.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 46 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at TmfLib.Pack.d16.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 73 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at TmfLib.Pack.<LoadMapAsync>d__17.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 86 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at BhModule.Community.Pathing.PackInitiator.d__18.MoveNext() in C:\Users\dade\source\repos\Pathing\PackInitiator.cs:line 152

15:21:10.9306 | WARN | BhModule.Community.Pathing.PackInitiator | Loading pack failed. System.IO.FileNotFoundException: Could not find file 'C:\Users\Quentin\Documents\Guild Wars 2\addons\blishhud\markers\tw_ALL_IN_ONE.taco'. File name: 'C:\Users\Quentin\Documents\Guild Wars 2\addons\blishhud\markers\tw_ALL_IN_ONE.taco' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding) at System.IO.Compression.ZipFile.OpenRead(String archiveFileName) at TmfLib.Content.AsyncSafeZipArchive.GetArchive() in C:\Users\dade\source\repos\TmfLib\Content\AsyncSafeZipArchive.cs:line 51 at TmfLib.Content.AsyncSafeZipArchive.d13.MoveNext() in C:\Users\dade\source\repos\TmfLib\Content\AsyncSafeZipArchive.cs:line 65 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at TmfLib.Content.ZipArchiveReader.d6.MoveNext() in C:\Users\dade\source\repos\TmfLib\Content\ZipArchiveReader.cs:line 37 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at TmfLib.Pack.d14.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 46 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at TmfLib.Pack.d16.MoveNext() in C:\Users\dade\source\repos\TmfLib\Pack.cs:line 73 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ... (997 KB left)

REF: https://discord.com/channels/531175899588984842/534492173362528287/887070829752516628

dlamkins commented 2 years ago

This has been resolved.