Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515606 - media-gfx/blender-2.71 - blender: OpenColorIO Error: Error: Loading the OCIO profile '/usr/share/blender/2.71/datafiles/colormanagement/config.ocio' failed. yaml-cpp: error at line 0, column 0: bad conversion
Summary: media-gfx/blender-2.71 - blender: OpenColorIO Error: Error: Loading the OCIO ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
: 523992 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-06-28 15:10 UTC by tman
Modified: 2014-09-29 08:50 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/share/blender/2.71/datafiles/colormanagement/config.ocio (config.ocio,26.47 KB, text/plain)
2014-07-14 17:14 UTC, tman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2014-06-28 15:10:30 UTC
starting blender cause:

~ $ blender
OpenColorIO Error: Error: Loading the OCIO profile '/usr/share/blender/2.71/datafiles/colormanagement/config.ocio' failed. yaml-cpp: error at line 0, column 0: bad conversion
Color management: using fallback mode for management
libpng warning: iCCP: known incorrect sRGB profile





Reproducible: Always




Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.15.2-gentoo x86_64)
=================================================================
System uname: Linux-3.15.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24627364 total,  21240964 free
KiB Swap:   25598972 total,  25598972 free
Timestamp of tree: Sat, 28 Jun 2014 14:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo bitcoin steam-overlay bumblebee printer-drivers lokal
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/portage"
Comment 1 Oleg 2014-06-29 19:24:51 UTC
Did you build blender with opencolorio?
Comment 2 tman 2014-06-29 20:21:07 UTC
there is no USE opencolorio:


