简体   繁体   中英

What is the cause of this retain cycle? and is there a way to force memory to be deallocated?

I've been searching for a solution to this problem, without success, for sometime.

I use OpenTok Video Framework to publish a video stream from the device camera to an online service. I use their publish/unpublish methods as documented.

Problem: The memory allocated by [GLVideoProcessor createFrameBuffers] never gets deallocated, even when its parent VC is deallocated and the framework's unpublish method is called(and delegated nil'ed).

Question 1: Without being able view the framework's .m files, is there a way to force memory to be released?

Request 2: Any other advice about how to solve this problem would be greatly appreciated.

Occurs in: Xcode 4.6 & Xcode 5
iOS6 & iOS7

Instruments: The doPublish method alloc's OTPublisher and initiates the stream. 概观

Multiple Instances of Publish/Unpublish being called and never being deallocated. 显示GLVideo保持生命

ARM view of [GLVideoProcessor createFrameBuffers]

在此处输入图片说明

ARM view of [GLVideoProcessor createFrameBuffers] + Backtrace 在此处输入图片说明

my name is Song and I work at TokBox. Thank you for posting the memory problem. We have identified the cause of this bug and a fix will be coming out next week.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM