Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Bug: Errors when using Create from the Photoshop publisher #6006

Open
2 tasks done
alainxi opened this issue Dec 5, 2023 · 0 comments
Open
2 tasks done

Bug: Errors when using Create from the Photoshop publisher #6006

alainxi opened this issue Dec 5, 2023 · 0 comments

Comments

@alainxi
Copy link

alainxi commented Dec 5, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

I get python exceptions while using the Create feature of the Photoshop Publisher.

Expected Behavior:

Instead of throwing lines of code, it should explain to the artist what he did wrong (if he did).

Version

3.17.7-nightly.5

What platform you are running OpenPype on?

Windows

Steps To Reproduce:

Start Photoshop 2024 using Ayon's Launcher.
Draw anything with a simple pen, save the scene.
Start the Publish gui, Create (using the default settings), and Publish, it works without any errors.
Then click on the Reset & discard changes button, and remove the instance (trash icon).
Try to Create again.
I get an error, in a popup (see the output below).

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

Traceback (most recent call last):
  File "C:\Users\Alain\AppData\Local\Ynput\AYON\addons\openpype_3.17.7\openpype\hosts\photoshop\api\ws_stub.py", line 549, in _to_records
    layers_data = json.loads(res)
  File "json\__init__.py", line 346, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Alain\AppData\Local\Ynput\AYON\addons\openpype_3.17.7\openpype\pipeline\create\context.py", line 2059, in _create_with_unified_error
    result = creator.create(*args, **kwargs)
  File "C:\Users\Alain\AppData\Local\Ynput\AYON\addons\openpype_3.17.7\openpype\hosts\photoshop\plugins\create\create_image.py", line 38, in create
    top_level_selected_items = stub.get_selected_layers()
  File "C:\Users\Alain\AppData\Local\Ynput\AYON\addons\openpype_3.17.7\openpype\hosts\photoshop\api\ws_stub.py", line 302, in get_selected_layers
    return self._to_records(res)
  File "C:\Users\Alain\AppData\Local\Ynput\AYON\addons\openpype_3.17.7\openpype\hosts\photoshop\api\ws_stub.py", line 551, in _to_records
    raise ValueError("Received broken JSON {}".format(res))
ValueError: Received broken JSON EvalScript error.


### Additional context:

I replicated this bug several times, and now I can't replicate it anymore, which is funny because I didn't change anything.

[cuID:[OP-7549](https://app.clickup.com/t/86bwq53nw)]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants