Memory leak 0x0 [iphone]

I have a leak in my application that I really can’t understand about, can anyone help me with this?

Stacktrace Tools:

       0 libSystem.B.dylib calloc
       1 WebCore CurrentThreadContext()
       2 WebCore WKSetCurrentGraphicsContext
       3 UIKit -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:letterSpacing:includeEmoji:]
       4 UIKit -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:]
       5 UIKit -[UILabel _drawTextInRect:baselineCalculationOnly:]
       6 UIKit -[UILabel drawTextInRect:]
       7 UIKit -[UILabel drawRect:]
       8 UIKit -[UIView(CALayerDelegate) drawLayer:inContext:]
       9 QuartzCore -[CALayer drawInContext:]
      10 QuartzCore -[CALayer _display]
      11 QuartzCore -[CALayer display]
      12 QuartzCore CALayerDisplayIfNeeded
      13 QuartzCore CA::Context::commit_transaction(CA::Transaction*)
      14 QuartzCore CA::Transaction::commit()
      15 QuartzCore CA::Transaction::release_thread(void*)
      16 libSystem.B.dylib _pthread_tsd_cleanup
      17 libSystem.B.dylib _pthread_exit
      18 Foundation +[NSThread exit]
      19 Foundation __NSThread__main__
      20 libSystem.B.dylib _pthread_body
      21 TestApp 0x0
+3
source share
4 answers

what do you do before the leak? some things can cause leaks, for example, trying to make user interface changes not from the main thread.

+2
source

Is it on a simulator or physical device?

If on a simulator, please test the physical device for leaks . It is known that the simulator has strange leaks that are missing from the devices.

If it's on a physical device, I also don't understand how to explain it: \

+2

webkit... , , Apple.

0

, . - , . , .

:

View (Will/Did) Appear. UITableViewController, .

, , , "" . performSelectorOnMainThread:withObject:waitUntilDone:

:

0

Source: https://habr.com/ru/post/1725967/


All Articles