Open zichenwang01 opened 1 year ago
Hi @zichenwang01
This most likely is due to a bug in Dr.Jit. Explicit evaluations, like the additional numpy conversion, should never be needed. I would recommend building the project from source, the current master
branch has quite a few bug fixes.
Unfortunately, without a reproducer I can't really provide more help.
Hello @zichenwang01,
the program halts without any error message
Does your code import pytorch
or tensorflow
as well?
I'm asking because this behavior might be caused by an exception thrown inside of DrJit or Mitsuba. The exception could be legitimate, but the code that handles that exception in the C++ runtime loaded from another module could be incompatible, causing a segfault or weird silent crash.
I've encountered this issue when importing PyTorch and Mitsuba in the same script on Linux, where one was compiled with libc++
and the other with libstdc++
.
Hello @zichenwang01,
the program halts without any error message
Does your code import
pytorch
ortensorflow
as well? I'm asking because this behavior might be caused by an exception thrown inside of DrJit or Mitsuba. The exception could be legitimate, but the code that handles that exception in the C++ runtime loaded from another module could be incompatible, causing a segfault or weird silent crash. I've encountered this issue when importing PyTorch and Mitsuba in the same script on Linux, where one was compiled withlibc++
and the other withlibstdc++
.
No, it does not import pytorch or tensorflow. But I will keep a note of that in the future. Thanks!
I'm unfamiliar with Window's logging system. But typically, a drjit
error will intentionally crash the process it's running in with a error message. I'm assuming that this is what is happening in your setup but you simply can't see this error message. Jupyter is particularly awful at capturing these logs. If you're using a notebook, you might want to convert it to a simple Python script and execute it normally. Hopefully that will be a bit more verbose.
Summary
Hi,
I developed a custom sphere tracer and wanted to forward a single parameter to the rendered image.
The custom integrator works fine for normal rendering. However, weird things happened that when I forward a single parameter, I have to have an irrelevant line
L_np = np.array(L)
or otherwise the program halts without any error message.System configuration
System information:
OS: Windows11 CPU: Intel i5 GPU: None Python version: 3.11.3 LLVM version: 15.0.6 CUDA version: None NVidia driver: ...
Dr.Jit version: 0.4.2 Mitsuba version: 3.3.0 Compiled with: ... Variants compiled: ...
Description
Steps to reproduce