Photoshop saveAs failing due to ProxyWrapper error

I’m running into issues in Photoshop using the tk-multi-workfile2 app. Sometimes I get the following error and the only way to resolve this is by rebooting.

2021-12-16 15:43:42,299 [20185 ERROR sgtk.env.project.tk-photoshopcc] RPC command (UID=54) failed!
2021-12-16 15:43:42,300 [20185 DEBUG sgtk.env.project.tk-photoshopcc] Failed command payload: {'params': ['{"instanceof": "Function", "description": "", "__uniqueid": 420, "help": "", "name": "saveAs", "arguments": [], "properties": [], "methods": {}}', 419, {'instanceof': 'File', 'name': 'zdevCubeOriginal_cpt_base_v0005.psd', '__uniqueid': 443, 'help': '', 'methods': {'rename': {'description': '', '__uniqueid': 422, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'name', 'description': ''}], 'name': 'rename'}, 'changePath': {'description': '', '__uniqueid': 424, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'path', 'description': ''}], 'name': 'changePath'}, 'close': {'description': '', '__uniqueid': 433, 'dataType': 'boolean', 'help': '', 'arguments': [], 'name': 'close'}, 'createAlias': {'description': '', '__uniqueid': 431, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'path', 'description': ''}], 'name': 'createAlias'}, 'open': {'description': '', '__uniqueid': 432, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'mode', 'description': ''}], 'name': 'open'}, 'writeln': {'description': '', '__uniqueid': 439, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'text', 'description': ''}], 'name': 'writeln'}, 'seek': {'description': '', '__uniqueid': 440, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'number', 'help': '', 'name': 'pos', 'description': ''}], 'name': 'seek'}, 'write': {'description': '', '__uniqueid': 437, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'text', 'description': ''}], 'name': 'write'}, 'toString': {'description': '', '__uniqueid': 429, 'dataType': 'string', 'help': '', 'arguments': [], 'name': 'toString'}, 'saveDlg': {'description': '', '__uniqueid': 428, 'dataType': 'Object', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'prompt', 'description': ''}], 'name': 'saveDlg'}, 'print': {'description': '', '__uniqueid': 438, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'text', 'description': ''}], 'name': 'print'}, 'readch': {'description': '', '__uniqueid': 435, 'dataType': 'string', 'help': '', 'arguments': [], 'name': 'readch'}, 'tell': {'description': '', '__uniqueid': 441, 'dataType': 'number', 'help': '', 'arguments': [], 'name': 'tell'}, 'toSource': {'description': '', '__uniqueid': 430, 'dataType': 'string', 'help': '', 'arguments': [], 'name': 'toSource'}, 'read': {'description': '', '__uniqueid': 434, 'dataType': 'string', 'help': '', 'arguments': [{'dataType': 'number', 'help': '', 'name': 'count', 'description': ''}], 'name': 'read'}, 'openDlg': {'description': '', '__uniqueid': 427, 'dataType': 'Object', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'prompt', 'description': ''}], 'name': 'openDlg'}, 'copy': {'description': '', '__uniqueid': 442, 'dataType': 'boolean', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'where', 'description': ''}], 'name': 'copy'}, 'execute': {'description': '', '__uniqueid': 426, 'dataType': 'boolean', 'help': '', 'arguments': [], 'name': 'execute'}, 'resolve': {'description': '', '__uniqueid': 421, 'dataType': 'Object', 'help': '', 'arguments': [], 'name': 'resolve'}, 'remove': {'description': '', '__uniqueid': 423, 'dataType': 'boolean', 'help': '', 'arguments': [], 'name': 'remove'}, 'readln': {'description': '', '__uniqueid': 436, 'dataType': 'string', 'help': '', 'arguments': [], 'name': 'readln'}, 'getRelativeURI': {'description': '', '__uniqueid': 425, 'dataType': 'string', 'help': '', 'arguments': [{'dataType': 'string', 'help': '', 'name': 'baseURI', 'description': ''}], 'name': 'getRelativeURI'}}, 'properties': ['alias', 'created', 'error', 'exists', 'fsName', 'fullName', 'absoluteURI', 'relativeURI', 'modified', 'name', 'displayName', 'path', 'parent', 'cloudDocument', 'type', 'creator', 'hidden', 'readonly', 'lineFeed', 'length', 'encoding', 'eof', '__proto__'], 'description': ''}], 'jsonrpc': '2.0', 'method': 'call', 'id': 54}
2021-12-16 15:43:42,302 [20185 DEBUG sgtk.env.project.tk-photoshopcc] Failure raw response: {"jsonrpc":"2.0","id":54,"error":{"code":-1,"message":"error"}}
2021-12-16 15:43:42,302 [20185 DEBUG sgtk.env.project.tk-photoshopcc] Failure results: {'jsonrpc': '2.0', 'id': 54, 'error': {'message': 'error', 'code': -1}}
2021-12-16 15:44:15,931 [20185 ERROR sgtk.env.project.tk-photoshopcc.tk-multi-workfiles2] Failed to save file!
Traceback (most recent call last): (truncated to only the last call)

  File "~/Library/Caches/Shotgun/bundle_cache/app_store/tk-framework-adobe/v1.1.4/python/tk_framework_adobe/rpc/communicator.py", line 308, in rpc_call
    raise RuntimeError(msg)
RuntimeError: Failed to call method <ProxyWrapper for remote object: type=Function, name=saveAs> bound to <ProxyWrapper for remote object: type=Document, name=zdevCubeOriginal_cpt_base_v0004.psd> with arguments [<ProxyWrapper for remote object: type=File, name=zdevCubeOriginal_cpt_base_v0005.psd>]

I don’t know if this is due to a conflict with using Foundry Flix and SG Desktop within Photoshop at the same time. This error isn’t providing enough information to figure this out. It’s strange that it works sometimes and then the error shows up. I’ve tried closing SG Desktop, Photoshop, and any python instances from SG to try to remove the error. Then reboot.

Any ideas on how to solve this?

Thanks,

Mark

Could someone from the SG dev team look at this for me?

Thanks,

Mark