After running photoshop from SGTK for a while (can be hours, can be shorter, seems random) the SGTK actions stop working.
Typically, photoshop.app.activeDocument starts returning None no matter if there is actually an active document.
Also, something like:
pixels = photoshop.StaticObject('com.adobe.photoshop.Units', 'PIXELS')
photoshop.app.preferences.rulerUnits = pixels
fails with an "Error #1034" from photoshop.
From there any operation the python script tries to do on the photoshop library fails the same way.
Is this a known issue? The only workaround is to reopen PS, but that means also changing to the right work area, it's a bit of a hassle for everyone.