Hi,
I am getting consistent Photoshop crash on mac (12.0.4) when handling 'slct' event callback in my extension
The crash itself produce the same repor (see bellow) t as described here: http://forums.adobe.com/message/3473893#3473893
I narrowed it down to the case when you have 2 or more documents in "consolidate all to tabs" mode and you try to pull out one of them.
If you have a callback registered like this for 'slct' ExternalInterface.addCallback("PhotoshopCallback" + CSXSInterface.instance.getExtensionId(), eventCallback) and you try to access Photoshop.app.activeDocument Photoshop crashes with the bellow report
It's hapening onlyon mac.
Do you have any advice how to workaround it or even better a fix?
Regards
Lukas
Process: Adobe Photoshop CS5 [2734] Path: /Applications/Adobe Photoshop CS5/Adobe Photoshop CS5.app/Contents/MacOS/Adobe Photoshop CS5 Identifier: com.adobe.Photoshop Version: 12.0.4 (12.0.4x20110407.r.1265) (12.0.4) Code Type: X86-64 (Native) Parent Process: Adobe Flash Builder 4.5 [1259] Date/Time: 2012-04-03 17:57:37.438 +0200 OS Version: Mac OS X 10.6.8 (10K549) Report Version: 6 Interval Since Last Report: -2676258 sec Crashes Since Last Report: 36 Per-App Interval Since Last Report: -1577868 sec Per-App Crashes Since Last Report: 36 Anonymous UUID: 3253FFFA-8C14-41BE-B83D-82BE373CCD9F Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 com.adobe.owl 0x000000010371d186 OWLDockGetAnchor + 8186 1 com.adobe.owl 0x0000000103683bc2 0x103652000 + 203714 2 com.adobe.owl 0x000000010368acb6 OWLHandleNSApplicationEvent + 40 3 com.adobe.Photoshop 0x000000010024e831 0x100000000 + 2418737 4 com.adobe.Photoshop 0x0000000100278615 0x100000000 + 2590229 5 com.adobe.PSAutomate 0x0000000121ccfbcf CPsWActionControl::Get(CPsWActionReference const&, CPsWActionDescriptor&) + 31 6 com.adobe.PSAutomate 0x0000000121cac44b CPsDocuments::DocumentCount() + 85 7 com.adobe.PSAutomate 0x0000000121c93b3f CPsApplication::GetActiveDocument(MultiScript::InterfacePtr&) const + 77 8 com.adobe.PSAutomate 0x0000000121c47ffe CPsApplication::HostGet(int, ScCore::Variant&) const + 2606 9 com.adobe.PSAutomate 0x0000000121ce72d8 MultiScript::TProxyBase::get(int, ScCore::Variant&, ScCore::Error*) const + 240 10 com.adobe.AdobeScCore 0x00000001221d72e2 ScCore::LiveObject::get(ScCore::String const&, ScCore::Variant&, ScCore::Error*) + 242 11 com.adobe.AdobeScCore 0x000000012222c4a1 _getProperty(APEDOMObjectRef*, ScCore::Variant const&, ScCore::Variant&, ScCore::Error&) + 113 12 com.adobe.AdobeScCore 0x000000012222dad7 APEObjectGetPropertyCB(Opaque_APEPlayer*, void*, void*, APEOpaqueAtom*) + 263 13 com.adobe.adobeswfl 0x0000000122932cf3 APXGetHostAPI + 21603 14 com.adobe.adobeswfl 0x0000000122fa4914 SWFLPlayer_Initialize + 2208548 15 ??? 0x000000012ab64e0e 0 + 5011557902 16 ??? 0x000000012ab652ec 0 + 5011559148 17 ??? 0x000000012abc2883 0 + 5011941507 18 com.adobe.adobeswfl 0x0000000122fa2915 SWFLPlayer_Initialize + 2200357 19 com.adobe.adobeswfl 0x0000000122f85d6d SWFLPlayer_Initialize + 2082685 20 com.adobe.adobeswfl 0x0000000122fa4914 SWFLPlayer_Initialize + 2208548 21 ??? 0x00000001267cb5e3 0 + 4940674531 22 ??? 0x00000001267cbc43 0 + 4940676163 23 ??? 0x000000012a04b807 0 + 4999919623 24 com.adobe.adobeswfl 0x0000000122a273b7 APXGetHostAPI + 1022759 25 com.adobe.adobeswfl 0x0000000122a28a83 APXGetHostAPI + 1028595 26 com.adobe.adobeswfl 0x0000000122d317dc APXGetHostAPI + 4210508 27 com.adobe.adobeswfl 0x0000000122d91276 SWFLPlayer_Initialize + 31878 28 com.adobe.ape 0x00000001207c7946 APEInitialize + 1398
Have you looked at this cookbook?
http://cookbooks.adobe.com/post_Creative_Suite_Extensions_and_the_Phot oshop_CS5_Re-17727.html
Regards
Sure, I know about PSEvenScrubber. This on is different beast though. When activeDocument is null it's just it and you get an exception in the script if you try to use it, but in this case code like this:
var ho:HostObject=app.activeDocument.hostObjectDelegate or
var d:int=Photoshop.app.documents.length;
cause the crash of the whole Photoshop
Keep in mind that if i just switch between the documents without pulling them out of the dock everything works fine.
But it can be releated though as it seems that something is not initialized properly, but in this case on deeper level than actionScript
North America
Europe, Middle East and Africa
Asia Pacific