talonos2 / FinalWinterBugs

0 stars 0 forks source link

Game locks if you load the game and immediatly press the continue run button #410

Closed Xillith closed 3 years ago

Xillith commented 3 years ago

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 48)

Unloading 8 Unused Serialized files (Serialized files now loaded: 1) UnloadTime: 1.491900 ms

Unloading 336 unused Assets to reduce memory usage. Loaded Objects now: 20128. Total: 43.123100 ms (FindLiveObjects: 0.950400 ms CreateObjectMapping: 0.604100 ms MarkObjects: 41.313300 ms DeleteObjects: 0.254900 ms)

ArgumentException: The Object you want to instantiate is null. at UnityEngine.Object.Instantiate[T] (T original) [0x0003d] in <9308f262ecf043548754995729ae177c>:0 at SpawnVFXCOmmand.ExecuteAsync () [0x00015] in :0 at Naninovel.ScriptPlayer+d114.MoveNext () [0x00095] in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in :0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in :0 at Naninovel.ScriptPlayer+d115.MoveNext () [0x00172] in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in :0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in :0 at UnityCommon.AsyncExtensions+d14.MoveNext () [0x0005b] in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b6_0 (System.Object state) [0x00000] in :0 at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00002] in <9308f262ecf043548754995729ae177c>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.WorkRequest:Invoke() UnityEngine.UnitySynchronizationContext:Exec() UnityEngine.UnitySynchronizationContext:ExecuteTasks()

(Filename: <9308f262ecf043548754995729ae177c> Line: 0)

Current Theory: Unity doesn't realize the asset is needed so 'unloads' it. In this case Sara as Sara wasn't in the previous Town scene. This is probably due to the Delete message we are getting.

There are multiple GOs named PawnSara that could be deleted wuth fwdeletego. I will delete them all. This might not be what you intend. UnityEngine.Debug:LogWarning(Object) DeleteGOCommand:ExecuteAsync() (at Assets/Scripts/Dialogue/DeleteGOCommand.cs:24) Naninovel.d114:MoveNext() (at Assets/Naninovel/Runtime/ScriptPlayer/ScriptPlayer.cs:537) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(d114&) Naninovel.ScriptPlayer:ExecutePlayedCommandAsync() Naninovel.d115:MoveNext() (at Assets/Naninovel/Runtime/ScriptPlayer/ScriptPlayer.cs:563) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() Naninovel.d114:MoveNext() (at Assets/Naninovel/Runtime/ScriptPlayer/ScriptPlayer.cs:550) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() Naninovel.Commands.d23:MoveNext() (at Assets/Naninovel/Runtime/Command/Text/PrintText.cs:117) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() Naninovel.d48:MoveNext() (at Assets/Naninovel/Runtime/Actor/TextPrinter/UITextPrinter.cs:106) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() UnityCommon.d26:MoveNext() (at Assets/Naninovel/ThirdParty/UnityCommon/Runtime/CoroutineRunner.cs:70) System.Threading.Tasks.TaskCompletionSource`1:TrySetResult(CoroutineRunner) UnityCommon.CoroutineRunner:HandleOnCompleted() (at Assets/Naninovel/ThirdParty/UnityCommon/Runtime/CoroutineRunner.cs:117) UnityCommon.d1:MoveNext() (at Assets/Naninovel/ThirdParty/UnityCommon/Runtime/Utilities/AsyncExtensions.cs:21)

Which throws this error: (in unity explorer)

Destroying assets is not permitted to avoid data loss. If you really want to remove an asset use DestroyImmediate (theObject, true); UnityEngine.Object:Destroy(Object) DeleteGOCommand:ExecuteAsync() (at Assets/Scripts/Dialogue/DeleteGOCommand.cs:29) Naninovel.d114:MoveNext() (at Assets/Naninovel/Runtime/ScriptPlayer/ScriptPlayer.cs:537) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(d114&) Naninovel.ScriptPlayer:ExecutePlayedCommandAsync() Naninovel.d115:MoveNext() (at Assets/Naninovel/Runtime/ScriptPlayer/ScriptPlayer.cs:563) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() Naninovel.d114:MoveNext() (at Assets/Naninovel/Runtime/ScriptPlayer/ScriptPlayer.cs:550) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() Naninovel.Commands.d23:MoveNext() (at Assets/Naninovel/Runtime/Command/Text/PrintText.cs:117) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() Naninovel.d48:MoveNext() (at Assets/Naninovel/Runtime/Actor/TextPrinter/UITextPrinter.cs:106) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult() UnityCommon.d26:MoveNext() (at Assets/Naninovel/ThirdParty/UnityCommon/Runtime/CoroutineRunner.cs:70) System.Threading.Tasks.TaskCompletionSource`1:TrySetResult(CoroutineRunner) UnityCommon.CoroutineRunner:HandleOnCompleted() (at Assets/Naninovel/ThirdParty/UnityCommon/Runtime/CoroutineRunner.cs:117) UnityCommon.d1:MoveNext() (at Assets/Naninovel/ThirdParty/UnityCommon/Runtime/Utilities/AsyncExtensions.cs:21)