Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Luminance HDR 2.6.1.1 in Debian Bookworm crashes when running VanHateren operator #275

Open
DavidInHawawii opened this issue Jul 22, 2023 · 3 comments

Comments

@DavidInHawawii
Copy link

I use this operator a lot, I like the results. Since upgrading to new Luminance, the program crashes when I run this operator. Here's what appears in the terminal:
luminance-hdr: ./src/Libpfs/colorspace/rgbremapper.h:95: uint8_t Remapper::operator()(float) const: Assertion sample >= 0.f' failed. luminance-hdr: ./src/Libpfs/colorspace/rgbremapper.h:95: uint8_t Remapper<unsigned char>::operator()(float) const: Assertion sample >= 0.f' failed.

Attaching the ZIPped version of a Sony RAW file (ARW) that triggers the crash. I've also tried using the same image, converted to TIFF using my usual image processor (RawTherapee), and the operator also crashes Luminance with that image.

night-clouds-with-palms-dsc2760-20221224.zip

@DavidInHawawii
Copy link
Author

It also crashes Luminance when I use it on other TIFF files that worked fine in the previous version of Luminance.

@DavidInHawawii
Copy link
Author

An update. Simply opening a TIFF or an EXR image in Luminance crashes the application. Starting Luminance HDR from terminal and opening a TIFF file shows this in the terminal:

libpng warning: iCCP: known incorrect sRGB profile
TiffReader: iccProfileSize: 748
void pfs::io::TiffReaderData::readRGB(pfs::Frame&, const pfs::io::TiffReaderParams&) [with InputDataType = short unsigned int]t
TiffReader: Available ICC Profile, building LCMS Transform
TiffReader: ICC Profile Available
CleanUpCmsTransform::cleanup()
CleanUpCmsProfile::cleanup()
CleanUpCmsProfile::cleanup()
CleanUpTiffFile::cleanup()
CleanUpCmsProfile::cleanup()
CleanUpCmsProfile::cleanup()
Min Luminance: 1e-06
Max Luminance: 1
Mapping method: 3
fromLDRPFStoQImage() = 37.453 msec
resizeFrame() = 0.833 msec
pfscopy() = 0.014 msec
pfscopy() = 0.005 msec
pfstmo_mantiuk06 (Mode: Contrast Mapping, scaleFactor: 0.1, saturationFactor: 0.8, detailFactor: 0.8)

tmo_mantiuk06 = 2.977 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.054 msec
Black in = 0.0627451, Black out = 0, White in = 0.913726, White out = 1, Gamma = 1
gamma_levels() = 0.056 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.043 msec
pfscopy() = 0.011 msec
pfscopy() = 0.006 msec
transformColorSpace: Found right match for colorspace conversion
transformRGB2XYZ() = 0.026 msec
pfstmo_mantiuk08 (saturation factor: 1, contrast enhancement factor: 1, white_y: -2, setluminance: 0)
Display function: gamma-gain-black-ambient
gamma = 2.2 L_max = 200 L_black = 0.8
E_amb = 60 k = 0.01
Display size paramaters:
pixels per visual degree = 30
viewing distance = 0.5 [meters]
transformColorSpace: Found right match for colorspace conversion
transformXYZ2RGB() = 0.026 msec
transformColorSpace: Found right match for colorspace conversion
transformRGB2XYZ() = 0.029 msec

tmo_mantiuk08 = 2.266 msec
transformColorSpace: Found right match for colorspace conversion
transformXYZ2RGB() = 0.026 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.057 msec
Black in = 0.0588235, Black out = 0, White in = 0.929412, White out = 1, Gamma = 1
gamma_levels() = 0.045 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.046 msec
pfscopy() = 0.012 msec
pfscopy() = 0.006 msec
pfstmo_fattal02 (alpha: 1, beta: 0.9. saturation: 1, noise: 0.01, fftsolver: 1)

pde residual error: 0.000034

tmo_fattal02 = 17.161 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.054 msec
Black in = 0, Black out = 0, White in = 1, White out = 1, Gamma = 1
gamma_levels() = 0.042 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.038 msec
pfscopy() = 0.011 msec
pfscopy() = 0.006 msec
pfstmo_ferradans11 (rho: -2, inv_alpha: 5)

tmo_ferradans11 = 30.738 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.06 msec
Black in = 0.254902, Black out = 0, White in = 1, White out = 1, Gamma = 1
gamma_levels() = 0.04 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.038 msec
pfscopy() = 0.011 msec
pfscopy() = 0.005 msec
pfstmo_drago03 (bias: 0.85)

tmo_drago03 = 0.016 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.037 msec
Black in = 0.0980392, Black out = 0, White in = 1, White out = 1, Gamma = 1
gamma_levels() = 0.044 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.036 msec
pfscopy() = 0.007 msec
pfscopy() = 0.006 msec
pfstmo_durand02 (fftw3f ON, sigma_s: 2, sigma_r: 2, base contrast: 5)

tmo_durand02 = 0.16 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.036 msec
Black in = 0.0941177, Black out = 0, White in = 1, White out = 1, Gamma = 1
gamma_levels() = 0.037 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.035 msec
pfscopy() = 0.006 msec
pfscopy() = 0.005 msec
transformColorSpace: Found right match for colorspace conversion
transformRGB2XYZ() = 0.025 msec
pfstmo_reinhard02 (key: 0.18, phi: 1, range: 8, lower scale: 1, upper scale: 43, use scales: 0)

tmo_reinhard02 = 0.061 msec
transformColorSpace: Found right match for colorspace conversion
transformXYZ2RGB() = 0.03 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.056 msec
Black in = 0.0117647, Black out = 0, White in = 0.941177, White out = 1, Gamma = 1
gamma_levels() = 0.047 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.039 msec
pfscopy() = 0.006 msec
pfscopy() = 0.007 msec
pfstmo_reinhard05 (brightness: -10, chromatic adaptation: 0, light adaptation: 1)

tmo_reinhard05 = 0.127 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.035 msec
Black in = 0.027451, Black out = 0, White in = 0.921569, White out = 1, Gamma = 1
gamma_levels() = 0.04 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
fromLDRPFStoQImage() = 0.037 msec
pfscopy() = 0.006 msec
pfscopy() = 0.005 msec
pfstmo_ashikhmin02 (simple: 0, lc_value: 0.5, eq: 2)
transformColorSpace: Found right match for colorspace conversion
transformRGB2XYZ() = 0.024 msec

tmo_ashikhmin02 = 0.817 msec
transformColorSpace: Found right match for colorspace conversion
transformXYZ2RGB() = 0.024 msec
Min Luminance: 0
Max Luminance: 1
Mapping method: 0
luminance-hdr: ./src/Libpfs/colorspace/rgbremapper.h:95: uint8_t Remapper::operator()(float) const: Assertion `sample >= 0.f' failed.

Ideas?

@DavidInHawawii
Copy link
Author

Still the same error happening. Ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant