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 7159843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:17:55+00:00 2026-05-28T13:17:55+00:00

I have a super basic AVCaptureSession set up with an AVCaptureVideoDataOutput and AVCaptureStillImageOutput. AVCaptureVideoDataOutput

  • 0

I have a super basic AVCaptureSession set up with an AVCaptureVideoDataOutput and AVCaptureStillImageOutput. AVCaptureVideoDataOutput does not have a buffer delegate. There’s nothing fancy going on, just setting up a standard issue AVCaptureSession. If I just compile the app and let it sit there for about 10 minutes, the available memory drops by like 1mb every minute or so. I’ve started the app with 72mb free, and after just letting it sit on my desk, I’ve seen free memory get as low as 33mb.

If I comment out the piece where I add AVCaptureVideoDataOutput to the session, available memory stays around 70-72mb.

So I set up a button to remove AVCaptureVideoDataOutput from the session, and after tapping the button, available memory immediately jumps back up to when the app was first run (~72mb). Has anyone else seen this and know of a workaround? I have iOS 5.0 on my iPhone and the latest beta SDK.

Edit: Here’s the code that adds AVCAptureVideoDataOutput:


...

NSNumber *rgbNum = [NSNumber numberWithInt:kCVPixelFormatType_32BGRA];
NSDictionary *videoSettings = [NSDictionary dictionaryWithObject:rgbNum forKey:(id)kCVPixelBufferPixelFormatTypeKey];

dataOutput = [AVCaptureVideoDataOutput new];
[dataOutput setAlwaysDiscardsLateVideoFrames:YES];
[dataOutput setVideoSettings:videoSettings];
_videoDataOutputQueue = dispatch_queue_create("VideoDataOutputQueue", NULL);
[dataOutput setSampleBufferDelegate:self queue:_videoDataOutputQueue];
dispatch_release(_videoDataOutputQueue);

if ([session canAddOutput:dataOutput]) {
  [session addOutput:dataOutput];
} else {
  NSLog(@"couldn't add av data output");
}
...

Commenting out the buffer delegate doesn’t seem to make a difference.

Just tried this again and it went from ~70mb free to ~54mb free within 6 minutes. 🙁

  • 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-05-28T13:17:55+00:00Added an answer on May 28, 2026 at 1:17 pm

    Apparently there’s no workaround for this – filed a bug w/ Apple.

    Edit:
    This question is a bit old, but in case it helps anyone: I’m not 100% positive, but I think the reason I was seeing this is because I had zombie objects turned on! Make sure you don’t have zombie objects enabled in Xcode and see if that helps! Go to “Edit Scheme…” then choose the Diagnostics tab.

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

Sidebar

Related Questions

I have an application set up to where there are eighteen buttons. The basic
I have a super fish menu, the delay is set to 800, but when
I have a basic app in SpringMVC. All of my controllers extend a super
I have a very basic ListView in android and had set a very basic
I have a super basic HTML select form field - <select> <option value='1'>1</option> <option
I have this basic shopping list app where in the first view there are
I have a super basic form that shoots out an email. The code is
I have created a very basic custom layout to set out a menu made
I created a sample application that where I have a basic fullscreensize UIImageView set
I have a super basic Rails app with a couple of forms. I have

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.