Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS Low Memory Warning in MapKit/SDWebImage
    primarykey
    data
    text
    <p>I've become frustrated enough to beg for some insights from the mob. I have an application that using MapKit, on tap it shows a thumbnail, and on tap of the thumbnail it shows a photo gallery of images. All the images are using SDWebImage. I've looked at my allocation tables and see that the map alone is using a ton of memory. It peaks at around 60mbs, kind of crazy. When I open the gallery it drops to around 40/35mbs. I can look at one gallery just find, but as soon as I open up a second gallery and start scrolling it crashes, even though the memory use is around 35mbs.</p> <p>My first attempts at combating this where to purge the WebImage cache on didReceiveMemWarning, second was to actually remove the map and all annotations. The app is using ARC. </p> <p>Here is the question... How can I fix this? Get this to stop with the memory crash. Any help?</p> <p>Crash Report</p> <pre><code>Free pages: 1188 Active pages: 6757 Inactive pages: 4192 Throttled pages: 89007 Purgeable pages: 0 Wired pages: 26699 Largest process: DbConnect Processes Name &lt;UUID&gt; rpages recent_max [reason] (state) accountsd &lt;e6ceba0e6e053a3ea02d0a916903cff8&gt; 284 284 [vm] (daemon) (idle) installd &lt;117f65beb8cb38da8e0844256c65e402&gt; 301 301 [vm] (daemon) (idle) networkd_privile &lt;cd5f76fd767c31428f411ecf03540546&gt; 115 115 [vm] (daemon) (idle) lsd &lt;566268cf717b335e98ddba10ca9315ab&gt; 265 265 [vm] (daemon) (idle) MobileMail &lt;e07ca7a7280736c7bf301451f89d1c02&gt; 1022 1022 [vm] (resume) (continuous) MobilePhone &lt;51866c9bc9f93c9d8526e8acf9efc64c&gt; 998 998 [vm] (resume) (continuous) tccd &lt;2778744d99a530c9a7d5e57a19b60008&gt; 161 161 [vm] (daemon) DbConnect &lt;f628b610fcc23c559f2a96959ac78b15&gt; 21523 21523 [vm] (frontmost) (resume) ptpd &lt;096297a7a40f318290a972274cc44d87&gt; 591 591 (daemon) wifid &lt;72eda25ccdd737a79d6cd172e9bf99a5&gt; 615 615 (daemon) syslogd &lt;da215e2d3de133bf8f52590727b9bdfe&gt; 270 270 (daemon) aosnotifyd &lt;47126a998bb5308f9d5cbe028dc47d60&gt; 447 447 (daemon) locationd &lt;137100f254373daeb894f665c413f8b0&gt; 1023 1023 (daemon) iaptransportd &lt;9b3cf56b4db13761bbd8ac2e0ff099be&gt; 242 242 (daemon) dataaccessd &lt;abc7f74d5d683d4c9a04e7ade5b1126b&gt; 1835 1835 (daemon) mediaserverd &lt;af72564bf8713fb8b16ee64c5ee85568&gt; 1645 1645 (daemon) SpringBoard &lt;bd1d77d154ef3dffbb53d89337c8a08f&gt; 4057 4057 backboardd &lt;e1dc74434e0e3938b17ff0f7ad85d138&gt; 9463 9463 (daemon) lockdownd &lt;a123aa04ddf83a5fae8e5bc08f0b5771&gt; 260 260 (daemon) powerd &lt;63673a83ac9c3cf98fdc75df8ba70fd0&gt; 156 156 (daemon) mDNSResponder &lt;1e651badfb7033a68a73a667ec480a08&gt; 247 247 (daemon) UserEventAgent &lt;7ee3410c25e4372d84e93318fe42696b&gt; 534 534 (daemon) syncdefaultsd &lt;a18b8aeea66e3ebb9ab0d54e55c1b9d1&gt; 263 263 (daemon) DTMobileIS &lt;0e7e02810e383e2c9ebc212d94b6044f&gt; 0 0 (daemon) mobile_profile_j &lt;9e3c8e8611da3c68af7e5511500256de&gt; 194 194 (daemon) springboardservi &lt;438ae856a1c039a197e6987a99a8b9b6&gt; 0 0 (daemon) syslog_relay &lt;ee47daae952636649230d38b3dc5c2e0&gt; 0 0 (daemon) afcd &lt;3bd960d39c9f3972a10923db0e687b4a&gt; 152 152 (daemon) notification_pro &lt;08df322fbe7739199f78852a511169ef&gt; 136 136 (daemon) absinthed &lt;b5e167e1b2dc3bf9b5f704afb30aed5f&gt; 105 105 (daemon) filecoordination &lt;28ca39773e933ed2aa92c117c661d056&gt; 164 164 (daemon) apsd &lt;5be27dc5ea5234319bc4b47380e42174&gt; 342 342 (daemon) distnoted &lt;699b8253736233b29180419f139e8c01&gt; 121 121 (daemon) networkd &lt;49064febbe553338bd98051399022da4&gt; 182 182 (daemon) aggregated &lt;c5a375854c3c31d59548ab53ea86d194&gt; 93 93 (daemon) fseventsd &lt;3ea853cb95de3aa48972aa42637af69a&gt; 344 344 (daemon) BTServer &lt;af0150d5085e326598edff072a23d146&gt; 243 243 (daemon) imagent &lt;2b64c6111aa63b179a15afd6a76a6696&gt; 387 387 (daemon) configd &lt;b6a4d70640b63e8f82e0e9f3d6ee2bb9&gt; 510 510 (daemon) fairplayd.P106 &lt;c5ca0bc497013131a5c17a89fdedcd82&gt; 175 175 (daemon) geod &lt;d180dd46c4bd3ffbb856b5eb8589a45c&gt; 296 296 (daemon) CommCenter &lt;cb877b4411ee3a348ec44c02ff3da38d&gt; 608 608 (daemon) notifyd &lt;67a17b0c297e3785a9e09b8e72f3636a&gt; 188 188 (daemon) </code></pre> <p>Allocation Graph <img src="https://i.stack.imgur.com/4uBsE.png" alt="Allocation Graph"></p> <p>Allocation Table <img src="https://i.stack.imgur.com/PvlJY.png" alt="Allocation Table"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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