InDesign crashing when running script on large files
Hello,
I have created a javascript that will:
For each InDesign file inside of a specified directory {
Open the file
Find all textual elements with the specified character style
Convert that textual element to a hyperlink
Export the file to PDF (with a specified export preset)
Close the document
The script is working great. However, the script will cause InDesign to crash if it encounters a file with a larger file size. The script works fine with InDesign files that are less than 50 - 60 MB. When it hits a filesize that is any larger, InDesign will crash. I am running InDesign CS5.
Does anyone have any recommendations?
Thanks!
I figured out my problem: I had a block of code in my for loop (which converts all character styles of a given name to hyperlinks) which would set the hyperlink styling properties. For some reason, this code would crash InDesign when dealing with larger InDesign documents. I deleted this block of code from my script.
Here is the code block:
for(/* looping through the active document */){ . . . ++hyperlinks;
with(hyperlink) {
highlight = HyperlinkAppearanceHighlight.none;
borderStyle = HyperlinkAppearanceStyle.solid;
visible = false;
name = foundTexts[i].contents + " :" + id;
Thanks for everyone's suggestions!
Similar Messages
-
InDesign CC 2014 is crashing when I open a large file (140-300 mb)
Hello, I'm having a crashing issue when I try to open a 40 page indesign document. I've been able to open this before, and the only differences between then and now would be new Nvidia drivers.
Here is my dxdiag: http://pastebin.com/AakrLqjn
I'm not sure where to find a crash report. I'd like to try disabling GPU acceleration but I'm not sure where to do that.
I can open the file fine on a different computer with a diferent GPU, so I'm speculating that that is the issue. Any help would be greatly appreciatedTry rolling back the drivers.
Windows crash logs are completely devoid of useful information... -
Photoshop CS5 crashes when using scripts
I thought this problem was resolved when I installed a Photoshop CS5 patch but now it's back again.
Why does this F***ing program keep crashing when running scripts? There ought to be a lemon law for software that doesn't work as advertised.
I'm not alone...there are hundreds of complaints about Photoshop crashing. Adobe - are you listening?Interesting to note that when a person comes in here with an attitude, using foul language, they don't get much help. Ray, people likely understand your frustration, but the old "honey/vinegar" adage seems to apply. Most of us "flies" around here are just users like yourself. I don't think I'd have replied either but for the word "thanks" at the bottom of your last post.
Look in your Windows System Event Log for information on the failures. Post the overview information from those failures here and someone may be able to offer some further guidance. Especially interesting will be the "faulting module" names.
Some things to check:
What 3rd party plug-ins do you have installed? Do the problems continue if you remove them?
Have you updated Photoshop to 12.0.3?
Have you updated your video drivers to the latest released by nVidia?
Is Windows up to date? What version of Windows are you running, by the way?
What are your Edit - Preferences - Performance settings?
Something's very likely wrong with your particular computer / software setup, as most folks don't seem to be seeing the problems you are.
-Noel -
My iMac running 10.7.5 crashes when I store a large amount of data like copy and paste a picture. It also has started being painfully slow to open the first page in Safari. Here's is some information a program gathered on my computer. -Thanks!
Problem description:
iMac 10.7.5. Crashes when copy & paste large amounts and slow to first open first web page then back to normal speed
EtreCheck version: 2.1.8 (121)
Report generated April 13, 2015 3:05:27 PM EDT
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Click for support] links for help with non-Apple products.
Click the [Click for details] links for more information about that line.
Hardware Information: ℹ️
iMac (27-inch, Late 2009) (Technical Specifications)
iMac - model: iMac10,1
1 3.33 GHz Intel Core 2 Duo CPU: 2-core
8 GB RAM
BANK 0/DIMM0
2 GB DDR3 1067 MHz ok
BANK 1/DIMM0
2 GB DDR3 1067 MHz ok
BANK 0/DIMM1
2 GB DDR3 1067 MHz ok
BANK 1/DIMM1
2 GB DDR3 1067 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: Unknown
Video Information: ℹ️
ATI Radeon HD 4670 - VRAM: 256 MB
iMac 2560 x 1440
System Software: ℹ️
Mac OS X 10.7.5 (11G63) - Time since boot: 14 days 7:47:18
Disk Information: ℹ️
ST31000528AS disk0 : (1 TB)
disk0s1 (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 999.35 GB (777.11 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
OPTIARC DVD RW AD-5680H
USB Information: ℹ️
Sunplus Innovation Technology. USB to Serial-ATA bridge 1 TB
disk2s1 (disk2s1) <not mounted> : 210 MB
Time Machine Backups (disk2s2) /Volumes/Time Machine Backups : 999.86 GB (143.50 GB free)
Apple Inc. Built-in iSight
Apple Internal Memory Card Reader
Apple Computer, Inc. IR Receiver
HP Deskjet 9800
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Kernel Extensions: ℹ️
/Library/Extensions
[loaded] org.virtualbox.kext.VBoxDrv (4.2.18) [Click for support]
[loaded] org.virtualbox.kext.VBoxNetAdp (4.2.18) [Click for support]
[loaded] org.virtualbox.kext.VBoxNetFlt (4.2.18) [Click for support]
[loaded] org.virtualbox.kext.VBoxUSB (4.2.18) [Click for support]
/Library/Parallels/Parallels Service.app
[loaded] com.parallels.kext.prl_hid_hook (7.0 15107.796624) [Click for support]
[loaded] com.parallels.kext.prl_hypervisor (7.0 15107.796624) [Click for support]
[loaded] com.parallels.kext.prl_netbridge (7.0 15107.796624) [Click for support]
[loaded] com.parallels.kext.prl_vnic (7.0 15107.796624) [Click for support]
/System/Library/Extensions
[loaded] com.parallels.kext.prl_usb_connect (7.0 15107.796624) [Click for support]
Startup Items: ℹ️
HP IO: Path: /Library/StartupItems/HP IO
ParallelsTransporter: Path: /Library/StartupItems/ParallelsTransporter
VirtualBox: Path: /Library/StartupItems/VirtualBox
Startup items are obsolete in OS X Yosemite
Launch Agents: ℹ️
[running] com.hp.devicemonitor.plist [Click for support]
[loaded] com.hp.help.tocgenerator.plist [Click for support]
[loaded] com.parallels.desktop.launch.plist [Click for support]
[loaded] com.parallels.DesktopControlAgent.plist [Click for support]
[running] com.parallels.vm.prl_pcproxy.plist [Click for support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Click for support]
[loaded] com.hikvision.iVMS-4200.plist [Click for support]
[loaded] com.microsoft.office.licensing.helper.plist [Click for support]
[running] com.parallels.desktop.launchdaemon.plist [Click for support]
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist [Click for support]
[running] com.akamai.single-user-client.plist [Click for support]
[loaded] com.google.keystone.agent.plist [Click for support]
[not loaded] org.virtualbox.vboxwebsrv.plist [Click for support]
User Login Items: ℹ️
iTunesHelper UNKNOWN (missing value)
GrowlHelperApp Application (/Users/[redacted]/Library/PreferencePanes/Growl.prefPane/Contents/Resources/Gr owlHelperApp.app)
Microsoft AU Daemon Application (/Applications/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app)
Air Mouse Server UNKNOWN (missing value)
CrossOver CD Helper UNKNOWN (missing value)
Pages UNKNOWN (missing value)
Dropbox Application (/Applications/Dropbox.app)
Wondershare Helper Compact Application (/Users/[redacted]/Library/Application Support/Helper/Wondershare Helper Compact.app)
AdobeResourceSynchronizer Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
HP Scheduler Application (/Library/Application Support/Hewlett-Packard/Software Update/HP Scheduler.app)
Internet Plug-ins: ℹ️
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
QuickTime Plugin: Version: 7.7.1
AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
SharePointBrowserPlugin: Version: 14.4.8 - SDK 10.6 [Click for support]
Google Earth Web Plug-in: Version: 6.0 [Click for support]
Silverlight: Version: 4.0.60531.0 [Click for support]
iPhotoPhotocast: Version: 7.0
Safari Extensions: ℹ️
1-ClickWeather
Reload Button
3rd Party Preference Panes: ℹ️
Akamai NetSession Preferences [Click for support]
Flash Player [Click for support]
Growl [Click for support]
MacFUSE [Click for support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
2% WindowServer
1% prl_disp_service
0% fontd
0% AdobeReader
0% ODSAgent
Top Processes by Memory: ℹ️
120 MB mds
112 MB AdobeReader
94 MB WindowServer
94 MB Finder
69 MB loginwindow
Virtual Memory Information: ℹ️
5.44 GB Free RAM
1.78 GB Active RAM
464 MB Inactive RAM
901 MB Wired RAM
1.64 GB Page-ins
0 B Page-outsI believe that insufficient RAM may be the source of some of your problems. If you have a RAM of somewhere 4 to 8GB, you will experience smoother computing. 3GB doesn't seem right, so you might want to learn more by going to this site:
http://www.crucial.com/store/drammemory.aspx
I don't know what know what's happening with your optical drive, but it seems you use your drive quite a bit. In that case, look into a lens cleaner for your machine. It's inexpensive, works quite well.
I hope you'll post here with your results! -
When I downloaded the newest version of firefox system suite pro 12 crashes when running file cleaner after I uninstall firefox system suite pro 12 doesn't crash. I have window 7 premium home edition 64 bit.
You should know a few things before before getting started:
1. Registry "cleaners" and "system optimizers" like SystemSuite are very unreliable, cause more problems then they propose to fix, have little to no benefit, and are somewhat of a scam. Running them on a system is almost guaranteeing a crash or hiccups somewhere along the process. running them is never a good idea. all you need is a good, simple, free anti-virus (like Microsoft Security Essentials), and use the built in Windows Utilities to clean and sped up your computer if needed.
2. This is a Firefox forum, so if you are having a problem with SystemSuite, we might not be able to help you.
I'll give you a few things you can do to see if this is just a Windows problem:
Run all Windows Updates, install all needed service packs, etc.
Update your graphics driver (Firefox uses your graphics card for some rendering, and an out of date graphics card driver can cause problems. [https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers].
Update all your plugins (Flash, Java, etc.): [http://www.mozilla.org/plugincheck/ http://www.mozilla.org/plugincheck/].
Download and Install MalwareBytes Anti-Malware, run a full Scan. [http://www.malwarebytes.org/ http://www.malwarebytes.org/]. This helps check that there are no viruses on your computer causing issues. You can uninstall this program after you clean off any infections.
Plus, I'd strongly recommend removing systemsuite and any other "optimizers" you might have. -
InDesign crashes when scrolling/editing a corrupted page with a broken link.
Just sharing a problem I had and how I solved it (with help from adobe tech support-thanks!).
Indesign CC running on a Mac OSX 10.9.2
PROBLEM:
InDesign crashed when ever I reached a certain page in a large document I was working on. On that page was a link to an illustrator file. Somehow this file must have been corrupted, but there was no chance to edit or delete this link/page as the program crashed instantly when ever I tried to manipulated that specific page.
SOLUTION:
I opened a new, empty document; opened the broken file and moved all pages to the new document: LAYOUT/PAGES/MOVE PAGES; select Move Pages "ALL"; Move to: "Select the new document"; click OK. I went back to the new file with the moved pages saved it and deleted the corrupted link on that page which I could now edit again. Problem solved!
Hope this is helpful for anyone who experience the same problem.Did you share in the program forum? InDesign
This forum is about the Cloud as a delivery process, not about using individual programs
If you start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
Indesign crashes when placing a image
When I try to place a image in Indesign CS6 or CC and even in Illustrator the program freezes with spinning wheel and i have to force quit program!!! The dialouge box does not even come up to enable me to pick a file!! Have spoken to Adobe and they are useless still waiting for them to phone me back!! Please can someone help as progam is un-usable as it is!!
http://pastebin.com/R9QWYUxf
does this help? i tried to the, chose View > Send Signal: Abort (SIGABRT) but everytime i try it Indesign crashes when i then reboot Indesign i can place a object?? but if i quit Indesign and try again does not work?
what other info do you need? running on a macbook pro 10.9.1 -
Indesign crashes when placing pdf created in Xinet Fullpress.
Indesign crashes when placing a pdf from Xinet Fullpress. Xinet thinks the problem is in inDesign.
What to do?
The pdf files works fine in acrobat and apple preview.Hi Peter, here is the link to the crashreport:
http://pastebin.com/xzpp717i
If you need the a test file that crashes, please download it on the attached link below.
regard Martin
Xinet pdf crash
Hi, click on the link to download
Tue Sep 18 2012, 15:47:53 -
InDesign crashes when syncing book with Hyperlinks in master
Hi,
I seem to have an issue with InDesign crashing when trying to sync a Book (INDB file) with page links (Hyperlinks) in the Master.
Ref. Hyperlink panel > Edit Hyperlink > Link To: Page
I've narrowed the crashing issue down to InDesign only crashing when the Style Source (containing the master with page links), tries to sync with another doc in the Book that uses the master in the Pages panel. Thus I do not get a crashing error if the doc does not contain the master in the Pages panel.
For the pages that did not contain the master on the Pages panel I noticed that the Hyperlinks were labelled differently from the Style Source (ex. "hyperlink 1" from the Style Source would be "hyperlink 2" in the first document synced with it (assuming only one hyperlink present).
If I remove the Hyperlinks (page links) from the master, the error no longer occurs for any of the pages.
I put the links on the Page as opposed to the Master to test functionality and they work as expected. Although part of the reason for having the Master is these links appear exactly the same across multiple pages in the Book.
I've tried to export all my pages as IDML files then re-save them as INDD files to no avail. Did the same to all the files as well with "Save As" which didn't do anything either. I then installed the latest patch I could find: Application Version 7.0.4.553 (See all InDesign Patches), which also did not work.
Not sure if this is a bug or if what I'm trying to accomplish should be done differently.
The links in the Master need to link to the first page of select docs in the Book. Similar functionality to how a rendered table of contents would behave.
Ref. Layout > Table of Contents...I had the same problem, and it turns out that the problem is having the same file into different folders. For example I had an MP4 in iTunes, and the same file in the photos folder that was being updated to the iPad. So I just removed one file and it syncs perfectly.
-
InDesign crashes when printing
Using InDesignCS2 4.0 on a MacBookPro OS 10.6.8.
InDesign crashes when I hit "print" on all documents, so it looks like it's not corrupt data in the document. As a workaround, I can export to a pdf and print, but now need to add printer's marks, which can only be done through "print."
I've re-installed the program from the original disk.
Thoughts?
-- Jerry MonaghanIs this an installation on a computer you've just acquired? Or did it work before on this particular computer?
There is a mismatch between your InDesign version which came out in May 2005, and Mac OS X 10.6, which came out in 2009. InDesign CS2 was designed for a much earlier version of Mac OS X 10.2.8 to 10.3.8. Apple often makes OS changes which makes features in much earlier software versions not work.
You're lucky to have a workaround to be able to print via PDF files. -
Indesign crashes when I try and open my document
I created a file in Indesign which represents many days of work.
It crashed indesign when I was pdf'ing the document and now it crashes indesign every time I try to open it.
It is my only version.
I have tried many ways to open it but nothing has worked - can you help?
I've just realised that now - Indesign crashes when I try and open any document!
Thanks very much
NB Someone suggested I send it to Adobe and they may be able to fix it, but I can't find a contact email to send it to.You need to empty the InDesign Recovery folder (which is hidden in your user profile/library). You can find the path to InDesign SavedData in this link: Replace Your Preferences and the recovery folder should be in the same folder with the InDesign SavedData file.
Once the recovery folder is empty you should be able to launch ID, then try opening the file. If it wasn't damaged while writing it back to disk it will be fine, in the last previously saved state. -
Indesign crashes when making a pdf
My indesign crashes when making a pdf. I have tried disabling sync export ( a suggestion in a discussion) didn't help.
What to do?Adobe Community: File Crashing on Output - printing/PDF/other
-
InDesign crashes when placing text
Hello.
InDesign crashes when I try to place text from a .txt-file or an Open Office document. I'm using Creative Cloud trial version and Windows 8.1. Crash log states the fault to TEXT.RPLN
Thanks in advance.Does this happen on a all documents, documents already created and also on new documents? If so
Troubleshooting 101: Replace, or "trash" your InDesign preferences
If it's just on the one document
Troubleshooting 101: Export to .idml or .inx to clear file corruption -
Photoshop CS6 keeps freezing when I work with large files
I've had problems with Photoshop CS6 freezing on me and giving me RAM and Scratch Disk alerts/warnings ever since I upgraded to Windows 8. This usually only happens when I work with large files, however once I work with a large file, I can't seem to work with any file at all that day. Today however I have received my first error in which Photoshop says that it has stopped working. I thought that if I post this event info about the error, it might be of some help to someone to try to help me. The log info is as follows:
General info
Faulting application name: Photoshop.exe, version: 13.1.2.0, time stamp: 0x50e86403
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0x50988950
Exception code: 0xe06d7363
Fault offset: 0x00014b32
Faulting process id: 0x1834
Faulting application start time: 0x01ce6664ee6acc59
Faulting application path: C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Photoshop.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report Id: 2e5de768-d259-11e2-be86-742f68828cd0
Faulting package full name:
Faulting package-relative application ID:
I really hope to hear from someone soon, my job requires me to work with Photoshop every day and I run into errors and bugs almost constantly and all of the help I've received so far from people in my office doesn't seem to make much difference at all. I'll be checking in regularly, so if you need any further details or need me to elaborate on anything, I should be able to get back to you fairly quickly.
Thank you.Here you go Conroy. These are probably a mess after various attempts at getting help.
-
How to run tests in Firefox when running script using runScript.bat
I am trying to run OATS script from commandline without opening Openscript IDE(eclipse). I use the following command to execute my script:
runScript "<scriptpath>/<scriptName>.jwg"The script starts to execute and launches IE. I wanted to run my test on Firefox but it always launches IE even if Firefox is my default browser.
If I run my script from Openscript IDE it honours the Browser settings in View > OpenScript preferences... OpenScript > General > Browsers. When running thorugh cmd line, these settings are not taken into account as Eclipse preferences settings are applicable only for the workspace selected for the IDE.
Any thought on how to set these preferences when running scripts using runScript.bat file?
Thanks,
Manish KhatreHello
You need to pass the value/parameters (preferences) to the command line as documented in the OpenScriptUserGuide.pdf.
Something like
-browser.type type
Specify the browser type to use for script playback
where type is one of the following (use exact case
and no spaces):
■ InternetExplorer
■ Firefox
The default is InternetExplorer
JB
Maybe you are looking for
-
I need help. I recently had my cpu serviced by Geek Squad, They completely renamed the CPU and now all of the music I imported is gone. I dont even have my library anymore. I can usually click on itunes and play music from my library. Its all gone. I
-
Issue with the presence indicator in list/library web part.
When viewing a user field (Created By, Modified By or a custom People column) through the list web part (either through the default page /Forms/AllItems.aspx or a custom web part page using a list/library) the presence indicator always says presence
-
I have downloaded the new iTunes 10.7 on my computer with windows vista on it. Now every time I try to run a video it shuts off iTunes. Is anyone else having this problem? I have uninstalled and reinstalled the program twice. Is there a fix? Is it po
-
Has anyone had success adding a second router to act as an AP with the Actionterc Router? I am trying to expand wireless coverage in my house and would like to use a linksys router I have and set it up as a wireless Access Point on another floor of
-
Sap script payment remittance advice email doubt
i have to send mail to vendor of sap script layout . the FM which is configured in the business transaction events of accounts recievable and payable. can any one this code u can explain me regards sarath