[20:52:52.621] [.NET TP Worker/FATAL] [tML]: 卸载时发生一个或多个错误,必须重新启动tModLoader以防止发生更多问题。
SortingFolders 无法正常卸载。无论加载过程中是否有任何错误,模组作者都必须使用防御性编程(Defensive Programming)来确保卸载完成。
System.NullReferenceException: Object reference not set to an instance of an object.
at SortingFolders.SortingFolderClass.Save() in SortingFolders.cs:line 324
at SortingFolders.SortingFolders.Unload() in SortingFolders.cs:line 432
at Terraria.ModLoader.Mod.UnloadContent() in tModLoader\Terraria\ModLoader\Mod.Internals.cs:line 32
at DMD<System.Void Terraria.ModLoader.ModContent:UnloadModContent()>()
at ForOneAdvertisementSystem.ForOneAdvertisementSystem.On_ModContentUnloadModConetent(Action orig)
at Hook<System.Void ForOneAdvertisementSystem.ForOneAdvertisementSystem::On_ModContentUnloadModConetent(System.Action)>()
at SyncProxy<System.Void Terraria.ModLoader.ModContent:UnloadModContent()>()
at Terraria.ModLoader.ModLoader.Mods_Unload()
at Terraria.ModLoader.ModLoader.Unload()
[20:52:52.623] [.NET TP Worker/WARN] [tML]: 静默捕获异常:
System.BadImageFormatException: Read out of bounds.
at System.Reflection.Throw.OutOfBounds()
at System.Diagnostics.StackTraceSymbols.GetSourceLineInfo(Assembly assembly, String assemblyPath, IntPtr loadedPeAddress, Int32 loadedPeSize, Boolean isFileLayout, IntPtr inMemoryPdbAddress, Int32 inMemoryPdbSize, Int32 methodToken, Int32 ilOffset, String& sourceFile, Int32& sourceLine, Int32& sourceColumn)
at System.Diagnostics.StackFrameHelper.InitializeSourceInfo(Int32 iSkip, Boolean fNeedFileInfo, Exception exception)
at DMD<System.Void System.Diagnostics.StackTrace:CaptureStackTrace(System.Int32, System.Boolean, System.Exception)>(StackTrace this, Int32 skipFrames, Boolean fNeedFileInfo, Exception e)
at Hook<System.Void Terraria.ModLoader.Engine.LoggingHooks::Hook_StackTrace_CaptureStackTrace(Terraria.ModLoader.Engine.LoggingHooks+orig_StackTrace_CaptureStackTrace,System.Diagnostics.StackTrace,System.Int32,System.Boolean,System.Exception)>(StackTrace , Int32 , Boolean , Exception )
at SyncProxy<System.Void System.Diagnostics.StackTrace:CaptureStackTrace(System.Int32, System.Boolean, System.Exception)>(StackTrace , Int32 , Boolean , Exception )
at System.Exception.get_StackTrace()
at System.Exception.ToString()
at Terraria.ModLoader.ModLoader.DisplayLoadError(String msg, Exception e, Boolean fatal, Boolean continueIsRetry)
at Terraria.ModLoader.ModLoader.Unload()
at Terraria.ModLoader.ModLoader.Load(CancellationToken token)
at Terraria.ModLoader.ModLoader.<>c__DisplayClass47_0.<BeginLoad>b__0()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
[20:52:54.148] [MAIn Thread/DEBUG] [tML]: Process.Start (UseShellExecute = True): "tModLoader-Logs"
[20:55:28.581] [Main Thread/DEBUG] [tML]: Process.Start (UseShellExecute = True): "tModLoader-Logs" |