OCIO environment variable not working on Linux #59016

Closed
opened 2018-12-08 13:14:07 +01:00 by Rainer Trummer · 10 comments

System Information
Operating system: Ubuntu Linux, 17.04 - 18.10
Graphics card: nVidia Geforce 650m

Blender Version
Broken: any 2.80 version for now
Worked: 2.79b and before

Short description of error
I am using the following variable in /etc/environment to set a custom OCIO location:

OCIO=/CustomSoftware/OCIO/filmic-blender/config.ocio

When starting Blender 2.80 from the command line, an error is printed into the console window:

Color management: using fallback mode for management
Color management: scene view "Filmic" not found, setting default "Default".
Color management: scene look "Filmic - Base Contrast" not found, setting default "None".

What happens then is that I have only one View Transform ('Default') and no Looks available at all. Nor my custom ones, neither the Default shipped ones.

I'm using this setup because I have a custom OCIO color configuration that is also shared with applications like Resolve and Nuke. The interesting thing is that using environment variables on Windows does work. This seems to be a Linux only issue (cannot test MacOS though). Also, with Blender 2.79b, the OCIO variable is evaluated correctly on the same Linux machine.

**System Information** Operating system: Ubuntu Linux, 17.04 - 18.10 Graphics card: nVidia Geforce 650m **Blender Version** Broken: any 2.80 version for now Worked: 2.79b and before **Short description of error** I am using the following variable in /etc/environment to set a custom OCIO location: ``` OCIO=/CustomSoftware/OCIO/filmic-blender/config.ocio ``` When starting Blender 2.80 from the command line, an error is printed into the console window: ``` Color management: using fallback mode for management Color management: scene view "Filmic" not found, setting default "Default". Color management: scene look "Filmic - Base Contrast" not found, setting default "None". ``` What happens then is that I have only one View Transform ('Default') and no Looks available at all. Nor my custom ones, neither the Default shipped ones. I'm using this setup because I have a custom OCIO color configuration that is also shared with applications like Resolve and Nuke. The interesting thing is that using environment variables on Windows **does** work. This seems to be a Linux only issue (cannot test MacOS though). Also, with Blender 2.79b, the OCIO variable is evaluated correctly on the same Linux machine.
Author

Added subscriber: @RainerTrummer

Added subscriber: @RainerTrummer

Added subscriber: @StephenSwaney

Added subscriber: @StephenSwaney

Added subscriber: @ZedDB

Added subscriber: @ZedDB

If i clone this git repo: https://github.com/imageworks/OpenColorIO-Configs

And run blender with OCIO=<path-to>/nuke-default/config.ocio ./blender it works as I would expect it to. But I have to admit I'm not 100% sure how this should work.

Do you still have this issue on linux with the latest blender beta?

If i clone this git repo: https://github.com/imageworks/OpenColorIO-Configs And run blender with `OCIO=<path-to>/nuke-default/config.ocio ./blender` it works as I would expect it to. But I have to admit I'm not 100% sure how this should work. Do you still have this issue on linux with the latest blender beta?
Author

Yes, for me the problem still persists. Same if I use the provided syntax above: OCIO=/CustomSoftware/OCIO/filmic-blender/config.ocio ./blender throws the same error for me:

Color management: using fallback mode for management
Read prefs: <path_to_prefs>/UserConfigs/Rainer/userpref.blend
Color management: scene view "Filmic" not found, setting default "Default".
Color management: scene look "Filmic - Base Contrast" not found, setting default "None".

Blender 2.79b uses my custom OCIO config just fine.

Yes, for me the problem still persists. Same if I use the provided syntax above: `OCIO=/CustomSoftware/OCIO/filmic-blender/config.ocio ./blender` throws the same error for me: ``` Color management: using fallback mode for management Read prefs: <path_to_prefs>/UserConfigs/Rainer/userpref.blend Color management: scene view "Filmic" not found, setting default "Default". Color management: scene look "Filmic - Base Contrast" not found, setting default "None". ``` Blender 2.79b uses my custom OCIO config just fine.
Author

Output of 2.79b:

OCIO=/CustomSoftware/OCIO/filmic-blender/config.ocio ./blender 
Color management: Using /CustomSoftware/OCIO/filmic-blender/config.ocio as a configuration file
Read prefs: <path_to_prefs>/UserConfigs/Rainer/userpref.blend
Color management: scene view "Default" not found, setting default "sRGB OETF".
Color management: sequencer colorspace "sRGB" not found, will use default instead.

which is the expected output. The original implementation of Troy Sobotka calls the Default View Transform "sRGB OETF", so 2.79b finds the settings and sets the defaults as desired.

Output of 2.79b: ``` OCIO=/CustomSoftware/OCIO/filmic-blender/config.ocio ./blender Color management: Using /CustomSoftware/OCIO/filmic-blender/config.ocio as a configuration file Read prefs: <path_to_prefs>/UserConfigs/Rainer/userpref.blend Color management: scene view "Default" not found, setting default "sRGB OETF". Color management: sequencer colorspace "sRGB" not found, will use default instead. ``` which is the expected output. The original implementation of Troy Sobotka calls the Default View Transform "sRGB OETF", so 2.79b finds the settings and sets the defaults as desired.

Added subscriber: @brecht

Added subscriber: @brecht

Are you perhaps using your own or an unofficial Blender build? If so, does the official daily build work for you?
https://builder.blender.org/download/

It seems like somehow you are using a Blender without OpenColorIO support?

Are you perhaps using your own or an unofficial Blender build? If so, does the official daily build work for you? https://builder.blender.org/download/ It seems like somehow you are using a Blender without OpenColorIO support?
Author

@brecht Jesus, that was indeed the issue. My own builds fail to detect OCIO, while the official ones work just fine. Must have messed that up a while ago. Thanks for investigating!

@brecht Jesus, that was indeed the issue. My own builds fail to detect OCIO, while the official ones work just fine. Must have messed that up a while ago. Thanks for investigating!

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-01-24 20:42:34 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#59016
No description provided.