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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:23:13+00:00 2026-05-17T15:23:13+00:00

I work with OpenAL to play sounds in my app. When I test it

  • 0

I work with OpenAL to play sounds in my app. When I test it using Instruments tool, it finds a leak:
LeakedObject = GeneralBlock-512
Size = 512 Bytes
Responsible Library = AudioToolbox
Responsible Frame = AU3DMixerEmbeddedInputElement::Initialize()

Stack trace:

   0 libSystem.B.dylib malloc
   1 libstdc++.6.dylib operator new(unsigned long)
   2 libstdc++.6.dylib operator new[](unsigned long)
   3 AudioToolbox AU3DMixerEmbeddedInputElement::Initialize()
   4 AudioToolbox AU3DMixerEmbedded::SetProperty(unsigned long, unsigned long, unsigned long, void const*, unsigned long)
   5 AudioToolbox AUBase::DispatchSetProperty(unsigned long, unsigned long, unsigned long, void const*, unsigned long)
   6 AudioToolbox AUMethodSetProperty(void*, unsigned long, unsigned long, unsigned long, void const*, unsigned long)
   7 OpenAL OALContext::InitializeMixer(unsigned long)
   8 OpenAL OALContext::OALContext(unsigned long, OALDevice*, int const*, unsigned long&, double&)
   9 OpenAL alcCreateContext
  10 myApp -[myAudioManager initOpenAL] /Users/kpower/Documents/projects/myApp/Classes/myAudioManager.m:197
  11 myApp -[myAudioManager init] /Users/kpower/Documents/projects/myApp/Classes/myAudioManager.m:83
  12 myApp +[myAudioManager sharedInstance] /Users/kpower/Documents/projects/myApp/Classes/myAudioManager.m:316
  13 myApp -[myMainMenu viewDidLoad] /Users/kpower/Documents/projects/myApp/Classes/myMainMenu.m:46
  14 UIKit -[UIViewController view]
  15 UIKit -[UIViewController contentScrollView]
  16 UIKit -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:]
  17 UIKit -[UINavigationController _layoutViewController:]
  18 UIKit -[UINavigationController _startTransition:fromViewController:toViewController:]
  19 UIKit -[UINavigationController _startDeferredTransitionIfNeeded]
  20 UIKit -[UINavigationController viewWillLayoutSubviews]
  21 UIKit -[UILayoutContainerView layoutSubviews]
  22 UIKit -[UIView(CALayerDelegate) _layoutSublayersOfLayer:]
  23 CoreFoundation -[NSObject(NSObject) performSelector:withObject:]
  24 QuartzCore -[CALayer layoutSublayers]
  25 QuartzCore CALayerLayoutIfNeeded
  26 QuartzCore -[CALayer layoutIfNeeded]
  27 UIKit -[UIView(Hierarchy) layoutIfNeeded]
  28 UIKit -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:]
  29 UIKit -[UIWindow _setRotatableClient:toOrientation:duration:force:]
  30 UIKit -[UIWindow _setRotatableViewOrientation:duration:force:]
  31 UIKit -[UIWindow _updateToInterfaceOrientation:duration:force:]
  32 UIKit -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:]
  33 UIKit -[UIWindow setDelegate:]
  34 UIKit -[UIViewController _tryBecomeRootViewControllerInWindow:]
  35 UIKit -[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]
  36 UIKit -[UINavigationController viewDidMoveToWindow:shouldAppearOrDisappear:]
  37 UIKit -[UIView(Internal) _didMoveFromWindow:toWindow:]
  38 UIKit -[UIView(Hierarchy) _postMovedFromSuperview:]
  39 UIKit -[UIView(Internal) _addSubview:positioned:relativeTo:]
  40 UIKit -[UIView(Hierarchy) addSubview:]
  41 myApp -[myAppAppDelegate applicationDidFinishLaunching:] /Users/kpower/Documents/projects/myApp/Classes/myAppAppDelegate.m:19
  42 UIKit -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
  43 UIKit -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:]
  44 UIKit -[UIApplication handleEvent:withNewEvent:]
  45 UIKit -[UIApplication sendEvent:]
  46 UIKit _UIApplicationHandleEvent
  47 GraphicsServices PurpleEventCallback
  48 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
  49 CoreFoundation __CFRunLoopDoSource1
  50 CoreFoundation __CFRunLoopRun
  51 CoreFoundation CFRunLoopRunSpecific
  52 CoreFoundation CFRunLoopRunInMode
  53 UIKit -[UIApplication _run]
  54 UIKit UIApplicationMain
  55 myApp main /Users/kpower/Documents/projects/myApp/Classes/../main.m:13
  56 myApp start

Code in initOpenAL (near the line 197):

device = alcOpenDevice(NULL);
if (NULL == device) return NO;

context = alcCreateContext(device, 0);  // line 197 - tried using NULL instead of 0 - same result
if (NULL == context) return NO;

alcMakeContextCurrent(context);  

It’s not critical (it doesn’t repeat from time to time, consuming memory), but how can I fix it?

  • 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-17T15:23:13+00:00Added an answer on May 17, 2026 at 3:23 pm

    I think this is a problem with the library itself as I also get problems and others report the same. Blame Apple for this. Hopefully they will sort this out soon.

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

Sidebar

Related Questions

I have an OpenAl sound engine on my iPhone app. When I play a
At work we are currently still using JUnit 3 to run our tests. We
At work we have an application to play 2K (2048*1556px) OpenEXR film sequences. It
Im making a piano test app, all the keyboard is sounding now playing notes
I made a game in C++ with OpenGL ES rendering and using OpenAL for
At work we are being asked to create XML files to pass data to
I work in VBA, and want to parse a string eg <PointN xsi:type='typens:PointN' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
I work with C# at work but dislike how with webforms it spews out
At work, we have multiple branches that we may be working on at any
I work on a complex application where different teams work on their own modules

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.