Hi, it seems that I have something to add to this thread =)
I have a nice crash in Protools LE 8, mac os x 10.5.6,
and my RTAS plugin is killing PT if I trying to do this steps -
I have previously saved PT project, plugin is inserted in one of the insert slots in mixer.
Plugin UI is closed.
So, I open this project, and perform opening and closing of plugin editor as fast as I can.
For this - just move mixer to the left so that opened plugin UI will not hide mixer, and double click on corresponding mixer insert.
Plugin will show up for a fraction of second and hide.
After that - if I try to open plugin UI once more time - PT dies.
I’m postin it in this thread, because after commenting out
for (int i = 20; --i >= 0;)
MessageManager::getInstance()->runDispatchLoopUntil (1);
at the end of removeSubWindow in juce_RTAS_MacUtilities.mm all is working fine. But in that case, closing PT with active plugin UI kills PT.
This is an part of call stack from crash report.
Process: Pro Tools LE [986]
Path: /Applications/Digidesign/Pro Tools/Pro Tools LE.app/Contents/MacOS/Pro Tools LE
Identifier: com.digidesign.ProToolsLE
Version: 8.0.3 (8.0.3f249)
Code Type: X86 (Native)
Parent Process: launchd [94]
Date/Time: 2010-03-05 23:59:32.209 +0300
OS Version: Mac OS X 10.5.6 (9G66)
Report Version: 6
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x95e41e42 __kill + 10
1 libSystem.B.dylib 0x95eb423a raise + 26
2 libSystem.B.dylib 0x95ec0679 abort + 73
3 libstdc++.6.dylib 0x9521c005 0x951d4000 + 294917
4 libstdc++.6.dylib 0x9521a10c __gxx_personality_v0 + 1108
5 libstdc++.6.dylib 0x9521a14b std::terminate() + 29
6 libstdc++.6.dylib 0x9521a261 __cxa_throw + 101
7 …gn.framework.CoreFoundation 0x00559883 Sys_MachExceptionHandler::Init() + 1951
8 com.apple.QD 0x95ae5d0f SetOrigin + 101
9 com.digidesign.framework.DFW 0x00a36f67 DFW_Painter_ForwardDeclarationHack::TrackLeakEntry(DFW_Painter*, bool, void const*) + 217
10 com.digidesign.framework.DFW 0x009dfc10 DFW_PainterQD::GetOrigin() + 58
11 …gidesign.framework.ProTools 0x01feeeb1 0x1bbc000 + 4402865
12 …gidesign.framework.ProTools 0x01fef15f 0x1bbc000 + 4403551
13 …gidesign.framework.ProTools 0x021747b7 0x1bbc000 + 5998519
14 …gidesign.framework.ProTools 0x02518257 0x1bbc000 + 9814615
15 …gidesign.framework.ProTools 0x0251832d 0x1bbc000 + 9814829
16 …gidesign.framework.ProTools 0x026bb779 0x1bbc000 + 11532153
17 com.digidesign.framework.DFW 0x009f31e5 DFW_Timers::LockedCallbackTimerProc::operator()(void*) + 55
18 com.digidesign.framework.DFW 0x009f1995 DFW_Timers::CallbackTimerManager::MasterCallback(void*) + 77
19 com.digidesign.framework.DFW 0x009f0ce5 DFW_EventListener::NotifyListeners(std::list<DFW_EventListener*, std::allocator<DFW_EventListener*> >&, DFW_EventListener::NotificationType, DFW_EventRef, DFW_EventTarget*) + 3419
20 com.digidesign.framework.DFW 0x00aac7b2 DFW_EventLoop::RunningLegacyEventLoop() + 846
21 com.apple.CoreFoundation 0x96e5eb25 CFRunLoopRunSpecific + 4469
22 com.apple.CoreFoundation 0x96e5ecd8 CFRunLoopRunInMode + 88
23 com. MyPlug19954 0x1b83af74 juce::MessageManager::runDispatchLoopUntil(int) + 388
24 com. MyPlug19954 0x1b91fa24 removeSubWindow(void*, juce::Component*) + 308
25 com. MyPlug19954 0x1b92031a JucePlugInProcess::JuceCustomUIView::EditorCompWrapper::~EditorCompWrapper() + 58
26 com. MyPlug19954 0x1b92137c JucePlugInProcess::SetViewPort(OpaqueGrafPtr*) + 908
27 com. MyPlug19954 0x1b9a2ea2 CProcessType::SetViewPort(long, OpaqueGrafPtr*) + 50
28 com. MyPlug19954 0x1b91f350 S3ArgGroupFunc<unsigned long, long, OpaqueGrafPtr*>::operator()() + 80
29 com. MyPlug19954 0x1b9a3a33 CallAndTranslateExceptionsToReturnValues(SGenFuncRetLong*) + 19
30 com. MyPlug19954 0x1b918dd9 CallNoThrowCommon(SGenFuncRetLong*, unsigned char, unsigned char) + 89
31 com. MyPlug19954 0x1b91b085 PI_SetViewPort(unsigned long, long, OpaqueGrafPtr*) + 85
32 com.digidesign.framework.DAE 0x03e2a2bb FicGetApplicationInterface + 92763
33 com.digidesign.framework.DAE 0x03eef905 FicSetPlugInPort + 41
34 …gidesign.framework.ProTools 0x01feeceb 0x1bbc000 + 4402411
35 …gidesign.framework.ProTools 0x0217405c 0x1bbc000 + 5996636
36 …gidesign.framework.ProTools 0x0217633b 0x1bbc000 + 6005563
37 …gidesign.framework.ProTools 0x0217708a 0x1bbc000 + 6008970
38 …gidesign.framework.ProTools 0x021772e6 0x1bbc000 + 6009574
39 com.digidesign.framework.DFW 0x00974b8d TWindow::CloseAndFree() + 21
40 …gidesign.framework.ProTools 0x02031efd 0x1bbc000 + 4677373
41 com.digidesign.framework.DFW 0x00983b4b TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 703
42 com.digidesign.framework.DFW 0x00983953 TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 199
43 com.digidesign.framework.DFW 0x00983953 TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 199
44 com.digidesign.framework.DFW 0x00983953 TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 199
45 com.digidesign.framework.DFW 0x00983953 TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 199
46 com.digidesign.framework.DFW 0x00983953 TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 199
47 com.digidesign.framework.DFW 0x00983953 TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 199
48 com.digidesign.framework.DFW 0x00983953 TView::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 199
49 com.digidesign.framework.DFW 0x0097598e TWindow::HandleMouseDown(VPoint const&, TToolboxEvent*, _CPoint) + 168
50 com.digidesign.framework.DFW 0x00a49ae1 DFW_PainterOpenGL::SetPenMode(EPenMode) + 19745
51 com.apple.AppKit 0x93d431a3 -[NSWindow sendEvent:] + 5381
52 com.apple.AppKit 0x942bad13 carbonAppWindowMouseHandler + 269
53 com.apple.AppKit 0x93fa57a5 carbonAppWindowHandler + 120
54 com.apple.HIToolbox 0x93448143 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
55 com.apple.HIToolbox 0x9344757d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
56 com.apple.HIToolbox 0x93463ed2 SendEventToEventTarget + 52
57 com.apple.HIToolbox 0x934760a8 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1208
58 com.apple.HIToolbox 0x934484fc DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2134
59 com.apple.HIToolbox 0x9344757d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
60 com.apple.HIToolbox 0x93463ed2 SendEventToEventTarget + 52
61 com.apple.HIToolbox 0x934d0b80 ToolboxEventDispatcher + 86
62 com.apple.HIToolbox 0x934cd3da RunApplicationEventLoop + 222
63 com.digidesign.framework.DFW 0x00aac317 DFW_EventLoop::RunApplicationEventLoop() + 11
64 com.digidesign.framework.DFW 0x0099e487 TApplication::Run() + 45
65 …gidesign.framework.ProTools 0x027fe54c LaunchProTools + 1560
66 com.digidesign.ProToolsLE 0x0000a2a9 0x1000 + 37545
67 com.digidesign.ProToolsLE 0x0000ab38 0x1000 + 39736
68 com.digidesign.ProToolsLE 0x00004f4f 0x1000 + 16207
69 com.digidesign.ProToolsLE 0x00004e7d 0x1000 + 15997