Questions tagged [memory-warning]

65 questions
22
votes
2 answers

Why do I get memory warnings with only 7 MB of memory allocated?

I am running my iOS App on iPod touch device and I get memory warnings even if the total allocation peak is only 7 MB as shown below (this happens when the Game Scene is pushed): What I find strange is that: the left peak (at time 0.00)…
mm24
  • 9,280
  • 12
  • 75
  • 170
14
votes
2 answers

Is there a way to send Memory Warning to iPhone device manually?

I got one problem these days. I'm using an image-cache library, it works well but eventually i met memory issue and the app just quit itself (I guess it's because it just runs out of memory). After read the source code from the image-cache library,…
Kevin Xue
  • 756
  • 6
  • 8
9
votes
1 answer

What's a great way to automatically warn my Java application when memory is getting low?

Is there an elegant way to automatically fire memory warnings to my Java application when free memory reaches a certain threshold? Note that this is a Jeopardy-style question to which I already have an answer, just wanted to post it here for the…
Epaga
  • 38,231
  • 58
  • 157
  • 245
9
votes
2 answers

Xcode memory warning - could not load any Objective-C class information

I've been getting this error only on an old iPhone4s while logging the user with Facebook and Parse. When I run it on simulator this error never happen. When it happens the app has taken only 21.2MB from memory that is just 4.2% of the memory…
GuiSoySauce
  • 1,763
  • 3
  • 24
  • 37
4
votes
3 answers

Always get memory warning when with a UIImagePicker for camera

I am using a UIImagePicker in my viewController, and there are two kinds of methods in which I always get a memory warning, as well as the very famous "wait_fences: failed to receive reply: 10004003", but I can't trace to the specific line of code…
4
votes
1 answer

Getting memory warning while using UIImagePickerControllerOriginalImage to get image from UIImagePickerController

I am using UIImagePickerController for getting image from camera. Just after I capture image and get it by using UIImagePickerControllerOriginalImage getting memory warning. I am using iphone 4s with iOS. Code is here -…
Tarun Seera
  • 4,212
  • 4
  • 27
  • 41
4
votes
2 answers

Memory warning when using UIImagePickerController

Im getting a memory warning when Im using the camera on an iPhone. Im also using ARC. When you take a photo and press the 'use Photo' button on the camera view controller I get a memory warning. The intention is once the 'use Photo' button is…
DevC
  • 6,982
  • 9
  • 45
  • 80
4
votes
3 answers

Getting memory leak in UIKit?

when I tested my App in instruments for memory leak I found nothing(running using simulator).But When I run it in a mobile and then checked, there are many leaks in UIKit objects. This happening in every view.In simulator no such leaks are…
NSUserDefault
  • 1,794
  • 1
  • 17
  • 38
4
votes
2 answers

Memory warning threshold value for all iPad version

There are memory warning level 1 and level 2 for iOS app. The question is for all iPad devices (from iPad 1 to iPad 4, mini ) , what is the responding threshold value to send out the warnings. For instance, for iPad1, is that 100 MB ? Thanks I also…
Forrest
  • 122,703
  • 20
  • 73
  • 107
3
votes
2 answers

iPad Memory Limitations

The app I'm working on is relatively simple but it is throwing memory warnings.  I'm trying to figure out whether the app design needs too much memory and should be redisigned and broken up to use less or the app design is fine but the app itself is…
Wes
  • 103
  • 1
  • 5
3
votes
0 answers

Receive Memory Warning issue with AVCaptureSession

I've built my own custom camera class using AVCaptureSession and a lot of the code from apples AVCam demo app. Basically the function I use to capture my image is verbatim from apple's app, however when I snap a picture, I get a received memory…
vinylDeveloper
  • 687
  • 2
  • 7
  • 25
3
votes
2 answers

objective-c memory friendly way for background image

i have an ipad app (>30 views / pages) each view has a unique background. the problem: whats the best way to set the background (memory friendly) is there a better way than adding: uiimageview "backgroundView" as a subview? version1: [[UIImage…
3
votes
3 answers

MonoTouch: App killed for low mem, Why? Live bytes allocation 5 MB top

My iPad app is developed in MonoTouch, because I wanted to avoid all the memory management hell, but it doesn't seem the case. On the simulator everything works fine, but when I tested my app on the device I discovered with horror that it is quickly…
2
votes
1 answer

iOS analysis with VM tracker. Dirty and resident memory cause memory warnings, what should I do?

Hello community, I'm trying to debug that I didn't made. This app works online and cache all the contents on the file system saving all the paths(a lot of paths) on memory(wrong approach I see, but I must work on that). This app has an option that…
Andrea
  • 26,120
  • 10
  • 85
  • 131
2
votes
2 answers

Why app Terminates due to memory waring when convert pdf page to high quality image in ios, swift in real device

I'm trying to get the image(high quality) of each pdf page. I'm using below code running through a for loop until page count and it works. guard let document = CGPDFDocument(pdfurl as CFURL) else { return } guard let page = document.page(at:…
Marlon Brando aka Ben
  • 863
  • 1
  • 14
  • 33
1
2 3 4 5