AVAudioRecorder throws errors

17,736

Solution 1

This error is just console noise from a System framework, you should ignore it, it doesn't affect you. If your app is crashing or failing to record the real reason is elsewhere.

AVAudioRecorder works just fine on iOS 5, even if it does throw (and catch) Exceptions during normal operations which make debugging harder.

Solution 2

I have also been experiencing these errors since moving to iOS5. I am not recording, but playing back sounds with AVAudioPlayer. This seems to be a problem with the AVAudio frameworks when using the iOS simulator only. Testing on actual hardware (an iPad 2 & iPad 1, in my case) does not produce these same errors, which makes me less concerned since testing on hardware is what I consider the testing that actually counts.

BTW, sorry that this is not an solution to fixing the issue, so much as a confirmation that you are not the only one experiencing the problem.

Solution 3

I have found that this error only comes up when using the Simulator. When it is tested on an actual device it works fine and no errors come up.

So until Apple releases a bug fix for the Simulator, test your apps on devices.

Solution 4

I solved this problem by deleting exceptional breakpoints.

Solution 5

If you want to leave your break points on all exceptions in (which I find very useful), you can just use an if(!TARGET_IPHONE_SIMULATOR) statement before running audio. This will cause audio to only run if you're using a device.

There won't be any sound from the simulator, but it's very helpful if you don't need music on and want to debug other code.

Share:
17,736

Related videos on Youtube

dcai
Author by

dcai

Updated on June 15, 2022

Comments

  • dcai
    dcai almost 2 years

    I use AVAudioRecorder to record, it worked fine on iOS 4 devices, but yesterday we found out recording is broken on iOS5. Using the iPhone 5 simulator I got following error:

    2011-08-02 11:09:03.586 Moodle[7832:10103] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: ___CFObjCIsCollectable

    Do you know where this error came from and how to fix this?

    • BoltClock
      BoltClock over 12 years
      Your original question didn't ask how to fix it, it only asked for others to confirm if they had the same problem too — we didn't want that kind of stuff to be posted as answers and clogging up the question unnecessarily. Your edit has made the intent of your question much clearer now though so I've reopened it.
    • HelloWorld
      HelloWorld over 12 years
      you can refresh [this question][1],use device test your code. [1]: stackoverflow.com/questions/7290418/…
  • Amy Worrall
    Amy Worrall over 12 years
    Thanks for that answer. I had Xcode set to break on exceptions, and was wondering why my video player was crashing!
  • OldPeculier
    OldPeculier about 12 years
    Oh, it affects me all right. It affects me the same way spam effects my inbox: by noising up my information stream, making useful messages harder to find. Logs should be clean. Spam should be eliminated. This bug should get fixed.
  • haawa
    haawa over 11 years
    on the left side of xCode vindow find "breakpoint". Choose all items and rightClick - delete;
  • Greg Maletic
    Greg Maletic over 11 years
    hooleyhoop: "AVAudioRecorder works just fine on iOS 5, even if it does throw (and catch) Exceptions during normal operations which make debugging harder." - I'm not sure I agree with your definition of "works just fine".
  • Murat Ögat
    Murat Ögat over 11 years
    Indeed, if you have exception breakpoints enabled for debugging purposes, this ignorable message is raised as an error and simulator stops. Removing the exceptions solves the problem until a fix for the simulator arrives.