<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Memory leak on iOS SDK 1.3.14 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183857#M7684</link>
    <description>&lt;P&gt;Hi Gregory. Thanks a lot for the response. Were you able to reproduce the issue as I described?&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2016 12:45:33 GMT</pubDate>
    <dc:creator>Hongbin L.</dc:creator>
    <dc:date>2016-05-17T12:45:33Z</dc:date>
    <item>
      <title>Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183855#M7682</link>
      <description>&lt;P&gt;Dear Dropbox Developers,&lt;/P&gt;
&lt;P&gt;I found a memory leak issue with the last Dropbox SDK on iOS with Xcode 6.4 running on iPhone4S. So far I confirmed that the memory leak occurs when files are uploaded.&lt;/P&gt;
&lt;P&gt;To reproduce the issue, just use the sample project "DSRoulette". Create a button on the UI and link it to the following method.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;- (&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;IBAction&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)onClickButton:(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;id&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)sender {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;NSString&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; *text = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;@"Hello world."&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;NSString&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; *filename = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;@"working-draft.txt"&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;NSString&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; *localDir = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;NSSearchPathForDirectoriesInDomains&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;NSDocumentDirectory&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;NSUserDomainMask&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;YES&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;)[&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;0&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;NSString&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; *localPath = [localDir &lt;/SPAN&gt;&lt;SPAN class="s6"&gt;stringByAppendingPathComponent&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:filename];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[text &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;writeToFile&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;:localPath &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;atomically&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;YES&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;encoding&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;NSUTF8StringEncoding&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;error&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;nil&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p4"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&lt;SPAN class="s3"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;// Upload file to Dropbox&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;NSString&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; *destDir = &lt;/SPAN&gt;&lt;SPAN class="s7"&gt;@"/log"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s8"&gt;restClient&lt;/SPAN&gt; &lt;SPAN class="s6"&gt;uploadFile&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:filename &lt;/SPAN&gt;&lt;SPAN class="s6"&gt;toPath&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:destDir &lt;/SPAN&gt;&lt;SPAN class="s6"&gt;withParentRev&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;nil&lt;/SPAN&gt; &lt;SPAN class="s6"&gt;fromPath&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;:localPath];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Launch the app and then monitor the memory usage on Xcode. Keep pressing the button for 20 times. You will see the memory usage does not increase for the first 10+ files upload. But then jump higher ~0.3 MB after ~15 files upload. If you continue&amp;nbsp;pressing the button, the memory usage will continue to increase.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183855#M7682</guid>
      <dc:creator>Hongbin L.</dc:creator>
      <dc:date>2019-05-29T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183856#M7683</link>
      <description>&lt;P&gt;Thanks for the report! We'll look into it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 00:42:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183856#M7683</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-17T00:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183857#M7684</link>
      <description>&lt;P&gt;Hi Gregory. Thanks a lot for the response. Were you able to reproduce the issue as I described?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 12:45:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183857#M7684</guid>
      <dc:creator>Hongbin L.</dc:creator>
      <dc:date>2016-05-17T12:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183858#M7685</link>
      <description>&lt;P&gt;We're still looking into it. To help us make sure we can or can't reproduce exactly what you're seeing though, can you&amp;nbsp;share a screenshot showing the memory graph you're seeing? Also, you mentioned you saw this with Xcode 6.4 on iPhone 4S. Have you also seen this with other versions?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 00:48:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183858#M7685</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-18T00:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183859#M7686</link>
      <description>&lt;P&gt;I did not test on another device. iPhone4S is the only development device I have.&lt;/P&gt;
&lt;P&gt;Please see the attached picture.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/7k11WDb1ET4UdJ4G3dEtTQ.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 11:14:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183859#M7686</guid>
      <dc:creator>Hongbin L.</dc:creator>
      <dc:date>2016-05-18T11:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183860#M7687</link>
      <description>&lt;P&gt;Thanks! I'm not seeing that behavior though. What version of iOS is the device running?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 00:47:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183860#M7687</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-19T00:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183861#M7688</link>
      <description>&lt;P&gt;My iOS version is 8.1.&lt;/P&gt;
&lt;P&gt;I tried on two iPhone4S devices. Both devices are showing the same memory leak issue.&lt;/P&gt;
&lt;P&gt;I wonder what is the difference between your test setup and mine. Could you please share your code?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 10:49:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183861#M7688</guid>
      <dc:creator>Hongbin L.</dc:creator>
      <dc:date>2016-05-19T10:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183862#M7689</link>
      <description>&lt;P&gt;I'm using the code you provided in your first post, in the DBRoulette sample app as you described.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I've sent it along to the team to investigate.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 04:20:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183862#M7689</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-20T04:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183863#M7690</link>
      <description>&lt;P&gt;Hi Gregory. Is there any updates?&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 07:30:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183863#M7690</guid>
      <dc:creator>Hongbin L.</dc:creator>
      <dc:date>2016-05-28T07:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak on iOS SDK 1.3.14</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183864#M7691</link>
      <description>&lt;P&gt;No, unfortunately I don't have an update on this.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 05:10:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Memory-leak-on-iOS-SDK-1-3-14/m-p/183864#M7691</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-31T05:10:03Z</dc:date>
    </item>
  </channel>
</rss>

