RimWorld

RimWorld

Useful Marks
This topic has been locked
PatchCMCCMB() -> Tried to create a texture from a different thread.
Hi there!

First of: Amazing mod! It is indeed so very useful. Thank you for publishing!

Unfortunately, I get an error during startup, although it does not seem to break anything. At least, I did not notice any errors in game. (See stack trace below.) I have lots of other mods running and did not yet check with only yours, so it might be a conflict. Maybe you get an idea when looking at PatchCMCCMB().

Best regards!


Tried to create a texture from a different thread.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
Verse.SolidColorMaterials:NewSolidColorTexture (UnityEngine.Color)
ColoredMoodBar13.GenMapUI2:.cctor ()
System.RuntimeMethodHandle:GetFunctionPointer ()
MonoMod.Core.Platforms.Runtimes.MonoRuntime:Compile (System.Reflection.MethodBase)
MonoMod.Core.Platforms.PlatformTriple:Compile (System.Reflection.MethodBase)
MonoMod.Core.Platforms.PlatformTripleDetourFactory/Detour:CreateDetour ()
MonoMod.Core.Platforms.PlatformTripleDetourFactory/DetourBase:Apply ()
MonoMod.Core.Platforms.PlatformTripleDetourFactory:CreateDetour (MonoMod.Core.CreateDetourRequest)
MonoMod.Core.DetourFactory:CreateDetour (MonoMod.Core.IDetourFactory,System.Reflection.MethodBase,System.Reflection.MethodBase,bool)
HarmonyLib.PatchTools:DetourMethod (System.Reflection.MethodBase,System.Reflection.MethodBase)
HarmonyLib.PatchFunctions:UpdateWrapper (System.Reflection.MethodBase,HarmonyLib.PatchInfo)
HarmonyLib.PatchProcessor:Patch ()
HarmonyLib.Harmony:Patch (System.Reflection.MethodBase,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod)
UsefulMarks.UsefulMarksMod:PatchCMCCMB ()
UsefulMarks.UsefulMarksMod:.ctor (Verse.ModContentPack)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
System.Reflection.MonoCMethod:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&)
System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
System.Activator:CreateInstance (System.Type,object[])
Verse.LoadedModManager:CreateModClasses ()
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_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 ()
< >
Showing 1-6 of 6 comments
moo 29 Jun @ 3:38pm 
I can +1 that I see this as well
moo 29 Jun @ 4:07pm 
This may be related as I've isolated this mod from A/B testing - it is now dumping "null texture passed to GUI.DrawTexture" infinitely into the log
Yes, I do have the CC Moodbar.
And also [LTO] Colony Groups. Just mentioning it, because those two might interact.
CrashM 30 Jun @ 10:37am 
Hmm, not sure what is happening here. For context the bit of code that is being run is:

[StaticConstructorOnStartup]
public static class GenMapUI2
{
public static readonly Texture2D OverlayHealthTex = SolidColorMaterials.NewSolidColorTexture(new Color(1f, 0f, 0f, 0.25f));
...
Andromeda  [developer] 30 Jun @ 7:34pm 
wrong mod to report.
< >
Showing 1-6 of 6 comments
Per page: 1530 50