• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Malloc error: GC operation on unregistered thread...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Malloc error: GC operation on unregistered thread...


  • Subject: Malloc error: GC operation on unregistered thread...
  • From: Andrew Madsen <email@hidden>
  • Date: Mon, 7 Sep 2009 16:35:49 -0600

I'm working on an app that uses Audio Queue Services for recording audio. I have the following lines in my code:

OSStatus err;
UInt32 propertySize;
AudioQueueRef myQueue = [self audioQueue];
err = AudioQueueGetPropertySize(myQueue, kAudioQueueProperty_MagicCookie, &propertySize);


I'm calling AudioQueueGetPropertySize in preparation for calling AudioQueueGetProperty() to get the magic cookie from the audio queue so I can save it as a property in my audio file. However, I get the following error when the line above is executed:

malloc: *** auto malloc[861]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug.

Breaking on auto_zone_thread_registration_error shows me the following stack trace:

#0	0x9567a0c3 in auto_zone_thread_registration_error
#1	0x95675116 in auto_zone_allocate_object
#2	0x91749791 in CFAllocatorAllocate
#3	0x917494b3 in _CFRuntimeCreateInstance
#4	0x9177e362 in __CFRunLoopCreate
#5	0x9177e24f in _CFRunLoopGet0
#6	0x9177df1d in CFRunLoopGetCurrent
#7	0x20390e86 in AVS::AVCDeviceController::AVCDeviceController
#8	0x20391478 in AVS::DestroyAVCDeviceController
#9	0x9050cfe1 in _pthread_start
#10	0x9050ce66 in thread_start

My app doesn't crash, and everything seems to work OK, but I'm trying to figure out what this means. This is my first garbage collected app, so I'm guessing there's something about the intricacies of actually using garbage collection that I'm missing. Any pointers?

Thanks!
Andrew Madsen
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Malloc error: GC operation on unregistered thread...
      • From: Bill Bumgarner <email@hidden>
    • Re: Malloc error: GC operation on unregistered thread...
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: KVO on Distributed Objects with exception handling.
  • Next by Date: Re: Strangest UITable bug
  • Previous by thread: [SOLVED] Re: NSOutlineView with multiple Core Data entities
  • Next by thread: Re: Malloc error: GC operation on unregistered thread...
  • Index(es):
    • Date
    • Thread