GC对未注册线程的操作 [英] GC Operation on unregistered thread
问题描述
我在我的应用程序中的OS X Lion 10.7得到以下错误。我已经查明是什么原因造成的错误,但要找出如果这是在10.7或出现错误已经改变了,我很想念。
I am getting the following error on OS X Lion 10.7 in my application. I have pinpointed what is causing the error, but want to find out if this is a bug in 10.7 or if something has changed that I am missing.
malloc: *** auto malloc[3677]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug.
运行 bt
时GDB的堆栈跟踪在断点:
The stack trace from GDB when running bt
on the breakpoint:
#0 0x00007fff90742b44 in auto_zone_thread_registration_error ()
#1 0x00007fff9073a9a4 in auto_zone_allocate_object ()
#2 0x00007fff8f36335e in _Block_copy_internal ()
#3 0x00007fff8a9d7e9d in HALC_ProxyIOContext::StopIOProc ()
#4 0x00007fff8a9d7dc6 in __HAL_HardwarePlugIn_DeviceStop_block_invoke_30 ()
#5 0x00007fff8a9b8521 in HALB_Executor::DoIt ()
#6 0x00007fff8a9b84ce in HALB_Executor::Run ()
#7 0x00007fff8a9d7ce9 in HAL_HardwarePlugIn_DeviceStop ()
#8 0x00007fff8a9d7c6d in HALPlugIn::DeviceStopIOProc ()
#9 0x00007fff8a9d7bb1 in AudioDeviceStop ()
#10 0x00000001044b381c in AUHAL::StopHardware ()
#11 0x00000001044b397e in AUHAL::AUIOProc ()
#12 0x00007fff8a9d5362 in HALC_ProxyIOContext::IOWorkLoop ()
#13 0x00007fff8a9d4ac9 in HALC_ProxyIOContext::IOThreadEntry ()
#14 0x00007fff8a9d4984 in HALB_IOThread::Entry ()
#15 0x00007fff8fb2f8bf in _pthread_start ()
#16 0x00007fff8fb32b75 in thread_start ()`
导致Garbage Collection线程错误的代码是:
The code that is causing this Garbage Collection thread error is:
NSSound *completedSound = [NSSound soundNamed:@"Glass"];
[completedSound play] //this line is causing the error;
所有行都是播放在系统上注册的系统声音之一,由用户。
All that line does is play one of the system sounds that are registered on the system as selected by the user. To me it seems like a bug, and I have filed a bug report just in case.
任何人都体会到了这一点?
Anybody else experienced this?
推荐答案
我看到相同的消息,语音合成器停止。
I see the same message with the speech synthesizer stopping.
这篇关于GC对未注册线程的操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!