talonos2 / FinalWinterBugs

0 stars 0 forks source link

buillt version of the game perma-breaks if music not found in SoundVolumeMap. The connection to the SoundVolumeMap needs to be more robust #339

Closed Xillith closed 3 years ago

Xillith commented 3 years ago

Even when sound manager is found there are null reference exceptions for the music manager.start()

NullReferenceException: Object reference not set to an instance of an object at MusicManager.Start () [0x00050] in <7589a90e924e41ef91e7d4867974ed22>:0

Xillith commented 3 years ago

This is log #2, where after the game couldn't find the sound in the SoundVolumeMap. (Log #1 below shows that error)

NullReferenceException: Object reference not set to an instance of an object at MusicManager.Start () [0x00050] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x00100] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x00100] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x000e8] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x00100] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x000e8] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x00100] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x00100] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at NewGameController.Update () [0x000e8] in :0

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at UnityEngine.Events.InvokableCall1[T1].Invoke (T1 args0) [0x00011] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.CachedInvokableCall1[T].Invoke (System.Object[] args) [0x00001] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.UnityEvent1[T0].Invoke (T0 arg0) [0x0007d] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.EventSystems.EventTrigger.Execute (UnityEngine.EventSystems.EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) [0x00039] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.EventTrigger.OnPointerEnter (UnityEngine.EventSystems.PointerEventData eventData) [0x00001] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerEnterHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00070] in :0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.BaseInputModule:HandlePointerExitAndEnter(PointerEventData, GameObject) UnityEngine.EventSystems.PointerInputModule:ProcessMove(PointerEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update()

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at UnityEngine.Events.InvokableCall1[T1].Invoke (T1 args0) [0x00011] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.CachedInvokableCall1[T].Invoke (System.Object[] args) [0x00001] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.UnityEvent1[T0].Invoke (T0 arg0) [0x0007d] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.EventSystems.EventTrigger.Execute (UnityEngine.EventSystems.EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) [0x00039] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.EventTrigger.OnPointerEnter (UnityEngine.EventSystems.PointerEventData eventData) [0x00001] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerEnterHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00070] in :0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.BaseInputModule:HandlePointerExitAndEnter(PointerEventData, GameObject) UnityEngine.EventSystems.PointerInputModule:ProcessMove(PointerEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update()

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at UnityEngine.Events.InvokableCall1[T1].Invoke (T1 args0) [0x00011] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.CachedInvokableCall1[T].Invoke (System.Object[] args) [0x00001] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.UnityEvent1[T0].Invoke (T0 arg0) [0x0007d] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.EventSystems.EventTrigger.Execute (UnityEngine.EventSystems.EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) [0x00039] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.EventTrigger.OnPointerEnter (UnityEngine.EventSystems.PointerEventData eventData) [0x00001] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerEnterHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00070] in :0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.BaseInputModule:HandlePointerExitAndEnter(PointerEventData, GameObject) UnityEngine.EventSystems.PointerInputModule:ProcessMove(PointerEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update()

(Filename: Line: 0)

NullReferenceException: Object reference not set to an instance of an object at SoundManager.SafeGetVolume (System.String s) [0x00015] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at UnityEngine.Events.InvokableCall1[T1].Invoke (T1 args0) [0x00011] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.CachedInvokableCall1[T].Invoke (System.Object[] args) [0x00001] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.UnityEvent1[T0].Invoke (T0 arg0) [0x0007d] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.EventSystems.EventTrigger.Execute (UnityEngine.EventSystems.EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) [0x00039] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.EventTrigger.OnPointerEnter (UnityEngine.EventSystems.PointerEventData eventData) [0x00001] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerEnterHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00070] in :0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.BaseInputModule:HandlePointerExitAndEnter(PointerEventData, GameObject) UnityEngine.EventSystems.PointerInputModule:ProcessMove(PointerEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update()

(Filename: Line: 0)

Xillith commented 3 years ago

Log #1, showing the first time something isn't found in the Sound Volume Map:

NullReferenceException: Object reference not set to an instance of an object at MusicManager.Start () [0x00050] in :0

(Filename: Line: 0)

Does not contain MenuMove

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

IOException: Sharing violation on path C:\Users\Xillith\Desktop\unity test alt-tab\Project Nuclear_Data\Sound\soundVolumeMap.json at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001b7] in :0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool) at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in :0 at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in :0 at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool) at SoundManager.SaveSoundMap () [0x0000f] in :0 at SoundManager.SafeGetVolume (System.String s) [0x00044] in :0 at SoundManager.PlaySound (System.String clip, System.Single vol) [0x00000] in :0 at NewGameController.RefreshSelectedOption (System.Int32 menuOptionSelected) [0x00020] in :0 at UnityEngine.Events.InvokableCall1[T1].Invoke (T1 args0) [0x00011] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.CachedInvokableCall1[T].Invoke (System.Object[] args) [0x00001] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.Events.UnityEvent1[T0].Invoke (T0 arg0) [0x0007d] in <9308f262ecf043548754995729ae177c>:0 at UnityEngine.EventSystems.EventTrigger.Execute (UnityEngine.EventSystems.EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) [0x00039] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.EventTrigger.OnPointerEnter (UnityEngine.EventSystems.PointerEventData eventData) [0x00001] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerEnterHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in <fe30cf7b8e244803b772811c92186c2e>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00070] in :0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.BaseInputModule:HandlePointerExitAndEnter(PointerEventData, GameObject) UnityEngine.EventSystems.PointerInputModule:ProcessMove(PointerEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update()

(Filename: Line: 0)