Skip to main content
Known Participant
September 30, 2022
Question

PS error after batch process thousands of files

  • September 30, 2022
  • 4 replies
  • 1004 views

Hi guys,

 

I want to process 1000 png files using a script and I do it with a folder of 80+ psd files using Automate/Batch. Unfortunately I can't generate the final result which is 80K+ jpg files in a single run. PS usualy gives an error and stops the whole prosses after 12-15 psd files (about 12K-15K jpg files generated). I don't know what error shows as the window is shown as a sold block and no text or buttons on it.
I set History States to 1, Cash Level 8, Cache Tile Size 1228K, Use Graphic Processor is ticked, uses 90% memory and I run a Task Scheduler script to delete any psd files from C:\Users\[name]\AppData\Local\Temp

Still no luck and I have to check from time to time if I have to reboot PS and start again with the rest of the psd files as I run it on a second user account on Win10 to have PS on admin acc free to do other things.

System:


Processor AMD Ryzen 7 1700 Eight-Core Processor 3.00 GHz
Installed RAM 64.0 GB
System type 64-bit operating system, x64-based processor
Edition Windows 10 Home
Version 21H2
OS build 19044.2006
Experience Windows Feature Experience Pack 120.2212.4180.0
Adobe Photoshop Version: 20.0.4 20190227.r.76 2019/02/27: 1205725 x64

Any idea why PS can't handle this job smoothly?


Many thanks,

Alex

This topic has been closed for replies.

4 replies

D Fosse
Community Expert
Community Expert
October 1, 2022

It sounds like what wuld happen when you run out of scratch disk space. This will require a lot of disk space - remember, Photoshop by design doesn't "release" memory (physical or virtual) as long as it's running.

 

I haven't tried batches of several thousands, but I have never had problems with batches of hundreds. I do that quite often.

PECourtejoie
Community Expert
Community Expert
October 1, 2022

Would it be possible to use a Edit>Purge>All command every XYZ times in a script, could that help?

rayek.elfin
Legend
October 1, 2022

This has been my experience with Photoshop's batch processing for as long as I remember. Processing is (1) slow as a turtle dragging itself through mud, and (2) it fails to complete batches for inexplicable reasons. It's always been like that (for me at least). Very, very frustrating.

 

Which is why I stopped using PS for batch processing many years ago. I have had no such issues in either IrfanView or PhotoLine. Even a batch of a couple of hundred of simply resizing and resaving to new versions takes forever to complete in Photoshop, and a fraction of that time in IrfanView, for example (and Photoshop fails to complete batches in most cases anyway...).

 

That said, if you depend on specific Photoshop functionality, you may have to just do it in smaller batches.

 

Best of luck to you!

Known Participant
October 1, 2022

I've seen these, however the psd files are mockups with a Smart Object so it's not just resizing or converting to another file type. Usually I run out of disk space on drive C:, but it seems to be one of the problems. I wonder if there is a way to release the memory used by PS as I don't see any option to do that.

Legend
September 30, 2022

Have you tried doing the same on the actual version of Photoshop?

 

What exactly are you doing during processing? What script are you talking about? (some scripts may have recursive loops and cause a stack overflow or memory overflow error)

 

Try setting Cache Level and Cache Tile Size to the minimum values.