[I] media-gfx/blender
     Available versions:  (~)2.66-r1 (~)2.67b-r1 (~)2.68 (~)2.68a (~)2.69 (~)2.69-r1 (~)2.70 (~)2.70-r1 (~)2.70a-r3 (~)2.71 {+boost +bullet collada colorio cycles +dds debug doc +elbeem ffmpeg fftw +game-engine jack jpeg2k ndof nls openal +openexr openimageio openmp +opennl player redcode sdl sndfile sse sse2 tiff PYTHON_SINGLE_TARGET="python3_3 python3_4" PYTHON_TARGETS="python3_3 python3_4"}
     Installed versions:  2.71(17:32:31 28.06.2014)(boost bullet collada colorio cycles dds elbeem ffmpeg fftw game-engine jack jpeg2k nls openal openexr openimageio openmp opennl player sdl sndfile sse sse2 tiff -debug -doc -ndof -redcode PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4")
     Homepage:            http://www.blender.org
     Description:         3D Creation/Animation/Publishing System
Comment 3 tman 2014-06-30 00:25:44 UTC
seems to be there is soemthing broken.

http://wiki.blender.org/index.php/Dev:Source/Image/OpenColorIO

OpenColorIO is a must have for compiling blender. and  its also installed on system:

[I] media-libs/opencolorio
     Available versions:  1.0.8^t (~)1.0.9^t (~)1.0.9-r1^t {doc opengl pdf python sse2 test PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
     Installed versions:  1.0.9-r1^t(17:26:59 28.06.2014)(opengl python sse2 -doc -pdf -test PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7")
     Homepage:            http://opencolorio.org/
     Description:         A color management framework for visual effects and animation



but i still get this error:


$ blender
OpenColorIO Error: Error: Loading the OCIO profile '/usr/share/blender/2.71/datafiles/colormanagement/config.ocio' failed. yaml-cpp: error at line 0, column 0: bad conversion
Color management: using fallback mode for management
Read new prefs: /home/test/.config/blender/2.71/config/userpref.blend
Comment 4 tman 2014-06-30 08:08:32 UTC
ok i notice 

 # quse -D openimageio
 local:openimageio:media-gfx/blender: Enable OpenImageIO Support


t its anyways must be broken, else it would find the emerged openimagio packe.
Comment 5 Julian Ospald 2014-06-30 12:12:32 UTC
you are mixing something up:

colorio? ( media-libs/opencolorio )
Comment 6 tman 2014-06-30 15:28:06 UTC
TuX ~ $ quse -D colorio

 local:colorio:media-gfx/blender: Enable OpenColorIO color management.
 local:colorio:media-libs/openimageio: Use media-gfx/opencolorio

TuX ~ $ quse -D openimageio
 local:openimageio:media-gfx/blender: Enable OpenImageIO Support


both use OpenImageIO.
Comment 7 Julian Ospald 2014-06-30 16:01:24 UTC
(In reply to tman from comment #6)
> TuX ~ $ quse -D colorio
> 
>  local:colorio:media-gfx/blender: Enable OpenColorIO color management.
>  local:colorio:media-libs/openimageio: Use media-gfx/opencolorio
> 
> TuX ~ $ quse -D openimageio
>  local:openimageio:media-gfx/blender: Enable OpenImageIO Support
> 
> 
> both use OpenImageIO.

I was referring to:
> there is no USE opencolorio:
Comment 8 Julian Ospald 2014-06-30 16:28:28 UTC
we need to test:
* does blender work with opencolorio[-opengl]
* does blender work with openimageio[-colorio]
* does blender work with openimageio[-opengl]
Comment 9 tman 2014-06-30 19:25:45 UTC
(In reply to Julian Ospald (hasufell) from comment #8)
> we need to test:
> * does blender work with opencolorio[-opengl]
> * does blender work with openimageio[-colorio]
> * does blender work with openimageio[-opengl]

i tried all and got same error: 

OpenColorIO Error: Error: Loading the OCIO profile '/usr/share/blender/2.71/datafiles/colormanagement/config.ocio' failed. yaml-cpp: error at line 0, column 0: bad conversion
Color management: using fallback mode for management
Read new prefs: /home/cornix/.config/blender/2.71/config/userpref.blend
Comment 10 Julian Ospald 2014-06-30 19:46:24 UTC
(In reply to tman from comment #9)
> (In reply to Julian Ospald (hasufell) from comment #8)
> > we need to test:
> > * does blender work with opencolorio[-opengl]
> > * does blender work with openimageio[-colorio]
> > * does blender work with openimageio[-opengl]
> 
> i tried all and got same error: 
> 
> OpenColorIO Error: Error: Loading the OCIO profile
> '/usr/share/blender/2.71/datafiles/colormanagement/config.ocio' failed.
> yaml-cpp: error at line 0, column 0: bad conversion
> Color management: using fallback mode for management
> Read new prefs: /home/cornix/.config/blender/2.71/config/userpref.blend

That probably means we need
* opencolorio[opengl]
* openimageio[colorio,opengl]

Can you confirm that?
Comment 11 tman 2014-06-30 23:37:20 UTC
 # eix opencolorio
[I] media-libs/opencolorio
     Available versions:  1.0.8^t (~)1.0.9^t (~)1.0.9-r1^t {doc opengl pdf python sse2 test PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
     Installed versions:  1.0.9-r1^t(02:23:18 30.06.2014)(opengl python sse2 -doc -pdf -test PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7")
     Homepage:            http://opencolorio.org/
     Description:         A color management framework for visual effects and animation



[I] media-libs/openimageio
     Available versions:  1.1.1^t (~)1.1.7^t (~)1.3.5^t {colorio gif jpeg2k opencv opengl python qt4 ssl tbb +truetype PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
     Installed versions:  1.3.5^t(17:20:01 28.06.2014)(gif jpeg2k opengl python qt4 ssl truetype -colorio -opencv -tbb PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7")
     Homepage:            http://sites.google.com/site/openimageio/ http://github.com/OpenImageIO
     Description:         A library for reading and writing images



That probably means we need
* opencolorio[opengl]
* openimageio[colorio,opengl]

cause same error.
Comment 12 tman 2014-07-14 17:14:47 UTC
Created attachment 380716 [details]
/usr/share/blender/2.71/datafiles/colormanagement/config.ocio

very streange, because the lins a comment
Comment 13 tman 2014-07-15 06:50:39 UTC
testing the official pre compiled blender it dont cause this error:


./blender
connect failed: No such file or directory
Read new prefs: /home/test/.config/blender/2.71/config/userpref.blend
found bundled python: /home/test/Downloads/blender-2.71-linux-glibc211-x86_64/blender-2.71-linux-glibc211-x86_64/2.71/python


so it must be something wrong in the ebuild, which cause this error.

please fixe it.
Comment 14 tman 2014-07-15 07:10:54 UTC
the USE"colorio" is definitvely the cuprit.

with this USE i cause the error.
Comment 15 tman 2014-07-15 11:23:03 UTC
workaround:  downgrading  dev-cpp/yaml-cpp to version 3.

https://developer.blender.org/T41070
Comment 16 Julian Ospald 2014-07-15 11:39:12 UTC
(In reply to tman from comment #15)
> workaround:  downgrading  dev-cpp/yaml-cpp to version 3.
> 
> https://developer.blender.org/T41070

Are you sure that's the solution?

If so, I will set

=dev-cpp/yaml-cpp-3.0.0 in the ebuild
Comment 17 tman 2014-07-15 12:11:31 UTC
i got this advice from blender bugzilla.

so i am 99% sure.
Comment 18 tman 2014-07-15 12:22:23 UTC
i tried to mask the version =>0.5.1, but it seems to be more depencies there.

 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U #] dev-cpp/yaml-cpp-0.5.1 [0.3.0] 0 kB
[ebuild  N     ] media-libs/opencolorio-1.0.9-r1  USE="opengl python sse2 -doc (-pdf) {-test}" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB

Total: 2 packages (1 upgrade, 1 new), Size of downloads: 0 kB

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by media-libs/opencolorio-1.0.9-r1
# required by media-libs/opencolorio (argument)
# /etc/portage/package.mask:
=dev-cpp/yaml-cpp-0.5.1



so i have also open a new ticket on blender and hope the upstream of blender solve the problem in the future:
https://developer.blender.org/T41083
Comment 19 tman 2014-07-15 12:26:38 UTC
here are some links to same problematic which show that its really yaml the problem:

https://developer.blender.org/T38370
Comment 20 Julian Ospald 2014-07-15 12:33:44 UTC
so we obviously need

<=media-libs/opencolorio-1.0.9
Comment 21 Julian Ospald 2014-07-16 15:32:09 UTC
+*blender-2.71-r1 (16 Jul 2014)
+
+  16 Jul 2014; Julian Ospald <hasufell@gentoo.org> +blender-2.71-r1.ebuild,
+  +files/08-blender-2.71-gflags.patch:
+  fix opencolorio dep wrt #515606, fix building with gflags-2.1.1 and adjust
+  dep wrt #517134, add epatch_user
Comment 22 Oleg 2014-09-28 20:42:14 UTC
In opencolorio master it fixed. I've just checked it with opencolorio-9999 ebuild.
Comment 23 Julian Ospald 2014-09-29 00:40:15 UTC
(In reply to Oleg from comment #22)
> In opencolorio master it fixed. I've just checked it with opencolorio-9999
> ebuild.

I don't care about master, but about the versions which are in the tree.
Comment 24 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-29 08:50:29 UTC
*** Bug 523992 has been marked as a duplicate of this bug. ***