Closed oceanusxiv closed 4 years ago
Hello, yes the library is still in a state of some flux right now. I'll try and make sure that the examples are all up-to-date before I push anything to github again. In this case it was because I implemented Drop for DeviceContext and called optixDeviceContextDestroy(), which means that the Renderer struct needs to hold onto the DeviceContext. I've updated the examples to reflect this and all should work correctly now.
Thanks for the quick response! I totally understand that everything's a WIP, there's just so few projects with Rust and Optix interop active right now, and I very much appreciate the work you're putting into this.
Hi
I know it's still quite premature and you're certainly still working on it, but I just want to say that I tried out your examples in the optix7 branch, and it appears that aside from the first example where no optix launch calls were made, all subsequent examples that actually launches an optix kernel appears to cause a segmentation fault, here's the backtrace for 02_pipeline
I'm not entirely sure what's going on, perhaps one of the device pointers or optix structures are not being allocated properly? The code seems to be crashing on the host side however, as cuda-memcheck does not report any actual kernel crashes, the code might not have even reached the kernel launch stage, merely crashing within the optix host code.
Edit: I went back and reran all the examples, and it appears that some of them do work for me, so here's a list of which examples do and do not work for me.
01_hello
: works02_pipeline
: segfaults03_window
: compilation error04_mesh
: compilation error05_sbtdata
: compilation error06_multiple
: compilation error07_obj
: segfault08_texture
: works09_shadow
: segfault10_softshadow
: segfault