Skip to main content
Inspiring
October 23, 2022
Question

crash indesign during export pdf processor

  • October 23, 2022
  • 2 replies
  • 235 views

hi every body, i have a question, during a script who open document list, and update each link by recursion, for finish to export to pdf , i have a strange problem, and i try to isolate where is it

 

if i select a big folder with lot of sub folder and arround 70 file need to be updated

 my script turn with visual code, without any arror and never stop

indesgin crash 9/10, and every time on the same file. and i feel it crash during exportto pdf function

this crashed file is arorund 60/70 position file, mean befor it , 59 file war exported with success.

 

 

and other test, if i choose only the folder contain 10 file need to be updated

this file will not crash indesign

 

 my loop is include into

 try{}

catch(err){
   alert(err.line+" => "+err.message);
}
 
and no error is showed (because indesign is down)
 
how to open a error windows with visual code and not indesign?
This topic has been closed for replies.

2 replies

m1b
Community Expert
Community Expert
October 23, 2022

Hi @laurence roussel12011930, to troubleshoot this, add a line into your loop that logs the counter and the document name.

$.writeln('i = ' + i + '  document.name = ' + document.name);

 This will hopefully tell you if (a) it is crashing Indesign on a particular document, or (b) if it is crashing Indesign after a number of iterations. As soon as you find out that the crash happens always at a particular document you can investigate that document further by isolating it in a folder by itself.

- Mark

Inspiring
October 23, 2022

thanks, will test soon, but very strange because if isolate = no problem, if in small group= no problem, if in big group = crash

brian_p_dts
Community Expert
Community Expert
October 23, 2022

$.writeln(err.line + " =>" + err.message);

Inspiring
October 23, 2022

thanks i will test