boformer / BuildingThemes

Mod for Cities:Skylines
http://steamcommunity.com/sharedfiles/filedetails/?id=466158459
MIT License
13 stars 11 forks source link

Missing GUI bug related to this mod? #21

Closed boformer closed 9 years ago

boformer commented 9 years ago

We both experienced the bug where only a strange road icon appeared in the toolbar.

This happened to me again. I hit the "Unpause" button and got an exception:

Object reference not set to an instance of an object [System.NullReferenceException]

Details:
No details
System.NullReferenceException: Object reference not set to an instance of an object
  at BuildingThemes.BuildingThemesManager.<MergeThemes>b__3 (BuildingThemes.Theme theme) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator12`2[BuildingThemes.Configuration+Theme,BuildingThemes.Configuration+Building].MoveNext () [0x00000] in <filename unknown>:0 
  at BuildingThemes.BuildingThemesManager.MergeThemes (System.Collections.Generic.HashSet`1 themes) [0x00000] in <filename unknown>:0 
  at BuildingThemes.BuildingThemesManager.MergeDistrictThemes (UInt32 districtIdx) [0x00000] in <filename unknown>:0 
  at BuildingThemes.BuildingThemesManager.GetMergedThemes (UInt32 districtIdx) [0x00000] in <filename unknown>:0 
  at BuildingThemes.BuildingThemesManager.DoesBuildingBelongToDistrict (System.String buildingName, UInt32 districtIdx) [0x00000] in <filename unknown>:0 
  at BuildingThemes.DefaultFilteringStrategy.DoesBuildingBelongToDistrict (System.String name, UInt32 districtIdx) [0x00000] in <filename unknown>:0 
  at BuildingThemes.DetoursHolder.FilterList (Vector3 position, .FastList`1& list) [0x00000] in <filename unknown>:0 
  at BuildingThemes.DetoursHolder.GetRandomBuildingInfo (ColossalFramework.Math.Randomizer& r, Service service, SubService subService, Level level, Int32 width, Int32 length, ZoningMode zoningMode) [0x00000] in <filename unknown>:0 
  at ZoneBlock.SimulationStep (UInt16 blockID) [0x00000] in <filename unknown>:0 
  at ZoneManager.SimulationStepImpl (Int32 subStep) [0x00000] in <filename unknown>:0 
  at SimulationManagerBase`2[Manager,Properties].SimulationStep (Int32 subStep) [0x00000] in <filename unknown>:0 
  at ZoneManager.ISimulationManager.SimulationStep (Int32 subStep) [0x00000] in <filename unknown>:0 
  at SimulationManager.SimulationStep () [0x00000] in <filename unknown>:0 
  at SimulationManager.SimulationThread () [0x00000] in <filename unknown>:0 
bloodypenguin commented 9 years ago

It's EBU problem. I've spent almost the whole Saturday investigating that bug and rewrote the mod multiple times and still has no positive result.

boformer commented 9 years ago

Did you try to remove all logging? Maybe it speeds up the loading process.