I upgraded my Debian 11 installation to Debian 12 (Bookworm). I have Hugin 2022.0.0.a0962865f932 installed from the Debian Bookworm repository.
I'm using the process I followed before the upgrade.
I process my Sony RAW frames using RawTherapee 5.9 (from the Debian respository), output them as 16-bit TIFF.
Luminance HDR can open the individual 16-bit TIFF files RawTherapee produces without any problems.
When I make a panorama using Hugin, I have Hugin output 16-bit TIFF and OpenEXR images.
Opening either of the generated panorama files crashes Luminance HDR with this error:
luminance-hdr: ./src/Libpfs/colorspace/rgbremapper.h:95: uint8_t Remapper<unsigned char>::operator()(float) const: Assertion `sample >= 0.f' failed.
I would think that if the issue is originating with RawTherapee, it would affect the individual TIF files. So it seems like Hugin is doing something during its processing that throws Luminance for a loop.
The generated Hugin images open fine in an image viewer, GIMP and Krita.
Followup. I compiled from Luminance HDR source, version 2.6.1_GIT-380402 [Build 380402]. It handles Hugin produced files without any issues.