Page 1 of 1

1302.1 - unit-status Exception upon "doctrine window" and WRA

Posted: Mon Jan 09, 2023 5:09 am
by KnightHawk75
1/8/2023 11:52:48 PM -- B1302.1 -- Collection was modified; enumeration operation may not execute.
Exception: Collection was modified; enumeration operation may not execute.
Stack Trace: at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at Command.DoctrineForm.R2gR5eg7AW1()
at Command.DoctrineForm.IqkRbTLC7Bm()
Call Stack & Error details:
Error at 101195,
Repo:
start cmo.
Loaded scene via editor (edit scene) but later via create new and load-recent (doesn't matter I think).
Select sole sub unit.
From unit status window press doctrine window button (DO NOT hit ctrl +f9.. as doing that does not invoke the exception)
select WRA tab. It will show blank and log the exception.
click another tab and tab back... wra shows up, no longer any exception. close window, rinse and repeat.
kritter_DB498_TestingMultiMission.zip
(19.24 KiB) Downloaded 25 times

Also another with same scene (no need to reload I think):
Open mission editor select single mission and mission settings tab and check logs I get:
1/8/2023 11:57:24 PM -- B1302.1 -- Object reference not set to an instance of an object.
Exception: Object reference not set to an instance of an object.
Stack Trace: at (Object )
at ySuKkeV8DwZ94Ho1rdGS.cKJVB48w279(Object , ySuKkeV8DwZ94Ho1rdGS )
at Command.MissionEditor.QoYGR8dnlaC(DarkTreeNode )
at Command.MissionEditor.RefreshAssignedUnits()
Call Stack & Error details:
Error at 200634, Object reference not set to an instance of an object.


1/8/2023 11:57:24 PM -- B1302.1 -- Object reference not set to an instance of an object.
Exception: Object reference not set to an instance of an object.
Stack Trace: at (Object )
at ySuKkeV8DwZ94Ho1rdGS.cKJVB48w279(Object , ySuKkeV8DwZ94Ho1rdGS )
at Command.MissionEditor.QoYGR8dnlaC(DarkTreeNode )
at Command.MissionEditor.RefreshAssignedUnits()
Call Stack & Error details:
Error at 200634, Object reference not set to an instance of an object.
Third. - not sure how I got it (yeah I know not helpful) but while playing around with this scene mostly just clicking around and eyeballing mission and unit settings:
1/8/2023 11:20:37 PM -- B1302.1 -- Value cannot be null.
Parameter name: collection
Exception: Value cannot be null.
Parameter name: collection
Stack Trace: at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Command_Core.ActiveUnit.get_HasRadarSensor()
Call Stack & Error details:
Error at 100014,

Re: 1302.1 - unit-status Exception upon "doctrine window" and WRA

Posted: Mon Jan 09, 2023 1:08 pm
by thewood1
The enumeration and object reference errors have been showing up in the logs as far back as the 1285. Thats when I started noticing them and reporting them. They have gotten better and less numerous, but still do show up.

Re: 1302.1 - unit-status Exception upon "doctrine window" and WRA

Posted: Mon Jan 09, 2023 1:18 pm
by KnightHawk75
thewood1 wrote: Mon Jan 09, 2023 1:08 pm The enumeration and object reference errors have been showing up in the logs as far back as the 1285. Thats when I started noticing them and reporting them. They have gotten better and less numerous, but still do show up.
and I'm gonna report every one I can seemingly reproduce.
btw playing with snaketail open in another window watching the exception log helps see when they occur in relation to actions, simple little app but quite useful when watching that and lua logs.

Re: 1302.1 - unit-status Exception upon "doctrine window" and WRA

Posted: Mon Jan 09, 2023 6:24 pm
by thewood1
Thats cool. I just leave the log file open and refresh it.

Re: 1302.1 - unit-status Exception upon "doctrine window" and WRA

Posted: Tue Jan 10, 2023 10:02 am
by Geoffropi
The first issue is fixed for the next build.

Couldn't repro the other 2 but keeping an eye on that.

Re: 1302.1 - unit-status Exception upon "doctrine window" and WRA

Posted: Tue Jan 10, 2023 2:11 pm
by KnightHawk75
Geoffropi wrote: Tue Jan 10, 2023 10:02 am The first issue is fixed for the next build.

Couldn't repro the other 2 but keeping an eye on that.
Thanks!