Results 1 to 7 of 7

Thread: [CS4/5][JS] Script causes InDesign to crash

  1. #1
    Join Date
    Apr 2010
    Posts
    258

    [CS4/5][JS] Script causes InDesign to crash

    I am having bit of tribulations by means of some InDesign scripting I am running on, and wonder if anybody else has had the same issue. I have comprised a script that uses app.dialog to prompt for user information in sequence. It then takes the result of that dialog, and uses it in the script. Attractive customary so far, and if I run this from the scripts panel, or from ESTK, it runs extremely well. If I set it up as a Script Menu Action, when I work the script via the menu, it performs, and then crashes InDesign. I have tried this by means of multiple dialogs, and every time a dialog is called from a SMA, InDesign crashes.

  2. #2
    Join Date
    Nov 2009
    Posts
    351

    Re: [CS4/5][JS] Script causes InDesign to crash

    Tranquil crashes InDesign. For what it's worth, the alert gets produced properly, then InDesign locks up and crashes. I imagine the tribulations are the local changeable in your nested "with" statements. By means of statements are BAD. Moreover create those changeable global (i.e. eliminate "var"), or get rid of those by means of statements altogether.

  3. #3
    Join Date
    Apr 2009
    Posts
    460

    Re: [CS4/5][JS] Script causes InDesign to crash

    In addition, is this going to maintain the dialog in memory. If so, this seems similar to an attractive annoying bug, in view of the fact that it fundamentally restricts me from creating dialog boxes via a SMA. Dialogs stay in memory if you do not obliterate them. I have never seen destroy () crash InDesign. Try to maintain the destroy () in additional than make the dialog a local changeable.

  4. #4
    Join Date
    Apr 2009
    Posts
    586

    Re: [CS4/5][JS] Script causes InDesign to crash

    Your script is running extremely well. I presently tested it on XP/InDesign CS4. I be able to test it one more time on Win7/InDesign CS5. I wonder if it's an OSX thing. I determinate to encompass to try it out on a system at additional time to work. The Win7/InDesign CS5 crashes, additional than when I modify order of destroying dialog and come back, it does not crashes to any further extent. I determine to test it on one additional configuration that is XP/InDesign CS5.

  5. #5
    Join Date
    Apr 2009
    Posts
    745

    Re: [CS4/5][JS] Script causes InDesign to crash

    I am able to run the dialog creation script unswervingly from ESTK, and it runs extremely well, additional than if I call it from a menu, InDesign crashes. I tried a small number of additional things (changing the event type, adding additional menu items, etc.) Additional than tranquil cannot get this to work without crashing. Does anybody by means of additional experience in scriptUI be familiar with if this is an issue by means of that as well. OK, I did a bit additional testing, and the script determines to not cause a crash on OSX 10.5 on a G5, or on a Vista32bit system. The merely time I am capable to get it to crash is on a 64bit OS. I in addition tried putting the dialog creation code into a separate scripting and calling it from a do Script. Still crashes.

  6. #6
    Join Date
    Apr 2009
    Posts
    515

    Re: [CS4/5][JS] Script causes InDesign to crash

    It's too delayed for that; this has essentially been this way for at the same time as. I ran the dump from side to side Microsoft analysis tool and first it said QuickTime was causing tribulations. My consideration it might have comprised to do something by means of a Bad font (which has been known to cause random crashes previous to), additional than when I checked, I originate this through Google.

  7. #7
    Join Date
    May 2009
    Posts
    760

    Re: [CS4/5][JS] Script causes InDesign to crash

    At the same time as browsing the Help on submission (my own version or description, of course) for an additional query, I noticed Application. Presentation Metrics for the first time. It seems you are able to query the internal state of ID on lots of things maybe you might throw in a number of debug lines, recording items that might be tenuously linked to scripts, files, and graphics resources. You might start by means of the Handle count (most probably file handles) and GDI object count (for the reason that you are running by means of Window objects for a dialog). Perhaps even create certain the entire Memory (xxx) alternatives as well. There are even a small number of directly related to Scripting resources usage.

Similar Threads

  1. Mozilla Firefox will crash when it encounters a script
    By AshritaS in forum Technology & Internet
    Replies: 5
    Last Post: 19-06-2011, 10:23 PM
  2. Indesign Post Script name changing to back up file name
    By Pomegranate in forum Windows Software
    Replies: 6
    Last Post: 13-07-2010, 12:14 AM
  3. Word 2008 + bibfuse: no script in script menu
    By deval4u in forum Software Development
    Replies: 5
    Last Post: 06-04-2009, 12:53 PM
  4. Replies: 2
    Last Post: 14-01-2009, 01:25 PM
  5. Replies: 6
    Last Post: 27-07-2008, 11:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,595,665.77478 seconds with 17 queries