Your message dated Sun, 21 Aug 2022 00:46:37 +0200
with message-id <87o7weh6sy.fsf@localhost>
and subject line Re: Bug#991051: opencolorio-tools: ocioconvert crash exporting 
in PNG when EXR input is multi layer
has caused the Debian Bug report #991051,
regarding opencolorio-tools: ocioconvert crash exporting in PNG when EXR input 
is multi layer
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
991051: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991051
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: opencolorio-tools
Version: 1.1.0~dfsg0-5
Severity: normal

Hello maintainers,

First, thanks for you hard work.

I hope you will not waste too much time with this one.

System: Debian 10 buster
Kernel 4.19

Step to reproduce:

Download ACES 1.2 from here and extract it: https://github.com/colour-
science/OpenColorIO-Configs/releases/tag/v1.2

Open a terminal, set the OCIO variable:

export OCIO=/path/to/ACES/config.ocio

And execute this command with given file:

ocioconvert one_pixel.exr 'ACEScg' out.png 'Output - sRGB'

This will crash:

Loading one_pixel.exr
Segmentation fault

Notice this image is a cropped 1x1 pixel on a bigger image, but the problem is
the same with a bigger image.

Using gdb, I can find it's related to OpenImageIO/PNG:

Thread 1 "ocioconvert" received signal SIGSEGV, Segmentation fault.
__sigsetjmp () at ../sysdeps/x86_64/setjmp.S:32
32 ../sysdeps/x86_64/setjmp.S: No such file or directory.
(gdb) bt
#0  0x00007ffff6e973b0 in __sigsetjmp () at ../sysdeps/x86_64/setjmp.S:32
#1  0x00007ffff7dbf7f9 in
OpenImageIO_v2_0::PNG_pvt::write_row(png_struct_def*&, unsigned char*) ()
    at /lib/x86_64-linux-gnu/libOpenImageIO.so.2.0
#2  0x00007ffff7e00657 in OpenImageIO_v2_0::PNGOutput::write_scanline(int, int,
OpenImageIO_v2_0::TypeDesc, void const*, long) () at /lib/x86_64-linux-
gnu/libOpenImageIO.so.2.0
#3  0x00007ffff7caf90b in OpenImageIO_v2_0::ImageOutput::write_scanlines(int,
int, int, OpenImageIO_v2_0::TypeDesc, void const*, long, long) () at
/lib/x86_64-linux-gnu/libOpenImageIO.so.2.0
#4  0x00007ffff7cafc92 in
OpenImageIO_v2_0::ImageOutput::write_image(OpenImageIO_v2_0::TypeDesc, void
const*, long, long, long, bool (*)(void*, float), void*) () at
/lib/x86_64-linux-gnu/libOpenImageIO.so.2.0
#5  0x000055555555c307 in main ()

If you try with jpeg or tif, it works:

$ ocioconvert one_pixel.exr 'ACEScg' out.jpg 'Output - sRGB'
Loading one_pixel.exr
Wrote out.jpg

$ ocioconvert one_pixel.exr 'ACEScg' out.tif 'Output - sRGB'
Loading one_pixel.exr
Wrote out.tif

And image is as expected.

Adding a "--ch 1,2,3" seems to avoid the crash.

I suspect its a bug in upstream OpenImageIO or OpenColorIO. Maybe it's fixed in
upstream.

Hope you can report it.

Once again, thanks for the good work team!

Thanks, and have a nice day!

Dorian



-- System Information:
Debian Release: 10.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-13-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages opencolorio-tools depends on:
ii  libc6              2.28-10
ii  libgcc1            1:8.3.0-6
ii  liblcms2-2         2.9-3
ii  libopencolorio1v5  1.1.0~dfsg0-5
ii  libopenimageio2.0  2.0.5~dfsg0-1
ii  libstdc++6         8.3.0-6
ii  libtinyxml2.6.2v5  2.6.2-4
ii  libyaml-cpp0.6     0.6.2-4

opencolorio-tools recommends no packages.

opencolorio-tools suggests no packages.

--- End Message ---
--- Begin Message ---
Version: 2.1.2+dfsg1-1

Hi Dorian!

On 2021-07-13 at 10:44 (+02), Dorian Fevrier wrote:

[...]

> Step to reproduce:
>
> Download ACES 1.2 from here and extract it: https://github.com/colour-
> science/OpenColorIO-Configs/releases/tag/v1.2
>
> Open a terminal, set the OCIO variable:
>
> export OCIO=/path/to/ACES/config.ocio
>
> And execute this command with given file:
>
> ocioconvert one_pixel.exr 'ACEScg' out.png 'Output - sRGB'
>
> This will crash:
>
> Loading one_pixel.exr
> Segmentation fault

[...]

It seems fixed with v2.1.2 in unstable/sid now.
Please, feel free to check again and let me know.

In the meanwhile, I'm closing this bug report.

Cheers.


-- 
Matteo F. Vescovi || Debian Developer
GnuPG KeyID: 4096R/0x8062398983B2CF7A

Attachment: signature.asc
Description: PGP signature


--- End Message ---
-- 
Pkg-phototools-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-phototools-devel

Reply via email to