View Issue Details

IDProjectCategoryLast Update
0024501AI War 2Crash/ExceptionMar 1, 2021 2:43 pm
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 2.748 Defaults And Fixes 
Fixed in VersionBeta 2.750 Bastions And Tuning 
Summary0024501: Some string builder exceptions
DescriptionI hit a few errors in StringBuilder

2/27/2021 9:26:54 PM 2.748 HOST ArcenUI_Window.OnUpdateWindow Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength
  at System.Text.StringBuilder.ToString () [0x000a6] in <9577ac7a62ef43179789031239ba8798>:0
  at Arcen.AIW2.Core.Faction.GetDisplayName () [0x002be] in <87285d55aecf4eb39abd4069287ae969>:0
  at Arcen.AIW2.Core.FactionFilter.GetDisplayName () [0x00029] in <87285d55aecf4eb39abd4069287ae969>:0
  at Arcen.AIW2.External.Window_BottomLeftGalaxyMap+FactionFilterDropdownOption.GetOptionNameFromVolatile () [0x00011] in <a9bd7bcd5a2e449cbdeed269d1cce34e>:0
  at Arcen.Universal.ArcenUI_Dropdown.OnUpdate_Subclass (System.Single DeltaTime) [0x00111] in <d40fba89905c442988fa33d57f9ede14>:0
  at Arcen.Universal.ArcenUI_Element.UpdateFromUI (System.Boolean ShouldDoFullUpdate, System.Single DeltaTime) [0x000f4] in <d40fba89905c442988fa33d57f9ede14>:0
  at Arcen.Universal.ArcenUI_Window.OnUpdateWindow (System.Single AddedDeltaTime, System.Boolean InvertMouseWheelUIScrolling, System.Int32 scrollSpeedForMouseUI) [0x00173] in <d40fba89905c442988fa33d57f9ede14>:0

and

2/27/2021 9:27:07 PM 2.748 HOST Exception in entity tooltip text generation at stage 32:System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength
  at System.Text.StringBuilder.ToString () [0x000a6] in <9577ac7a62ef43179789031239ba8798>:0
  at Arcen.AIW2.Core.Faction.GetDisplayName () [0x002be] in <87285d55aecf4eb39abd4069287ae969>:0
  at Arcen.AIW2.External.Window_InGameHoverEntityInfo.GetTextForEntity (Arcen.Universal.ArcenDoubleCharacterBuffer buffer, Arcen.AIW2.Core.GameEntity_Base EntityBase, Arcen.AIW2.Core.Fleet+Membership MembershipBase, Arcen.AIW2.Core.GameEntityTypeData TypeDataOrNull, System.Int32 OptionalCountToShow, Arcen.AIW2.Core.Faction ForFactionOrNull, System.Byte OptionalForMarkLevel, Arcen.AIW2.Core.FromSidebarType IsFromSidebarType, Arcen.AIW2.External.ShipExtraDetailFlags DetailFlags) [0x0060d] in <a9bd7bcd5a2e449cbdeed269d1cce34e>:0

and

2/27/2021 9:37:30 PM 2.748 HOST Window_FactionsWindow: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength
  at System.Text.StringBuilder.ToString () [0x000a6] in <9577ac7a62ef43179789031239ba8798>:0
  at Arcen.AIW2.Core.Faction.GetDisplayName () [0x002be] in <87285d55aecf4eb39abd4069287ae969>:0
  at Arcen.AIW2.External.Window_FactionsWindow+bCategory.GetTextToShowFromVolatile (Arcen.Universal.ArcenDoubleCharacterBuffer buffer) [0x00126] in <a9bd7bcd5a2e449cbdeed269d1cce34e>:0
  at Arcen.Universal.ArcenUI_Button.OnUpdateVolatileDataFromMainThread () [0x000df] in <d40fba89905c442988fa33d57f9ede14>:0
  at Arcen.Universal.ArcenUI_Window.OnUpdateVolatileDataFromMainThread () [0x00070] in <d40fba89905c442988fa33d57f9ede14>:0
  at Arcen.Universal.ArcenUI.OnUpdateVolatileDataFromMainThread () [0x00018] in <d40fba89905c442988fa33d57f9ede14>:0
  at System.Environment.get_StackTrace () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity, System.DateTime Timestamp) [0x00000] in <d40fba89905c442988fa33d57f9ede14>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <d40fba89905c442988fa33d57f9ede14>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <d40fba89905c442988fa33d57f9ede14>:0

TagsNo tags attached.

Activities

Chris_McElligottPark

Mar 1, 2021 2:43 pm

administrator   ~0060670

Thanks!

* Fixed an issue that could happen in various circumstances when the name of factions was being created on the fly on multiple threads at once. This had to do with a static Stringbuilder in all cases, and now we have that marked as ThreadStatic and updated so that it uses one per thread. How did we ever manage with things like this prior to ThreadStatic??

Issue History

Date Modified Username Field Change
Feb 28, 2021 12:14 am BadgerBadger New Issue
Feb 28, 2021 12:51 am BadgerBadger Assigned To => Chris_McElligottPark
Feb 28, 2021 12:51 am BadgerBadger Status new => assigned
Mar 1, 2021 2:43 pm Chris_McElligottPark Status assigned => resolved
Mar 1, 2021 2:43 pm Chris_McElligottPark Resolution open => fixed
Mar 1, 2021 2:43 pm Chris_McElligottPark Fixed in Version => Beta 2.750 Bastions And Tuning
Mar 1, 2021 2:43 pm Chris_McElligottPark Note Added: 0060670