Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is the cause of this retain cycle? and is there a way to force memory to be deallocated?
    primarykey
    data
    text
    <p>I've been searching for a solution to this problem, without success, for sometime.</p> <p>I use <a href="http://opentok.github.io/opentok-ios-sdk/index.html" rel="nofollow noreferrer">OpenTok Video Framework</a> to publish a video stream from the device camera to an online service. I use their publish/unpublish methods as documented. </p> <p><strong>Problem:</strong> The memory allocated by <code>[GLVideoProcessor createFrameBuffers]</code> never gets deallocated, even when its parent VC is deallocated and the framework's unpublish method is called(and delegated nil'ed). </p> <p><strong>Question 1:</strong> Without being able view the framework's .m files, is there a way to force memory to be released?</p> <p><strong>Request 2:</strong> Any other advice about how to solve this problem would be greatly appreciated.</p> <p>Occurs in: Xcode 4.6 &amp; Xcode 5<br> iOS6 &amp; iOS7</p> <p>Instruments: The doPublish method alloc's OTPublisher and initiates the stream. <img src="https://i.stack.imgur.com/CRrXZ.png" alt="Overview"></p> <p>Multiple Instances of Publish/Unpublish being called and never being deallocated. <img src="https://i.stack.imgur.com/gwptB.png" alt="Shows GLVideo staying alive"></p> <p>ARM view of <code>[GLVideoProcessor createFrameBuffers]</code></p> <p><img src="https://i.stack.imgur.com/SBEvy.png" alt="enter image description here"></p> <p>ARM view of <code>[GLVideoProcessor createFrameBuffers]</code> + Backtrace <img src="https://i.stack.imgur.com/XuEXi.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload