Closed jaroslavknotek closed 5 months ago
Now, I have the same issue even with texture read from file system:
scene:
{
'type': 'scene',
'integrator': {'type': 'path'},
'sensor': {'type': 'perspective',
'to_world': [[1, 0, 0, 0],
[0, 0, -1, 10],
[-0, 1, 0, 0],
[0, 0, 0, 1]],
'film': {'type': 'hdrfilm',
'pixel_format': 'rgba',
'width': 600,
'height': 800}},
'light': {'type': 'constant', 'radiance': {'type': 'rgb', 'value': 1}},
'model': {
'type': 'cylinder',
"material":{
'type': 'bitmap',
"value": str(img_path)
}
}
Is there anything I can do to at least start debugging what's wrong?
Hello @jaroslavknotek,
A first easy step is to check the console from which you are running the Jupyter server for any logs or exception. In many cases this will already give you a good idea of what's going wrong.
If that's not enough, the typical steps to debug are:
pip
-based install of Mitsuba and DrJitmaster
in debug modeWhen reporting back, please include your standalone reproducer script, including any data it uses, together with the full error messages and stack trace.
That being said, looking at this part of the scene definition, I don't understand what you are attempting to do:
'model': {
'type': 'cylinder',
"material":{
'type': 'bitmap',
"value": str(img_path)
}
bitmap
is not a BSDF. Is it possible that your forgot to wrap your bitmap
-typed dict into a BSDF such as diffuse
?
I did forget to wrap bitmap
. Thank you.
Summary
Python Kernel dies while rendering when using
blendbsdf
with"raw":True
.System configuration
OS: CentOS Linux release 7.9.2009 (Core) CPU: Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz GPU: NVIDIA GeForce RTX 2080 Ti Python: 3.10.9 (main, Mar 8 2023, 10:47:38) [GCC 11.2.0] NVidia driver: 550.54.15 CUDA: 12.4.131 LLVM: -1.-1.-1
Dr.Jit: 0.4.4 Mitsuba: 3.5.0 Is custom build? False Compiled with: GNU 10.2.1 Variants: scalar_rgb scalar_spectral cuda_ad_rgb llvm_ad_rgb
Description
Using example from documentation here with modified
weight
settings as follows:With value of
img
taking form of the following:Kernel just dies without any error.
However, saving the very same
img
into a file usingimageio
and setting it as a bitmap works fine e.g.:Reading the texture into array and serving it with
raw
set toFalse
fails again. There are no errors in the output, nor station resources (CPU, GPU, RAM) are all available during rendering.Additionally, other usage of
raw
bitmap works fine (bumpmap
,normalmap
) therefore I have used it successfully.Steps to reproduce
1. Import and setup
2. Create scene
3. Render Scene
Wait for kernel death.
4. Retry with weights in file
This works just fine
5. Perform Sanity Check
Try reading the file that worked into file
And it fails again.