Open alecail opened 2 months ago
Hi @alecail
I'm not sure what is happening. Is that the full eror log you've provided? I would have expected to see an error message, or at least the error code in it too.
Is there a filesystem permission issue maybe? Can you create new files in the folder where you're running mitsuba
.
The other option that comes to mind is some illegal instruction being executed on your CPU. We've seen weird behavior in the past with Xeon CPUs, and the part of the code that develops the final image can potentially use some very specific instructions.
There is no filesystem issue. It's just your standard folder, in which I copied scene.xml. Local install, nothing fancy. FWIW, there are no problems writing the output when callling it from python like this, but the error messages are still there: $ cat test.py
import mitsuba as mi
# Set the variant of the renderer
mi.set_variant('scalar_rgb')
# Load a scene
print (mi.variants())
mi.set_variant('cuda_ad_rgb')
scene = mi.load_dict(mi.cornell_box())
# Render the scene
img = mi.render(scene, spp=500)
# Write the rendered image to an EXR file
mi.Bitmap(img).write('cbox.exr')
python3 test.py
jit_llvm_init(): your CPU does not support the `fma` instruction set, shutting down the LLVM backend...
['scalar_rgb', 'scalar_spectral', 'cuda_ad_rgb', 'llvm_ad_rgb']
jit_shutdown(): detected variable leaks:
- variable r930 is still being referenced! (ref=1, ref_se=0, type=void, size=1, stmt="", dep=[0, 0, 0, 0])
jit_shutdown(): 1 variables are still referenced!
Then a rendering of a Cornell box is written in the file cbox.exr
I can ´t find anything about: jit_llvm_init(): your CPU does not support the fma
instruction set,
But it's also telling me that it's not going to use it. Not sure what to conclude
In the python script, could you try replacing
mi.Bitmap(img).write('cbox.exr')
with
scene.sensors()[0].film().write('out.exr')
Does it still work ?
These are slighlty different code paths, and the latter one is used by mitsuba
executable.
@njroussel This doesn't break test.py on my end It still outputs a correct out.exr, and it still has the same warnings.
I'm stumped, my only suggestion would be to build the project yourself (be careful to checkout v3.5.2
and update the git submodules) in Debug mode and run it through the debugger.
Maybe if I know which source code line is crashing, I can figure out the rest.
Maybe an issue with the struct converter for that particular CPU generation? What if you build from source, but explicitly set MI_STRUCTCONVERTER_USE_JIT = 0
in struct.h
?
Summary
I can´t find the rendered file
System configuration
I am using python3.
System information:
Description
I downloaded the Cornell box from here: https://mitsuba.readthedocs.io/en/stable/src/gallery.html After this command line finished executing:
$ mitsuba scene.xml -o out.exr
I don't have a file named out.exr at the end of the process.
The error code is 252 according to my terminal
Steps to reproduce