Problem summary
Katana 2.5 crashes on startup when the OCIO environment variable is set to a config that doesn’t exist or that the user doesn’t have permission to and prints errors to the terminal:
[INFO plugins.PRManRendererInfo]: Loading config files...
[ERROR python.Utils.EventModule]: Error in event handler __nodeDeleteHandler() for event type "node_delete": AttributeError: 'NoneType' object has no attribute 'getName'
[ERROR python.Utils.EventModule]: Error in event handler __setRootNodeHandler() for event type "nodegraph_setRootNode": AttributeError: 'NoneType' object has no attribute 'getName'
[ERROR python.Utils.EventModule]: Error in collapsed event handler __updateText(): AttributeError: 'NoneType' object has no attribute 'getParameter'
[ERROR python.Utils.EventModule]: Error in collapsed event handler __catalog_rebuild_CB(): AttributeError: 'NoneType' object has no attribute 'getParameter'
[ERROR python.root]: An Exception occurred in "DrawState.py": Error could not read '/tmp/foo' OCIO profile.
Traceback (most recent call last):
File "python/Main/Main.py", line 367, in <module>
File "python/Main/Main.py", line 351, in __main
File "bin/python/Main/MainUI.py", line 15, in Main
File "bin/python/UI4/MainUI.py", line 33, in Main
File "bin/python/UI4/MainUI.py", line 74, in InitializeInterface
File "bin/python/UI4/MainUI.py", line 279, in IterativeInitializeInterface
File "bin/python/UI4/App/Layouts.py", line 122, in ActivateDefault
File "bin/python/UI4/App/Layouts.py", line 541, in SetXmlLayout
File "bin/python/UI4/App/Layouts.py", line 712, in loadLayoutXml
File "bin/python/UI4/App/Tabs.py", line 363, in CreateTab
File "bin/python/UI4/App/KeyboardShortcutManager/KeyboardShortcutManagerMixin.py", line 75, in __call__
File "bin/python/UI4/Tabs/Monitor/MonitorPanel.py", line 57, in __init__
File "bin/python/UI4/Tabs/Monitor/MonitorWidget.py", line 102, in __init__
File "bin/python/UI4/Util/DrawState.py", line 74, in __init__
Exception: Error could not read '/tmp/foo' OCIO profile.
In Katana 2.1 and below it doesn’t crash, but prints errors, produces UI glitches and fails to create the Monitor tab:
Steps to reproduce
-
Open a terminal and set the OCIO environment variable to a random location that is not an OCIO profile, e.g. export OCIO=/tmp/foo
-
Launch Katana
-
Result: All versions of 2.5 will crash on launch
Reproduced by support
Katana 2.5v1-5 RHEL 6.4
Katana 2.5v1, 2.5v5 Windows 7
Crash not reproducible in Katana 1.6v3, 2.0v1, 2.0v5, 2.1v1, 2.1v5
Expected behaviour
Katana should exit gracefully or fall back to a default config.
Actual behaviour
Crash on launch