Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workfile: error during saving if context not fully initialized #1076

Closed
2 tasks done
antirotor opened this issue Jan 10, 2025 · 1 comment
Closed
2 tasks done

Workfile: error during saving if context not fully initialized #1076

antirotor opened this issue Jan 10, 2025 · 1 comment
Assignees
Labels
type: bug Something isn't working

Comments

@antirotor
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

When using Workfile tool:

if you click on Save button before the content of the folder and task menus is loaded, workfile tool crashes with the traceback below

Expected Behavior:

Save button shouldn't be available until everything for it is ready.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

You need to somehow simulate slow server response. In my case it happens in Mocha Pro where there is something really slow. Anyway:

  • Open workfile tool and click on Save As before folders and tasks load (show in menus)

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\annat\Documents\Projects\Ayon\ayon-core\client\ayon_core\tools\workfiles\widgets\files_widget.py", line 253, in _on_workarea_save_clicked
    result = self._exec_save_as_dialog()
  File "C:\Users\annat\Documents\Projects\Ayon\ayon-core\client\ayon_core\tools\workfiles\widgets\files_widget.py", line 175, in _exec_save_as_dialog
    dialog.update_context()
  File "C:\Users\annat\Documents\Projects\Ayon\ayon-core\client\ayon_core\tools\workfiles\widgets\save_as_dialog.py", line 254, in update_context
    self._extension_combobox.addItems(data["extensions"])
TypeError: 'PySide2.QtWidgets.QComboBox.addItems' called with wrong argument types:
  PySide2.QtWidgets.QComboBox.addItems(NoneType)
Supported signatures:
  PySide2.QtWidgets.QComboBox.addItems(typing.Sequence[str])

Additional context:

No response

@antirotor antirotor added the type: bug Something isn't working label Jan 10, 2025
@BigRoy
Copy link
Collaborator

BigRoy commented Jan 23, 2025

This should be fixed by #1085

Please re-open if still a problem.

@BigRoy BigRoy closed this as completed Jan 23, 2025
@BigRoy BigRoy self-assigned this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants