i recently got a iOS NSMallocException crash which is Out of memory. We suggest restarting the application. If you have an unsaved document, create a backup copy in Finder, then try to save.
Thread 0 name: com.apple.main-thread
CoreFoundation ___exceptionPreprocess (in CoreFoundation)
libobjc.A.dylib _objc_exception_throw (in libobjc.A.dylib)
CoreFoundation __CFRaiseMemoryException (in CoreFoundation)
CoreFoundation ___CFStringHandleOutOfMemory (in CoreFoundation)
CoreFoundation ___CFStringChangeSizeMultiple (in CoreFoundation)
CoreFoundation _CFStringAppend (in CoreFoundation)
CoreFoundation __CFURLComponentsCopyString (in CoreFoundation)
CoreFoundation __CFURLComponentsCopyURLRelativeToURL (in CoreFoundation)
Foundation -[__NSConcreteURLComponents URL] (in Foundation)
Foundation -[NSURL(NSURL) initWithString:relativeToURL:encodingInvalidCharacters:] (in Foundation)
Foundation +[NSURL(NSURL) URLWithString:relativeToURL:] (in Foundation)
Falo -[FaloDuanXinController tableView:cellForRowAtIndexPath:] (in Falo:FaloDuanXinController.m:415)
UIKitCore -[_UIFilteredDataSource tableView:cellForRowAtIndexPath:] (in UIKitCore)
UIKitCore -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] (in UIKitCore)
UIKitCore -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] (in UIKitCore)
UIKitCore -[UITableView _updateVisibleCellsNow:] (in UIKitCore)
UIKitCore -[UITableView layoutSubviews] (in UIKitCore)
UIKitCore -[UIView(CALayerDelegate) layoutSublayersOfLayer:] (in UIKitCore)
QuartzCore CA::Layer::layout_if_needed(CA::Transaction*) (in QuartzCore)
QuartzCore CA::Layer::layout_and_display_if_needed(CA::Transaction*) (in QuartzCore)
QuartzCore CA::Context::commit_transaction(CA::Transaction*, double, double*) (in QuartzCore)
QuartzCore CA::Transaction::commit() (in QuartzCore)
QuartzCore CA::Transaction::flush_as_runloop_observer(bool) (in QuartzCore)
UIKitCore __UIApplicationFlushCATransaction (in UIKitCore)
UIKitCore __UIUpdateSequenceRun (in UIKitCore)
UIKitCore _schedulerStepScheduledMainSection (in UIKitCore)
UIKitCore _runloopSourceCallback (in UIKitCore)
CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (in CoreFoundation)
CoreFoundation ___CFRunLoopDoSource0 (in CoreFoundation)
CoreFoundation ___CFRunLoopDoSources0 (in CoreFoundation)
CoreFoundation ___CFRunLoopRun (in CoreFoundation)
CoreFoundation _CFRunLoopRunSpecific (in CoreFoundation)
GraphicsServices _GSEventRunModal (in GraphicsServices)
UIKitCore -[UIApplication _run] (in UIKitCore)
UIKitCore _UIApplicationMain (in UIKitCore)
Falo main (in Falo:main.m:11)
dyld start (in dyld)
and it crashed at
[cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:kSmallImageUrl(self.user.image_url)]];
kSmallImageUrl just for getting a right URL of the user avatar
#define kSmallImageUrl(url) ([url hasPrefix:@"http"]) ? url : [NSString stringWithFormat:@"%@%@?x-oss-process=image/resize,w_200,h_200",FALO_CDN_URL,url]
And the used memory we caught on the third party SDK shows the memory not really high when crashed like around 150MB
I guess its not a memory leak but might be memory suddenly increases in a short time.
I would appreciate if you have any idea about why this crash happened.
1