pardeike / Rimionship

A RimWorld Mod for the Rimionship Tournaments
MIT License
1 stars 5 forks source link

Exception in newly started game at choose-pawns dialog #6

Closed pardeike closed 2 years ago

pardeike commented 2 years ago
Error while generating pawn. Rethrowing. Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.ThingOwnerUtility.GetAllThingsRecursively (Verse.IThingHolder holder, System.Collections.Generic.List`1[T] outThings, System.Boolean allowUnreal, System.Predicate`1[T] passCheck) [0x00040] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.ThingOwnerUtility.GetAllThingsRecursively[T] (Verse.Map map, Verse.ThingRequest request, System.Collections.Generic.List`1[T] outThings, System.Boolean allowUnreal, System.Predicate`1[T] passCheck, System.Boolean alsoGetSpawnedThings) [0x00077] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.MapPawns.get_AllPawnsUnspawned () [0x00018] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.MapPawns.get_AllPawns () [0x00000] in <81af9f8a18324e17b286924a43555a7c>:0 
  at RimWorld.PawnsFinder.get_AllMaps () [0x00027] in <81af9f8a18324e17b286924a43555a7c>:0 
  at RimWorld.PawnsFinder.get_AllMapsWorldAndTemporary_Alive () [0x0000a] in <81af9f8a18324e17b286924a43555a7c>:0 
  at RimWorld.PawnsFinder.get_AllMapsWorldAndTemporary_AliveOrDead () [0x0000a] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.PawnGenerator.GeneratePawnRelations (Verse.Pawn pawn, Verse.PawnGenerationRequest& request) [0x00020] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.PawnGenerator.TryGenerateNewPawnInternal (Verse.PawnGenerationRequest& request, System.String& error, System.Boolean ignoreScenarioRequirements, System.Boolean ignoreValidator) [0x000f2] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.PawnGenerator.GenerateNewPawnInternal (Verse.PawnGenerationRequest& request) [0x00094] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00183] in <81af9f8a18324e17b286924a43555a7c>:0 
  at Verse.PawnGenerator.GeneratePawn (Verse.PawnGenerationRequest request) [0x00000] in <81af9f8a18324e17b286924a43555a7c>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.PawnGenerator:GeneratePawn (Verse.PawnGenerationRequest)
Verse.StartingPawnUtility:NewGeneratedStartingPawn ()
Rimionship.Page_ConfigurePawns:PreOpen ()
Verse.WindowStack:Add (Verse.Window)
Rimionship.Game_FinalizeInit_Patch:Postfix ()
(wrapper dynamic-method) Verse.Game:Verse.Game.FinalizeInit_Patch1 (Verse.Game)
Verse.Game:LoadGame ()
Verse.SavedGameLoaderNow:LoadGameFromSaveFileNow (string)
Verse.Root_Play/<>c:<Start>b__1_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
pardeike commented 2 years ago

Only happens occasionally and will be retried. Documented here for completeness