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