-
Hello, I have written a custom shape plugin code that has been compiled well and tested in scalar_rgb without errors, but I tried rendering in llvm_ad_rgb variant to speed up testing the plugin and got a runtime error in python as follows:
I'm not used to programming in terms of SIMD, so the error message can't help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @g1r4ff3 If you run your code through a debugger, you should be able to step through your shape's constructor. Eventually, something in this constructor will trigger that error. |
Beta Was this translation helpful? Give feedback.
No, but you might be in a recorded loop or virtual function call. In, fact if you're writing something that is used during rendering, it most likely is in one them. Simply put, the intergrator most likely has a recorded loop so anything done inside the integrator will produce this message. For example, let's say you've written a new BSDF. This BSDF does not need a loop, but it is still called as part of the integrator's loop.
I'd recommend you read a bit more about
drjit
. Because it is a just-in-time compiler, the debugger will not behave as you expect: at any point in time you will not be able to see the …