STATUS_DEAD not always dead

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

Moderators: winston, another_commander, Getafix

User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: STATUS_DEAD not always dead

Post by JensAyton »

cim wrote:
Is this perhaps another Mac-specific problem? Is it possible that the target inspector is retaining the target?
The inspector uses weak refs, and has sensible behaviour when things die.

A way to hide the symptoms here would be to invalidate a ship’s weakref when it dies ([weakSelf weakRefDrop]; weakSelf = nil;), or do it for every item in entitiesDeadThisUpdate in Universe just before clearing it. This should probably be done in Deployment builds, but left out in Debug and TestRelease to diagnose the actual problem.

I’ll try to get an allocation history of a ghost this weekend, although I was planning to dedicate it to other Oolite-related stuff… more information soon on a mailing list near you.
Post Reply