The issue is, cdmInstanceDetached: passed CDMInstance 0x7f4304680e18 is different from stored one (nil) We assert that the stored instance can not be nil when its detached, which this test shows we should not do.
Fixed by recent changes.