mutated while being enumerated

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

mutated while being enumerated

Post by Commander McLane »

Still trying to get behind the bugs with the Thargoid Carrier.

After I left the game paused for more than a day and then un-paused it, I suddenly found lots of these in the log:

Code: Select all

00:09:32.288 [exception]: ***** Exception during [update:entity [<ShipEntity 0x101fc9800>{"Armoured Transport Type1" position: (-5831.07, -10958, 464248) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}]] in [Universe update:] : NSGenericException : *** Collection <NSCFSet: 0x11f549ab0> was mutated while being enumerated.<CFBasicHash 0x11f549ab0 [0x7fff70a03ee0]>{type = mutable set, count = 3,
entries =>
	1 : <ShipEntity 0x103b0b000>{"Mamba" position: (-6474.58, -4252.76, 486440) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}
	5 : <ShipEntity 0x1023fe400>{"Tiger Mark I" position: (-917.711, -5008.28, 487335) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}
	6 : <ShipEntity 0x102320800>{"Delta Long-Range Escort" position: (-5959.98, -8662.71, 470530) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}
}
 *****
Any ideas about this?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: mutated while being enumerated

Post by JensAyton »

It means that (native) code is looping over a set of ships – looks like an escort group – and changing it during the traversal, which is not allowed. This is happening during the simulation step of the Armoured Transport Type1, which is probably the mothership of the escort group.

Edit: After some searching through the code, it seems unlikely that it’s actually an escort group.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: mutated while being enumerated

Post by Eric Walch »

JensAyton wrote:
it seems unlikely that it’s actually an escort group.
The official escorts of the "Armoured Transport Type1" ship should be all the same and have the name: "Armoured Transport Viper". And there should only be 4 escorts maximum.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: mutated while being enumerated

Post by cim »

I wonder if these two are other aspects of https://bb.oolite.space/viewtopic.php?f=3&t=13480 , which also appears to be some Mac-only memory corruption problem. There's certainly no obvious code path for either.

Do you still get the carrier oddities in the latest Mac nightly?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: mutated while being enumerated

Post by Commander McLane »

cim wrote:
I wonder if these two are other aspects of https://bb.oolite.space/viewtopic.php?f=3&t=13480 , which also appears to be some Mac-only memory corruption problem. There's certainly no obvious code path for either.

Do you still get the carrier oddities in the latest Mac nightly?
I haven't got around to installing the nightly, but I'm going to try over the weekend.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: mutated while being enumerated

Post by Eric Walch »

It is also happening with ships that never have escorts:

Code: Select all

[exception]: ***** Exception during [update:entity [<ShipEntity 0x15163ba00>{"Urutu MkIV" position: (-2021.87, -5268.48, 40757.4) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}]] in [Universe update:] : NSGenericException : *** Collection <NSCFSet: 0x11ace3ef0> was mutated while being enumerated.<CFBasicHash 0x11ace3ef0 [0x7fff7129cee0]>{type = mutable set, count = 2,
entries =>
	2 : <ShipEntity 0x163982400>{"Cat Mark I" position: (-6272.51, 3709.3, 59673) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}
	5 : <ShipEntity 0x1512ed600>{"Delta Long-Range Escort" position: (-8532.48, 6728.94, 62275.9) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}
}
 *****
I tested the "Urutu MkIV" after the error message and the shipGroup and escortGroup were empty. This "Urutu MkIV" is always spawned as trader without escorts.

(1.77.1 build 5695-testrelease)
Post Reply