Skip to main content
Participant
Jun 9, 2025 9:04 PM UTC
Question

Generative Expand Not Working — Getting JavaScript Error 54

In the latest version of Photoshop, I can't use the canvas generative expand feature. When I try, I get a dialogue box with a message: Error 54: Uncaught JavaScript exception.... See attached image for full message.

 

Anyone else experiencing this? 

7 replies

emily_1459
Participant
Mar 2, 2026 6:50 PM UTC

Was getting this error all morning, tried reinstalling older versions and had the same issue.

FIX: resetting preferences worked for me (for now🙄...)

Translate
Participating Frequently
Jul 30, 2025 2:09 PM UTC

Yes - getting the same error.

Translate
Srishti_Bali
Legend
Aug 1, 2025 2:29 PM UTC

Hi @numinumi

 

Sorry to hear you’re running into this issue with Generative Expand. To help us understand the problem better, could you please share a few more details?

  • Your system info (go to Help > System Info in Photoshop and copy-paste it here)

  • Does the error occur with all files, or only with specific ones?

  • If possible, could you share a few sample images and prompts you are using where the issue occurs?

 

This will help us investigate the issue more accurately. 

 

Regards,

Srishti

Translate
Stephen Marsh
Community Expert
Community Expert
Jun 10, 2025 12:40 AM UTC

@Greg38702627hj01 – Not a fix, however, as a temporary workaround, you could try my add bleed script, which is designed for simple rectangular canvas expansion:

https://community.adobe.com/t5/photoshop-ecosystem-ideas/ai-generating-bleed-area-beyond-trim-line/idc-p/15312767#M25374

 

 

 

 

Translate
MassC
Legend
Jun 9, 2025 11:34 PM UTC

Hey @Greg38702627hj01, 

Thank you for bringing this to our attention and sharing a screenshot of the error you received. We need a bit more information before we can further troubleshoot. Can you share your system info? You can find this by going to Help > System Info. Copy and paste that into a text file and attach it to your response. Please also share the steps to reproduce this error. 

In the meantime, I'm going to move your post to discussions where we can get more help troubleshooting.


^CM

Translate
Participant
Jun 10, 2025 1:26 PM UTC

Steps:

  1. Open file (jpeg/psd/...)
  2. Select Crop tool
  3. Drag edges of art board or layer
  4. Control click to reveal menu
  5. Select Generative Expand
  6. In the prompt box, normally I do not enter any info if I simply want to extend the background (I've tried prompts in the past with the same results as no prompts)
  7. Click Generate

 

When I do this, my layer or artboard disappear. Before I had updated to the latest OS, I got the error message. Since updating, I don't get the error message, but my artboard still disappears and instead of seeing normal variations in the Properties box for Generative Layers, I see random patterns and other odd things (see attached). 

Translate
Srishti_Bali
Legend
Jun 23, 2025 2:38 PM UTC

Hi @Greg38702627hj01

 

Thanks for sharing all these details, and sorry for the delayed response. I’m hopeful the issue may already be resolved by now. If not, the error message you shared suggests that the functionality you're trying to use might not be available in the version of Photoshop you're currently using.

The system report you provided shows your macOS version, but it doesn’t include the Photoshop version. To assist you better, we’ll need to know which version of Photoshop you have installed.

Also, please note that we've released a new version (26.8) of Photoshop since you first reported this issue. If you haven’t updated yet, I recommend installing the latest version and checking if the problem still persists.

 

 

Let us know how it goes after the update—we’re here to help if the issue continues!

 

Regards,

Srishti

Translate