[TIMOB-1994] iOS: Memory leaks in TableView w/ remote image test cases
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2011-06-23T11:41:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2011-25 |
Components | iOS |
Labels | defect, ios, klist, leak, memory, release-1.7.0, tableview, tbs-1.7.1 |
Reporter | Thomas Huelbert |
Assignee | Blain Hamon |
Created | 2011-04-15T03:07:38.000+0000 |
Updated | 2012-02-09T11:23:54.000+0000 |
Description
After getting an intermittent crash, I was using instruments to
look for mem leaks and encountered this.
mobile sdk build 1.4.2.4c5cd4a, 4th gen ipod 4.1
1.BaseUI>Views>Table Views>Table with controls
2.scroll up and down a few times
3.BaseUI>Views>Table Views>Table with controls
4.scroll up and down a few times
5.if you are still not seeing mem leaks in instruments, back up one
level in the app and scroll the table view test case list
results:
Leaked Object # Address Size Responsible Library Responsible
Frame
TiUIImageViewProxy 2 < multiple > 2048 KitchenSink -[TiModule
createProxy:forName:context:]
NSRecursiveLock 2 < multiple > 160 KitchenSink -[TiViewProxy
init]
NSConcreteMutableData 2 < multiple > 64 KitchenSink
-[ASIHTTPRequest startRequest]
NSCFDictionary 0xb461fd0 48 KitchenSink -[ASIHTTPRequest
addRequestHeader:value:]
NSCFString 0xb45da60 32 CFNetwork
HTTPMessage::createRequestLine(CFString const, __CFURL
const, CFString const*, unsigned char)
ASIHTTPRequest 0xb45ca00 432 KitchenSink +[ASIHTTPRequest
requestWithURL:]
NSCFDictionary 0xb45bf70 48 CFNetwork
HTTPMessage::initialize()
NSCFType 0xb457410 80 KitchenSink -[ASIHTTPRequest
main]
Malloc 16 Bytes 0xb456600 16 KitchenSink -[ASIHTTPRequest
addRequestHeader:value:]
NSRecursiveLock 0xb4565b0 80 KitchenSink -[ASIHTTPRequest
initWithURL:]
NSArrayM 0xb455b50 32 KitchenSink
-[ASIHTTPRequest initWithURL:]
NSOperationInternal 0xb455ac0 144 Foundation -[NSOperation
init]
Malloc 16 Bytes 0xb4516d0 16 CFNetwork
HTTPMessage::internalSetHeader(CFString const,
__CFString const, long)
Malloc 16 Bytes 0xb42ac90 16 KitchenSink -[ASIHTTPRequest
addRequestHeader:value:]
NSCFNumber 0xb23e950 16 Foundation -[NSPlaceholderNumber
initWithUnsignedInt:]
Malloc 352 Bytes 0xb23d850 352 Foundation -[NSConcreteMutableData
appendBytes:length:]
NSDate 0xb23d100 16 KitchenSink -[ASIHTTPRequest
handleBytesAvailable]
NSArrayM 0xb229d80 32 Foundation
+[NSHTTPCookie cf2nsCookies:]
ImageLoaderRequest 0xb036b20 32 KitchenSink -[ImageLoader
loadImage:delegate:userInfo:]
ASIHTTPRequest 0x7b79fa0 432 KitchenSink +[ASIHTTPRequest
requestWithURL:]
NSCFDictionary 0x7b79d40 48 KitchenSink -[ASIHTTPRequest
addRequestHeader:value:]
Malloc 16 Bytes 0x7b79bc0 16 KitchenSink -[ASIHTTPRequest
addRequestHeader:value:]
NSArrayM 0x7b79ba0 32
KitchenSink -[ASIHTTPRequest initWithURL:]
NSOperationInternal 0x7b79b10 144 Foundation -[NSOperation
init]
Malloc 16 Bytes 0x7b79900 16 KitchenSink -[ASIHTTPRequest
addRequestHeader:value:]
NSRecursiveLock 0x7b798b0 80 KitchenSink -[ASIHTTPRequest
initWithURL:]
ImageLoaderRequest 0x7b79860 32 KitchenSink -[ImageLoader
loadImage:delegate:userInfo:]
Malloc 352 Bytes 0x7b757f0 352 Foundation -[NSConcreteMutableData
appendBytes:length:]
NSDate 0x7b6a140 16 KitchenSink
-[ASIHTTPRequest handleBytesAvailable]
__NSArrayM 0x7b51ab0 32 Foundation +[NSHTTPCookie
cf2nsCookies:]
Attachments
File | Date | Size |
---|---|---|
1994_stackTrace.rtf | 2011-05-11T15:54:50.000+0000 | 5214 |
Sealing up the last crack: Autorelease pool never got cleared in one break.
Blain fixed it, Blain gets the bug!
we are still leaking every time we open the tableview in question. attaching txt file of stack Trace
[INFO] Titanium SDK version: 1.7.0 (05/10/11 19:34 879871b...)
Ran leaks to look at this. Need to know device/OS tested on, and tools to get the leaks info.
Closing issue as cannot reproduce Tested with Ti Studio build 1.0.8.201201262211 Ti Mob SDK 1.9.0.v20120208180134 OSX Lion 10.7.3 iPhone 4S OS 5.0, iPod Touch 4.3.3