ashvardanian
ashvardanian

Reputation: 494

Locating NSZombie in code with instruments

I have an error, that appears in 100% of use cases in certain scenario. Current state:

  1. Exception breakpoint is enabled.
  2. Zombie objects are enabled in run schemes.
  3. I use Instruments Zombie tool to trace the error.

Here is the problem. Before making step 3 I found that the issue appears when deallocated CALayer calls -superlayer method:

2016-07-12 22:59:14.503 TestIOS[29904:768808] *** -[CALayer superlayer]: message sent to deallocated instance 0x7b733410

When I run app in Instruments everything goes fine until the moment, where error appears. However, the only thing that Instruments Console prints in the end is: <End of Run>. According to Apple documentation Zombie Messaged dialog should appear when app crashes. But it doesnt't. And the black "stop" button switches to red "start" circle.

This dialog window should provide button to jump to Zombie object in code. How can I do it if nothing appears?

[Instruments screenshot[2]

Upvotes: 0

Views: 447

Answers (0)

Related Questions