ID 506429 - Unable to launch if OCIO_ACTIVE_DISPLAYS environment variable is set

Follow

Problem summary
Unable to launch if OCIO_ACTIVE_DISPLAYS environment variable is set


This environment variable would normally override the 'active_displays' values in the config.ocio file. Currently, setting it as any display (active or inactive) will cause a crash during launch.
 
Customer reported version
Mari 4.8v2
 
Customer reported platform
Linux
 
Steps to reproduce
 
On Linux:
1) Open a terminal window and run the following command (assuming your shell is a bash or ksh shell):
export OCIO_ACTIVE_DISPLAYS="default"

2) Launch Mari from the same terminal window, e.g. run
/path/to/installation/mari
 
On Windows:
1) Open a terminal window and run the following command:
set OCIO_ACTIVE_DISPLAYS="default"

2) Launch Mari from the same terminal window, e.g. run
/path/to/installation/Mari<version>.exe
 
Expected behaviour
Mari should launch.
 
Actual behaviour
Mari crashes, with this error in the log directly before the crash:
Debug : [            MriOpenColorIO.cpp:865 ] : [ !! ] The content of the env. variable for the list of active displays [default] is invalid.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Mari 5.0v2 - Windows 10 - CentOS 7.9
Mari 4.8v2 - Windows 10 - CentOS 7.9
Mari 4.8v1 - Windows 10 - CentOS 7.9 - regression
 
Unable to reproduce bug in:
Mari 4.7v6 - Windows 10 - CentOS 7.9
 
Earliest version tested
Mari 4.7v6 - This issue doesn't appear in this version and has regressed
 
 

    We're sorry to hear that

    Please tell us why