Skip to main content
Known Participant
March 5, 2006
Question

ESTK crashing when debugging

  • March 5, 2006
  • 24 replies
  • 1936 views
Here is a sample script that creates a menu item in the context thumbnail menu in Bridge. You save this script as a jsx file and place it in your StartUpScripts folder.

When this script runs, the debugger halts at the debugger statement, the line is highlighted in yellow and the cursor is frozen at the start of the line (it does not blink). About 3 seconds later the ESTK crashes.

Could someone else please try this on their computer to see if you can duplicate this behavior. Any suggestions would be most appreciated.

Thanks.

Here is the script:

#target bridge

$.level = 0;

if ( BridgeTalk.appName == "bridge" ) { // only load into bridge

> // create menu

> var cmdMenuShell = new MenuElement('command', 'Menu shell ...', 'before Thumbnail/Cut-');

> // execute menu

> cmdMenuShell.onSelect = function() {

>> $.level=1; debugger;

>> alert("Hello Menu shell");

> }

}
This topic has been closed for replies.

24 replies

hillrgAuthor
Known Participant
March 23, 2006
I am using dual 1600x1200px monitors. The find dialog sits on the 2nd monitor.
Participating Frequently
March 23, 2006
Hi Rory.

I do get some strange behavior with your prefs, but no crash. I think it's just your display settings that are not right for my display. For example, when I choose Edit>Preferences, the dialog appears off screen. What size monitor and screen resolution are you using. Do you have a dual monitor setup? If so give me the size and res of both monitors.

tom
-----
hillrgAuthor
Known Participant
March 21, 2006
Thanks Tom.

I have uploaded Application Data\Adobe\ExtendScript Toolkit\1.0\prefs.jsx to http://members.shaw.ca/hillrg/prefs.zip.

Rory
Participating Frequently
March 20, 2006
Hi Rory,

On my system the prefs.jsx file would be somewhere like this:

C:\Documents and Settings\Tom\Application Data\Adobe\ExtendScript Toolkit\1.0\prefs.jsx

Bridge should be in a similar path, but I'm not sure.

We can start with ESTK prefs first and see if that makes a difference for me reproducing the crash.

tom
-----
hillrgAuthor
Known Participant
March 18, 2006
Sorry Tom. I do not know what/where the prefs files are. If you explain I will send them.

Thanks a million
Rory
Participating Frequently
March 18, 2006
Hi Rory,

I'm not having a crash with either method. Maybe if you send me your Bridge and ESTK prefs files I can try to reproduce it with your settings.

I also never get an alert "Hello Menu Shell" either when I run the script.

tom
-----
hillrgAuthor
Known Participant
March 17, 2006
I have figured out what is causing the ESTK 1.0.3 to crash - I think. When a file has comments enclosed in /* bla bla bla */ then the ESTK crashes when a debugger statement is encoutered and $.level=1.

I have uploaded two versions of the MenuShell.jsx file to http://members.shaw.ca/hillrg/MenuShell.zip

If I load "MenuShell without comment.jsx" into Startupscripts then it works, and the ESTK does not crash.

If I load "MenuShell with comment.jsx" into Startupscripts then it fails, and the ESTK does crash.

If I load "MenuShell without comment.jsx" and "MenuShell with comment.jsx" into Startupscripts then both fail, and the ESTK does crash.

Tom - can you reproduce this behavior?

Thanks
Rory
Participating Frequently
March 7, 2006
I downloaded the file and put it in StartupScripts, but still no crash for me, Rory. Maybe you should try removing your Bridge and ESTK prefs files and see if a launch with default preferences makes the crash go away, then change your prefs back to the way you like to have them one option at a time and see if the crash returns.

Also, make sure you're giving me all the steps, and anything unusual about your environment, like which folder your Bridge script manager and ESTK script folder prefs point to...

tom
-----
hillrgAuthor
Known Participant
March 7, 2006
Tom

I have uploaded the MenuShell.jsx file to http://members.shaw.ca/hillrg/MenuShell.zip

I have also done a re-install of Bridge and ESTK - both to 1.0.3 to no avail. Sigh.
hillrgAuthor
Known Participant
March 6, 2006
Yes, I am on the latest Bridge 1.0.3 and the latest photoshop CS2. I checked the updates just to be sure.

I get the same behavior in any script that runs from bridge. If you use Bob Stucky's ImportCamera_BR script, and put a $.level=1; debugger; break in the script I get the same behavior. I cannot get any script to work.

I will upload the jsx I posted tonight and let you know.

Thanks again for the help Tom!

Rory