algernon-A / ZoningAdjuster

MIT License
5 stars 7 forks source link

InvalidOperationException: Already in the same thread. Call directly #22

Closed justasmalinauskas closed 2 years ago

justasmalinauskas commented 2 years ago

Hey, I noticed that my game sometimes crashes, reading though output_log I have noticed that stack trace:

2,481,163ms | Zoning Adjuster: patching UnpatchCreateZoneBlocks.
InvalidOperationException: Already in the same thread. Call directly
at ColossalFramework.Threading.Dispatcher.CheckAccessLimitation () <0x0007c>
at ColossalFramework.Threading.DispatcherBase.Dispatch (System.Action,bool) <0x0001f>
at ColossalFramework.Threading.DispatcherBase.Dispatch (System.Action) <0x0002a>
at DistrictWorldInfoPanel.OnPoliciesChanged (DistrictPolicies/Policies) <0x00087>
at DistrictManager.UnsetParkPolicy (DistrictPolicies/Policies,byte) <0x0008b>
at CampusWorldInfoPanel.RefreshPolicies (string,UITemplateList`1<ColossalFramework.UI.UIPanel>) <0x00376>
at CampusWorldInfoPanel.RefreshPolicyLists () <0x00054>
at CampusWorldInfoPanel.OnSetTarget () <0x00ede>
at WorldInfoPanel.SetTarget (UnityEngine.Vector3,InstanceID) <0x000ed>
at WorldInfoPanel.Show<CampusWorldInfoPanel> (UnityEngine.Vector3,InstanceID) <0x000dd>
at DefaultTool.OpenWorldInfoPanel (InstanceID,UnityEngine.Vector3) <0x01c11>
at (wrapper dynamic-method) DefaultTool.DefaultTool.OnToolGUI_Patch1 (DefaultTool,UnityEngine.Event) <0x00633>
at ToolBase.OnGUI () <0x0007f>

Adding related logs below:

harmony.log.txt output_log.txt

Mods currently I use: image

algernon-A commented 2 years ago

Not actually this mod (if you look through the log you can see that this is not the only occurrence, it's only coincidence that one of those ocurrences happened between several seconds and several minutes after the last log entry from Zoning Adjuster).

It's got something to do with district policy checking via the Campus information panel.

justasmalinauskas commented 2 years ago

@algernon-A alright, thank you! I'm then off to paradox support then.