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
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.
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: \
webkit... , , Apple.
, . - , . , .
:
View (Will/Did) Appear. UITableViewController, .
, , , "" . performSelectorOnMainThread:withObject:waitUntilDone:
performSelectorOnMainThread:withObject:waitUntilDone:
Source: https://habr.com/ru/post/1725967/More articles:dojo.requireIf does not allow local variables - dojoLua Links in Lua - garbage-collectionWhat is the difference between "<%" and "<% =" in embedded VBScript? - htmlSettings menu via UITableView - iphoneLooking for an object in a nested NSDictionary when the parent key is unknown? - jsonDoes Interlocked.CompareExchange (double, double, double) support 32-bit OS? - multithreadingShould all static property identifiers with accessories begin with capital letters? - propertiesHide all windows for the process (for example, Internet Explorer) - .netError IManExt ImportCmd - c #The pure javascript equivalent of jquery $ ("# large_box2_link"). click (); - javascriptAll Articles