Skip to main content
Inspiring
October 26, 2023
Answered

Special Gradient Map breaks Photoshop 25.1 and makes files unreadable

  • October 26, 2023
  • 13 replies
  • 1042 views

Warning! This is a serious bug. If you trigger this error in PS 25.1 it stops responding.

If you save the file with Gradient Map settings described below in a previous version of Photoshop, and try to open in 25.1 it shows "Could not open "file.psd" because of a program error." or the canvas stops refreshing.

 

Steps to reproduce (in Photoshop 25.1, 4K screen):

  1. Create an empty document, any size (let's say 50x50 px), 8-bit, RGB.
  2. Create new adjustment layer, Gradient Map
  3. Make sure you have "Navigator" panel opened - it makes reproducing this bug easier.
  4. Open Gradient Editor, choose "Foreground to Background" preset and click on the leftmost gradient point
  5.  Click on the midpoint slider and type in 95 in the Location field
  6. Again, click on the leftmost color slider (black) and type in Location 80. Important - type in, don't use the mouse to drag the slider!
  7. Now comes the funny part. Using a mouse click on the rightmost color slider (white) and drag it over the black color slider, so that the location says 80. The funny part is that the location says 80 in three slightly different places.

    Just to the right of the "real" 80 - the Navigator window shows white color:

    Just on top of the "real" 80, the Navigator window shows gray color:

    Just to the left of the "real" 80, the Navigator window shows black color:

  8. Make sure, you are in the state where the Navigator shows gray color.
  9. Click OK. CAUTION! Photoshop 25.1 will stop responding.
  10. Photoshop 25.0, and previous versions, work fine. But if you save such a file and open it in 25.1 you will get a program error and the file does not open at all.

    Fun fact: internally, Photoshop stores locations as 16-bit integer from range 0...4096, but displays the value as 8-bit from range 0..100. That's why there can be many locations that maps back to the same displayed value. For the example above, the gradient map config was represented as:

 

 

[{
 "csLocation": 3277,
 "csMidpoint": 50,
 "csModeOfColorToFollow": 0,
 "csColors": [0, 0, 0, 0],
 "nTransparenctStops": 0
},
{
 "csLocation": 3282,
 "csMidpoint": 95,
 "csModeOfColorToFollow": 0,
 "csColors": [65535, 65535, 65535, 0],
 "nTransparenctStops": 0
}]

 

 

Note that 3277/4096*100=80.00488 and 3282/4096*100=80.12695, which are very close. (yep, I wrote a parser xD)

 

Expected result: it works xD
Version: Photoshop 25.1, Photoshop Beta 25.2 (works fine in <=25.0)

Platform and OS version: Windows 10, x64

This topic has been closed for replies.
Correct answer DiodorS

Fixed in Beta Adobe Photoshop Version: 25.3.0 20231116.m.2403 015fdfa x64

13 replies

Participant
December 13, 2023

I am having the same issue. Specific gradient maps are not showing. 

DSeim
Inspiring
November 20, 2023

Hopefully we see this soon in the public build.

DiodorSAuthorCorrect answer
Inspiring
November 18, 2023

Fixed in Beta Adobe Photoshop Version: 25.3.0 20231116.m.2403 015fdfa x64

DiodorSAuthor
Inspiring
November 16, 2023

Still not fixed in Beta: Adobe Photoshop Version: 25.3.0 20231108.m.2393 1585851 x64

No acknowledment either. CC: @Pete.Green @Rikk Flohr: Photography kindly asking to take a look.

DSeim
Inspiring
November 10, 2023

I use pretty specific gradients. Might be able to tweak a little. But the biggest problem is any files that have these gradient maps won't even open. This is a pretty major bug to add into a release.

DiodorSAuthor
Inspiring
November 10, 2023

I "solved" the problem by modifying the gradient map parameters in a hex editor, directly in the PSD file. I just couldn't get the UI to work 😕😕

 

As long the midpoint is not 95 it works. Try changing it to 90 in PS 2023 if you can accept a slight visual difference.

DiodorSAuthor
Inspiring
November 10, 2023

Adobe, do you acknowledge the issue? Are you working on a solution?

Participant
November 10, 2023

I'm having the same issue using some actions that rely on gradient maps to visualize luminocity. They will not show up at all although the action itself runs without stopping or displaying an error. When I attempt to open the properties of the layer I get a generic error. In addition I cannot zoom in or out at all once the error occurs. This is completely stopping me from using several different methods of editing and is a major problem with the current update. I certainly hope they will have this resolved soon. 

DSeim
Inspiring
November 10, 2023

Same here on 25.1. This is a major issue. I have some actions that use a gradient map and not only does it not work, but ANY file I try and open that has a gradient map like this on on it will throw an error and Photoshop will not even open the file.

DiodorSAuthor
Inspiring
November 4, 2023

Still present in the newest beta: 25.2.0 20231101.m.2385 38bb2d3 x64