-
Notifications
You must be signed in to change notification settings - Fork 251
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
Crashes when using aov integrator with specfilm #1189
Comments
Hello @ewan-schafer, I can reproduce on my machine but I couldn't find the root cause of the issue from a quick look. @mcrescas, do you know what might be going wrong with |
Another observation: if you add more channels to the specfilm, the crash no longer occurs (>= 3 channels). Could it be that the sub-integrators' mitsuba3/src/integrators/aov.cpp Lines 363 to 367 in 19bf5a4
Or the other way around, the AOV integrator always assumes there are 4 (RGBA) "base" channels, whereas the specfilm may have fewer. mitsuba3/src/integrators/aov.cpp Lines 118 to 124 in 19bf5a4
(I'm not familiar with the details, these are just guesses). |
Hi 👋 , It seems that the problem is what @merlinND mentioned in his last message. AOV integrator expects that the integrators passed to it output RGBA images (in spectral mode, that means that the spectrum computed will be transformed to that space). If you are lucky enough, the number of channels will match and no segfault will happen. The fix would be to change the logic to avoid assumptions about the data output of the spectral integrators (which we do in the other In the mean time, I would recommend you to instantiate the scene one time using Hope it helps |
Summary
Trying to use the AOV integrator with
specfilm
causes SIGABRT / SIGBUS / SIGSEV.System configuration
System information:
OS: 14.4.1
CPU: b'Apple M2 Max'
Python: 3.11.7 (main, Dec 15 2023, 12:09:56) [Clang 14.0.6 ]
LLVM: 17.0.3
Dr.Jit: 0.4.4
Mitsuba: 3.5.0
Is custom build? False
Compiled with: AppleClang 14.0.0.14000029
Variants:
scalar_rgb
scalar_spectral
llvm_ad_rgb
Description
I have been trying to use the scalar_spectral variant of mitsuba3 to render an image with custom spectral channels and also a depth layer.
Using the AOV integrator with
specfilm
fails with one of the following exit codes: SIGABRT / SIGBUS / SIGSEV (it isn't always the same one).Using
hdrfilm
does not cause the issue.The documentation for specfilm implies that OpenEXR format is used under the hood, so I assumed that the behaviour would be the same.
As an alternative, I've been able to get the result that I want by doing two separate renders with different integrators and films. But I couldn't see anything in the docs to suggest that my original approach wasn't intended usage.
Steps to reproduce
Below is a minimal example that reproduces the issue on my machine:
The text was updated successfully, but these errors were encountered: