Re: FxPlug dealloc Crashing in Motion
Re: FxPlug dealloc Crashing in Motion
- Subject: Re: FxPlug dealloc Crashing in Motion
- From: Paul Schneider <email@hidden>
- Date: Mon, 12 Jul 2010 17:48:31 -0500
Hi Bob,
It sounds like an object is being under-retained, and dealloc'd before everything is done with it.
If you run with NSZombieEnabled, you should see some console messages describing which object is being freed prematurely:
http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html#SECFOUNDATION
- Paul
On Jul 12, 2010, at 5:28 PM, Bob Currier wrote:
> I've got an FxPlug that's working fine in FCP, but when used in Motion
> it crashes whenever dealloc is called.
>
> I've no-op'd the dealloc routine, and even removed it entirely, yet the
> crash still occurs.
>
> Although the crash is in Motion, and seems to be occurring after my
> plugin has been unloaded, no doubt it's something I'm doing wrong. Any
> ideas of how to proceed to locate this? I do have a number of custom UI
> params.
>
> The relevant crash log is below.
>
> -- Bob
>
> Process: Motion [82906]
> Path: /Applications/Motion.app/Contents/MacOS/Motion
> Identifier: com.apple.motion
> Version: 4.0.2 (726)
> Build Info: Motion-7260000~10
> Code Type: X86 (Native)
> Parent Process: launchd [227]
>
> Date/Time: 2010-07-12 15:25:09.786 -0700
> OS Version: Mac OS X 10.6.3 (10D573)
> Report Version: 6
>
> Interval Since Last Report: 4098 sec
> Crashes Since Last Report: 1
> Per-App Interval Since Last Report: 39 sec
> Per-App Crashes Since Last Report: 1
> Anonymous UUID: 2E1CCFC8-421A-4B37-8270-7D6D9A3F92CB
>
> Exception Type: EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000020
> Crashed Thread: 0 Dispatch queue: com.apple.main-thread
>
> Application Specific Information:
> objc_msgSend() selector name: release
>
>
> Thread 0 Crashed: Dispatch queue: com.apple.main-thread
> 0 libobjc.A.dylib 0x9861eed7 objc_msgSend + 23
> 1 com.apple.ozone.framework 0x009886de -[OZProPlugParmHandler
> dealloc] + 782
> 2 com.apple.ozone.framework 0x0097669c
> OZProPlugEffect::~OZProPlugEffect() + 924
> 3 com.apple.ozone.framework 0x008a9738
> OZPasteEntry::~OZPasteEntry() + 152
> 4 com.apple.ozone.framework 0x008aa128 OZPasteList::~OZPasteList() + 88
> 5 libSystem.B.dylib 0x97b2d3bf __cxa_finalize + 208
> 6 libSystem.B.dylib 0x97b2d2d4 exit + 33
> 7 com.apple.AppKit 0x950bfcc2 -[NSApplication
> terminate:] + 1056
> 8 com.apple.prokit 0x001be0a3 -[NSProApplication
> terminate:] + 116
> 9 com.apple.motion 0x0000746c 0x1000 + 25708
> 10 com.apple.AppKit 0x94ec55c6 -[NSApplication
> sendAction:to:from:] + 112
> 11 com.apple.prokit 0x001be3b8 -[NSProApplication
> sendAction:to:from:] + 127
> 12 com.apple.AppKit 0x94ec5479 -[NSMenuItem
> _corePerformAction] + 435
> 13 com.apple.AppKit 0x94ec516b -[NSCarbonMenuImpl
> performActionWithHighlightingForItemAtIndex:] + 174
> 14 com.apple.AppKit 0x94ec505a -[NSMenu
> performActionForItemAtIndex:] + 65
> 15 com.apple.AppKit 0x94ec500d -[NSMenu
> _internalPerformActionForItemAtIndex:] + 50
> 16 com.apple.AppKit 0x94ec4f73 -[NSMenuItem
> _internalPerformActionThroughMenuIfPossible] + 97
> 17 com.apple.AppKit 0x94ec4eb7 -[NSCarbonMenuImpl
> _carbonCommandProcessEvent:handlerCallRef:] + 336
> 18 com.apple.AppKit 0x94eb95f9 NSSLMMenuEventHandler + 404
> 19 com.apple.HIToolbox 0x94a500a9
> DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*,
> HandlerCallRec*) + 1567
> 20 com.apple.HIToolbox 0x94a4f370
> SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*,
> HandlerCallRec*) + 411
> 21 com.apple.HIToolbox 0x94a71b55 SendEventToEventTarget + 52
> 22 com.apple.HIToolbox 0x94a9e147
> SendHICommandEvent(unsigned long, HICommand const*, unsigned long,
> unsigned long, unsigned char, void const*, OpaqueEventTargetRef*,
> OpaqueEventTargetRef*, OpaqueEventRef**) + 448
> 23 com.apple.HIToolbox 0x94ac2e40
> SendMenuCommandWithContextAndModifiers + 66
> 24 com.apple.HIToolbox 0x94ac2df5 SendMenuItemSelectedEvent + 121
> 25 com.apple.HIToolbox 0x94ac2cfa
> FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 152
> 26 com.apple.HIToolbox 0x94a92436 MenuSelectCore(MenuData*,
> Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 454
> 27 com.apple.HIToolbox 0x94a91ba4 _HandleMenuSelection2 + 465
> 28 com.apple.HIToolbox 0x94a919c2 _HandleMenuSelection + 53
> 29 com.apple.AppKit 0x94eb2b3a _NSHandleCarbonMenuEvent + 285
> 30 com.apple.AppKit 0x94e876e6 _DPSNextEvent + 2304
> 31 com.apple.AppKit 0x94e86976 -[NSApplication
> nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
> 32 com.apple.AppKit 0x94e48bef -[NSApplication run] + 821
> 33 com.apple.prokit 0x001beab1 NSProApplicationMain + 326
> 34 com.apple.motion 0x000055de 0x1000 + 17886
> 35 com.apple.motion 0x00002746 0x1000 + 5958
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Pro-apps-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden