[1.2.3062] Music PLayer periodically generates Root level exception

Started by BORZY, July 16, 2021, 04:50:19 PM

Previous topic - Next topic

BORZY


Root level exception in Update(): System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.MusicManagerPlay+<>c__DisplayClass33_0.<AppropriateNow>b__0 (Verse.Pawn p) [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x0003b] in <567df3e0919241ba98db88bec4c6696f>:0
  at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
  at Verse.GenCollection.Any[T] (System.Collections.Generic.List`1[T] list, System.Predicate`1[T] predicate) [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.AppropriateNow (Verse.SongDef song) [0x00094] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.<ChooseNextSong>b__32_0 (Verse.SongDef song) [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at Verse.GenCollection.RandomElementByWeight[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector) [0x00117] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.ChooseNextSong () [0x0009a] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.StartNewSong () [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.MusicUpdate () [0x0030b] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at (wrapper dynamic-method) Verse.Root_Play.Verse.Root_Play.Update_Patch1(Verse.Root_Play)
Verse.Log:Verse.Log.Error_Patch0(String, Boolean)
Verse.Root_Play:Verse.Root_Play.Update_Patch1(Root_Play)



Exception in Verse.Root_Play.Update: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.MusicManagerPlay+<>c__DisplayClass33_0.<AppropriateNow>b__0 (Verse.Pawn p) [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x0003b] in <567df3e0919241ba98db88bec4c6696f>:0
  at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
  at Verse.GenCollection.Any[T] (System.Collections.Generic.List`1[T] list, System.Predicate`1[T] predicate) [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.AppropriateNow (Verse.SongDef song) [0x00094] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.<ChooseNextSong>b__32_0 (Verse.SongDef song) [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at Verse.GenCollection.RandomElementByWeight[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector) [0x00117] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.ChooseNextSong () [0x0009a] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.StartNewSong () [0x00000] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at RimWorld.MusicManagerPlay.MusicUpdate () [0x0030b] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
  at Verse.Root_Play.Update () [0x00035] in <12a8d1a0a5a64eae86579edb3a3b30c7>:0
     - transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.RunloopExceptionHandler:Transpiler(IEnumerable`1 instructions)
     - postfix com.geneticrim: Void GeneticRim.Root_Play_Update_Patch:TickCountDown()


Disabling GeneticRim does not help.

Is there a way to completely disable ingame music, not just mute it ?