Skip navigation
Currently Being Moderated

ActionReference crashes certain PSCC installs

Jan 23, 2014 1:59 PM

Hello,

 

I've got a few users of GuideGuide reporting that GuideGuide crashes Photoshop. I am not able to reproduce this error myself. I've been sending them various panels that segment the actions to determine what is causing the crashes and so far it seems that executing ActionReference commands, both in ExtendScript and via the csawlibs are at the source of the problem.

 

The following code will crash Photoshop for them reliably (I cannot reproduce it myself).

 

function getOffsets() {

  var ref = new ActionReference();

    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )

  var desc = executeActionGet(ref)

  var xOffSet = desc.getInteger(stringIDToTypeID('rulerOriginH'))

  var yOffSet = desc.getInteger(stringIDToTypeID('rulerOriginV'))

  return [xOffSet/65536, yOffSet/65536]

}

 

I've been using some variation of this code for over 3 years and have never had an issue with it until last week. The user that is most actively helping debug this mentioned that the problem started happening in a previously working panel after a recent Creative Cloud update, and exists in a new version of the panel that runs on entirely different code (except for the ActionReference stuff). Has something changed that has broken this process?

 

Any help would be greatly appreciated. I don't know of any other way to get the ruler offsets of a document, so I'd love to find a solution.

 

Here's a link to the current support thread: https://github.com/guideguide/support/issues/3

 

The user @kropecius experiences crashes when focusing on fields, which I've been able to confirm happens when GuideGuide checks photoshop for environment information (the code above).

 

The user @skynebula experiences crashes when the panel opens but not in the context that @kropercius mentions. GuideGuide checks for info when it initializes, so his issue may unrelated, or if the problem is in the ActionRefrence itself, may be some core issue that's causing different symptoms for different people.

 

Also potentially related, a select set of users claim that GuideGuide doesn't add guides. I haven't fully investigated this yet, but as guide adding is being done via ActionReference I think it may be connected. (Adding guide via csawlib seems to have a bug that doen't automatically enable guide visiblility so I'm stuck using ActionReference).

 

Cameron

 
Replies
  • Currently Being Moderated
    Jan 24, 2014 11:00 PM   in reply to cameronmcefee

    Please make sure they submit the crash logs to Adobe. And include steps to repro and email addresses so we can get to the bottom of it.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 27, 2014 12:04 PM   in reply to cameronmcefee

    I have your GuideGuide Debug panel installed and can't repro. Others are trying to repro as well. Can you get it to fail by making a new document? Are those that are failing, failing 100% of the time?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points