Saving layouts

I noticed this feature seemed pretty flaky in 2021.1.0 and was hoping maybe it had become more stable in the latest 2021.1.1

so not sure if this is known issue or not, but the load/save layout features seem extremely prone to failure

my GUESS at this point is that if you have a saved loadout and try to load it up and there is currently no instance of one of the window positions its trying to restore currently onscreen, it will simply fail

This happens a lot with some of the extension editors (eg iray settings, omnigraph, etc) - which won’t spawn windows until you tell Create to open them - so unless you’ve remembered to open these windows first then load/save with them included is just really likely to lose ALL your window layout

Other windows like the anim keys editor seem to automatically spawn their own windows on application load so they seem safer (ie you’re pretty much guaranteed those windows are instanced and therefore the load/save works)

anyway - just a guess :)

Console dump below in case its useful

2021-04-17 02:37:35  [Error] [carb.python] Exception when async '<function _restore_workspace_async at 0x000001DE985E9F28>'
2021-04-17 02:37:35  [Error] [carb.python] 'NoneType' object has no attribute 'dock_in'
2021-04-17 02:37:35  [Error] [carb.python] [py stderr]: Task exception was never retrieved
future: <Task finished coro=<_restore_workspace_async() done, defined at c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py:39> exception=NameError("name 'traceback' is not defined",)>
Traceback (most recent call last):
  File "c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py", line 42, in wrapper
    return await func(*args, **kwargs)
  File "c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py", line 341, in _restore_workspace_async
    _restore_workspace(root_window_dump, first_root, dock_order)
  File "c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py", line 234, in _restore_workspace
    _restore_workspace(children[1], second, dock_order)
  File "c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py", line 233, in _restore_workspace
    _restore_workspace(children[0], first, dock_order)
  File "c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py", line 248, in _restore_workspace
    _dock_in(w, first, "SAME", 0.5)
  File "c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py", line 138, in _dock_in
    target_window.dock_in(source_window, dock_position, ratio)
AttributeError: 'NoneType' object has no attribute 'dock_in'

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "c:\users\bolds\appdata\local\ov\pkg\create-2021.1.1\_build\kit_release\_exts\omni.ui\omni\ui\workspace_utils.py", line 46, in wrapper
        carb.log_error(f"{traceback.format_exc()}")
    NameError: name 'traceback' is not defined

Reviewing with the team now, We will get it fixed up. Thank you for reporting.

Hello bold.stelvis
Thank you for bringing this issue to our attention. We were able to reproduce what you encountered and a bug has been filed to our database.
OM- 30540
Thank you for your patience.