ID 233894 - Exception when attempting to resize all Scene Graph tab columns to their contents in a fresh KATANA session

Follow

Problem summary:

When starting a new KATANA UI session, and choosing the Resize All to Contents command in the context menu of a Scene Graph tab column title, an exception is raised.

A similar exception is raised when choosing the Resize to Contents command in the context menu of the Lights column title in the Scene Graph tab.

Steps to reproduce:

  1. Start a KATANA UI session.
  2. Right-click any column title in the Scene Graph tab.
  3. From the context menu of the column title, choose the Resize All to Contents command.

Expected behaviour:

All columns in the Scene Graph tab are resized to their contents. In the case of a fresh KATANA UI session, the Scene Graph tab does not show any scene graph locations, and the columns should be resized to sensible minimal widths.

Actual behaviour:

An exception is raised with a traceback similar to the following:


[ERROR python.root]: A ValueError occurred in "TreeWidgetViewLink.py": max() arg is an empty sequence    Traceback (most recent call last):      File "python/UI4/Widgets/SceneGraphView/HorizontalHeaderView.py", line 489, in __on_resizeAllToContentsAction_triggered      File "python/UI4/Widgets/SceneGraphView/TreeWidgetViewLink.py", line 377, in resizeColumnToContents    ValueError: max() arg is an empty sequence

Workaround:

The commands work correctly as soon as at least one scene graph location is shown in the Scene Graph tab, so a workaround is to set the view flag on any node in the Node Graph tab, so that the Scene Graph tab is filled with locations of the scene that is produced by that node. The commands will then work as expected.

Reproduced versions/platforms:

  • 2.0v4/Linux
  • 2.1v4/Linux

    We're sorry to hear that

    Please tell us why