app.refresh() freezes screen surface in Photoshop 2022 for Windows
I use the phrase "freeze screen surface" here meaning when the app.refresh() function is executed by a script in Photoshop 2022, technically it looks like it hanged but if the Esc key is pressed, the script can still be cancelled and user cancelled alerts appear. It's like Photoshop waits for itself to redraw or refresh the document and discontinues executing the script without throwing an error alert.
I have this issue with my script at
Pixelsplasher Batch Smart Layer Replace
The issue is present on both supported and unsupported GPU cards that I have tested on.
