Photoshop CS6: "Out of RAM" error when rasterizing some PDF files

  • 1
  • Problem
  • Updated 2 years ago
  • (Edited)
In the final stages of a recent project I encountered a very disappointing limitation.

I bought the upgrade to CS6 last year mainly because of 64bit support. Without substantial RAM allocation, the project would not have been possible (up to 12 GB, see preferences here http://imageshack.us/a/img545/2392/1p... ). So I was glad that, just at the right time, Photoshop, and Illustrator finally went 64bit. (I was disappointed to find Indesign and Acrobat still 32bit though.)

When it came to rasterizing large hybrid PDFs (via the Open command, see http://imageshack.us/a/img708/4310/3i... ), Photoshop failed badly, showing a sadly familiar alert: “Could not complete the Open command because there is not enough memory (RAM).” (see http://imageshack.us/a/img826/5856/2r... )

But that was not the case: there was free RAM aplenty. Apparently Photoshop just did not use it. According to Activity Monitor, Photoshop used only 2,25 GB, with over 10 GB free. (see http://imageshack.us/a/img90/764/4act... )

Why is that? I have a hunch: The rasterizing part is not 64bit.
Correct?

So, in the final stages of this rather large project, I had to dig deep and split all files in multitudes of tiles. Like in the olden days. This cost me several nights sleep. And quite some money. Not good.

Please tell me: How can you sell a 64bit application that is not thoroughly 64bit? This is beyond me. I would appreciate it very much if you fix this with a free update rather soon.

Let me add that, apart from this severe fault, I like the new Photoshop very much.

Thank you
and kind regards from Cologne
Sebastian Hauser

System Specs
Mac Pro 2 x 2.4 GHz
16 GB RAM
Mac OS X 10.6.8
CS 6 Design Premium
Photoshop 13.0.4 x64
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 812 Reply Likes
The app is all 64 bit, otherwise it wouldn't run.

Without the PDF document to try rasterizing ourselves, we don't know exactly why it failed. It might really be out of RAM if some part of the PDF needs a buffer bigger than available RAM. Or there might be a bug in the rasterization code relating to your specific document.
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
Dear Chris Cox

thank you for your reply.

These probably are complex files with some large raster images imported and transformed. However, Apple Preview, of all software, does open and save them as large raster files (12599x12599px, using up to 8 GB RAM in the process).

And, believe me, Photoshop does check out at about 2,25 GB RAM usage...

However, I will try to upload a file tomorrow.

Kind regards
Sebastian
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
Dear Chris Cox

I loaded a file up to Google Drive
slow up speed here, so it took a while
It contains confidential data. May I ask you to provide me with a email adress so I can send you the download link privately. Thank you.

I have to correct my previous message: these are actually not .pdf files but .ai files, saved with the “Create PDF Compatible File” Option selected. Does this matter? It always seemed like they were being treated as pdfs by Photoshop (or Indesign, or Apple Preview) anyway. I tried the process with one example explicitly saved as a PDF — and got the same result.

Here are some Console messages that appear when executing the Open file command (right on the command, while the Import PDF dialogue window is being displayed. No further messages during the actual process and Out of RAM alert):
01.02.13 10:38:17 Adobe Photoshop CS6[6898] *** __NSAutoreleaseNoPool(): Object 0x138b7e2d0 of class NSCFString autoreleased with no pool in place - just leaking
01.02.13 10:38:17 Adobe Photoshop CS6[6898] *** __NSAutoreleaseNoPool(): Object 0x106f34d20 of class NSBundle autoreleased with no pool in place - just leaking
01.02.13 10:38:17 Adobe Photoshop CS6[6898] *** __NSAutoreleaseNoPool(): Object 0x14a2d5300 of class NSCFString autoreleased with no pool in place - just leaking
01.02.13 10:38:17 Adobe Photoshop CS6[6898] *** __NSAutoreleaseNoPool(): Object 0x14aa06a70 of class NSCFString autoreleased with no pool in place - just leaking
01.02.13 10:38:17 Adobe Photoshop CS6[6898] *** __NSAutoreleaseNoPool(): Object 0x14a2d41a0 of class NSCFData autoreleased with no pool in place - just leaking
01.02.13 10:38:17 Adobe Photoshop CS6[6898] *** __NSAutoreleaseNoPool(): Object 0x14aa12a10 of class NSCFData autoreleased with no pool in place - just leaking
However, these messages do appear during other file opening procedures as well (with differing Object IDs).

Please accept my apologies for the rant yesterday. That was not the right tone for a support conversation. Even if there is an annoying bug, or limitation, you are probably not the cause but rather try to help.

Thank you and kind regards
Sebastian Hauser
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 764 Reply Likes
You can email me at ccox (at) adobe (dot) com.

The origin of the data does matter inside the PDF parser (which can read AI data).

Hmm, we normally don't have that many autorelease leaks. I'll have to see if the PDF parser has some leaks. (we test the app pretty well for leaks, but don't always re-test components that come from other groups)

On a 64 bit OS, Photoshop 64 bit can easily consume all the RAM you can install. I've got a 32 gig system in front of me, and Photoshop is currently using 20 Gig (I was having fun with halftone patterns and created something huge).
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
Gesendet: Freitag, 01. Februar 2013 um 19:53 Uhr
Von: [...]
An: [...]
Betreff: RE: Photoshop: CS6 "out of RAM" error when rasterizing some PDF files

Dear Chris Cox
here is the link to my file
[...]

And here a screenshot of the Illustrator "mother" file. The uploaded file is the selected artboard. It is the single “tile” out of this "mother" file which still could not be rasterized.
[...]

On my system too, Photoshop usually has no inhibitions regarding RAM. Only now with this rasterizing issue.
While rasterizing the other files, Ps never went above 3 GB RAM use. I am a code dyslexic. It just looked rather suspicious. Like "under the hood" Photoshop would outsource some rasterizing to processes which still are 32bit? Or Ps is calculating RAM need according to all artboard-exceeding graphics and finds that sum to be exceeding installed RAM? I just don’t know. Surprising even that Apple Preview did not hesitate to raster them, consuming up to 11 GB RAM. Yet no color control, and sloppy size precision. I'd really favour Photoshop do it.

kind regards
Sebastian Hauser
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
Yes, this 32bit thing was just an uneducated guess. Do you have any idea what "else" is going wrong?
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 764 Reply Likes
Not yet. I haven't had a chance to try your file yet.
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
You got the file though? Can I clear it from the upload space?
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 764 Reply Likes
No, I haven't downloaded it yet. I'll send you email once I have it (hopefully tomorrow).
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
following up on this,
any news from your colleagues working on the library that you tracked as cause?
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
Dear Chris Cox, and colleagues on the PDF parser/rasterizer team,

I would highly appreciate any news on this issue.

Thank you and kind regards
Sebastian
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 764 Reply Likes
I haven't heard anything from the PDF folks yet.
Photo of Sebastian Hauser

Sebastian Hauser

  • 9 Posts
  • 0 Reply Likes
Hi Chris

any news from the PDF Kombinat? It's been a while..

kind regards
Sebastian
Photo of Pedro Penagos

Pedro Penagos

  • 2 Posts
  • 0 Reply Likes
Hello, i am having the same issues on Photoshop CC
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 13932 Posts
  • 1653 Reply Likes
It may help if we had a copy of the file you're having trouble with and could see your Photoshop System Info. Directions for sharing your system info from Photoshop: 

http://feedback.photoshop.com/photoshop_family/topics/photoshop_how_do_i_share_my_system_information