Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:32:02+00:00 2026-06-12T15:32:02+00:00

My app(arc, ios5) sometimes will crash after I take a photo and save to

  • 0

My app(arc, ios5) sometimes will crash after I take a photo and save to CoreData. Using Instruments I found that there are memory warnings before crash, so I tried to find out how memory is used.

My app stores trips in CoreData (totally 200MB), each trip has hundreds of CLLocation objects and tens of UIImage objects.

Each time I view one trip details by pushViewController, the memory usage grows up; but after I popViewController, the memory usage remains.

I think there are several suspects:

  1. the CoreData cache, but I don’t know how to purge it;
  2. the detail view controllers, since I didn’t see any viewDidUnload called after each popViewController;

After some tests, I was confused that even if I call viewDidUnload manually, the memory usage remains.

I also tested memory leaks instrument in ios5.0 simulator for my app, it’s clean.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:32:03+00:00Added an answer on June 12, 2026 at 3:32 pm

    It is not advised to store images in coredata due to memory issues. Check if you can store it in document folder or so and store the image name/path in your coredata. Most of the cases that should resolve memory issues.

    Here are a few posts about this CoreData (for iphone) storing images and Core Data – Storing Images (iPhone)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an iOS 5 app (in Xcode 4.3, using Storyboards and ARC) that
I am developing an app using ARC When profiling my app in instruments for
I'm writing an app (in iOS 5 using ARC!) that presents several hundred objects
In iOS5 sdk, Compiler will take care of memory management (ARC). Suppose I had
Couldn't find similar questions: I'm currently designing my app and after that I will
I'm developing an iOS5 App using ARC, and I started to get some random
I am working on an iPad app (iOS 5 ARC) that will show threads
I am trying to build an app (with ARC) that uses the facebook_ios_sdk (the
I'm using facebook connect in an iOS app (ARC, running on iOS 5). it
I'm developing an app in Objective-C using ARC. My simplified code looks like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.