Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS App occasionally hanging on quit #567

Open
olilarkin opened this issue Jul 1, 2020 · 2 comments
Open

macOS App occasionally hanging on quit #567

olilarkin opened this issue Jul 1, 2020 · 2 comments
Labels
APP Issue relates to standalone app bug Something isn't working macOS Issue relates to macOS

Comments

@olilarkin
Copy link
Member

possibly related to changes in 907e38e

I have experienced this several times when debugging in xcode and hitting command-Q

Thread 1 Queue : com.apple.main-thread (serial)
#0 0x00007fff71082866 in __psynch_cvwait ()
#1 0x00000001012ba1e5 in _pthread_cond_wait ()
#2 0x00007fff44a2ca3e in HALB_Guard::WaitFor(unsigned long long) ()
#3 0x00007fff44a2c7cc in HALB_IOThread::_WaitForState(unsigned int) ()
#4 0x00007fff44a32035 in HALB_IOThread::StopAndWaitForState(unsigned int) ()
#5 0x00007fff44a31e2d in HALC_ProxyIOContext::StopIO() ()
#6 0x00007fff44a31d8f in HALC_ProxyIOContext::_StopIOProc(int ()(unsigned int, AudioTimeStamp const, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) ()
#7 0x00007fff44a31acd in HALC_ProxyIOContext::StopIOProc(int ()(unsigned int, AudioTimeStamp const, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) ()
#8 0x00007fff44a31937 in HALC_ShellDevice::StopIOProc(int ()(unsigned int, AudioTimeStamp const, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) ()
#9 0x00007fff44a316c4 in HAL_HardwarePlugIn_DeviceStop(AudioHardwarePlugInInterface**, unsigned int, int ()(unsigned int, AudioTimeStamp const, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) ()
#10 0x00007fff44a314f5 in HALPlugIn::DeviceStopIOProc(HALObject const&, int ()(unsigned int, AudioTimeStamp const, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) ()
#11 0x00007fff44a314aa in HALDevice::StopIOProc(int ()(unsigned int, AudioTimeStamp const, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) ()
#12 0x00007fff44a310dd in AudioDeviceStop ()
#13 0x00000001000f8732 in RtApiCore::stopStream() at /Users/oli/Dev/iPlug2/Dependencies/IPlug/RTAudio/RtAudio.cpp:1609
#14 0x00000001000f88a0 in RtApiCore::abortStream() at /Users/oli/Dev/iPlug2/Dependencies/IPlug/RTAudio/RtAudio.cpp:1636
#15 0x000000010008f639 in RtAudio::abortStream() at /Users/oli/Dev/iPlug2/Dependencies/IPlug/RTAudio/RtAudio.h:877
#16 0x000000010008c077 in iplug::IPlugAPPHost::CloseAudio() at /Users/oli/Dev/iPlug2/IPlug/APP/IPlugAPP_host.cpp:564
#17 0x000000010008bd00 in iplug::IPlugAPPHost::~IPlugAPPHost() at /Users/oli/Dev/iPlug2/IPlug/APP/IPlugAPP_host.cpp:39
#18 0x000000010008c1f5 in iplug::IPlugAPPHost::~IPlugAPPHost() at /Users/oli/Dev/iPlug2/IPlug/APP/IPlugAPP_host.cpp:36
#19 0x00000001000f02bb in std::__1::default_deleteiplug::IPlugAPPHost::operator()(iplug::IPlugAPPHost*) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2339
#20 0x00000001000f023f in std::__1::unique_ptr<iplug::IPlugAPPHost, std::1::default_deleteiplug::IPlugAPPHost >::reset(iplug::IPlugAPPHost*) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2652
#21 0x00000001000ed827 in std::1::unique_ptr<iplug::IPlugAPPHost, std::1::default_deleteiplug::IPlugAPPHost >::operator=(std::nullptr_t) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2610
#22 0x00000001000ecfe9 in iplug::IPlugAPPHost::MainDlgProc(HWND*, unsigned int, unsigned long, long) at /Users/oli/Dev/iPlug2/IPlug/APP/IPlugAPP_dialog.cpp:571
#23 0x000000010002be72 in SwellDialogDefaultWindowProc(HWND, unsigned int, unsigned long, long) at /Users/oli/Dev/iPlug2/WDL/swell/swell-dlg.mm:448
#24 0x0000000100028251 in ::-[Swell_vIPlugEffect_hwnd onSwellMessage:p1:p2:](UINT, WPARAM, LPARAM) at /Users/oli/Dev/iPlug2/WDL/swell/swell-dlg.mm:633
#25 0x0000000100072e01 in sendSwellMessage(objc_object
, unsigned int, unsigned long, long) at /Users/oli/Dev/iPlug2/WDL/swell/swell-wnd.mm:55
#26 0x0000000100070ce5 in DestroyWindow(HWND
*) at /Users/oli/Dev/iPlug2/WDL/swell/swell-wnd.mm:1637

@olilarkin olilarkin added APP Issue relates to standalone app macOS Issue relates to macOS labels Jul 1, 2020
@olilarkin
Copy link
Member Author

seems to be something to do with my HDMI TV audio

@AlexHarker
Copy link
Collaborator

Looks like an audio thread hang

@AlexHarker AlexHarker added the bug Something isn't working label Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP Issue relates to standalone app bug Something isn't working macOS Issue relates to macOS
Projects
None yet
Development

No branches or pull requests

2 participants