Open osylum opened 1 year ago
In case you saw the message above already, I updated the code above (remove transform_enabled and clip_enabled) to be closer to the documentation example. This code produces the same issue.
Hi @osylum
Have you tried running on the latest releases too?
I tried after upgrading and got the same behavior. I changed the infos about my configuration in the first comment; I have mitsuba 3.2.1 on python 3.9.7
I am unable to reproduce this issue.
How often does it occur? Are 20 iterations enough?
it fails already at the first iteration for me.
Summary
Optimization stops in loop with access violation error. It does not happen systematically.
System configuration
OS: Windows-10 CPU: Intel64 Family 6 Model 165 Stepping 5, GenuineIntel GPU: NVIDIA RTX A4000 Python: 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] NVidia driver: 517.40 CUDA: 10.0.130 LLVM: 15.-1.-1
Dr.Jit: 0.4.1 Mitsuba: 3.2.1 Is custom build? False Compiled with: MSVC 19.34.31942.0 Variants: scalar_rgb scalar_spectral cuda_ad_rgb llvm_ad_rgb
Description
Below is a simple example, similar as https://mitsuba.readthedocs.io/en/stable/src/inverse_rendering/gradient_based_opt.html. The goal for me was to check if I can optimize the index of refraction. I used llvm. It might stop randomly inside the loop with error: Process finished with exit code -1073741819 (0xC0000005). Activating the display of images within the loop or having print out seem to decrease the frequency when it happens, but not remove the problem. Not clear if it is a sync problem. Maybe I do something wrong in the loop, which cause an invalid access?
Thank you