GPUOpen-LibrariesAndSDKs / RadeonProRenderUSD

This plug-in allows GPU or CPU accelerated viewport rendering on all OpenCL 1.2 hardware for the open source USD and Hydra system. You can build this plug-in as a USDView plug-in or a Houdini plug-in.
Apache License 2.0
215 stars 47 forks source link

RPR material causes segmentation fault error/crash #356

Closed katohmy closed 3 years ago

katohmy commented 4 years ago

I seem to be having trouble assigning RPR materials in the material network. I keep getting a segmentation fault error that leads to a crash when I assign an RPR material to an object or even just trying to add a RPR material node to a new .hip file. What am I missing/doing wrong? I've attached my last crash log to this issue. Thanks in advance,

Capture

crash.untitled.Katohmy_12004_log.txt

hshakula commented 4 years ago

What RPR build do you use? How did you install it - with help of Houdini’s package system or copied build directly into the Houdini tree?

katohmy commented 4 years ago

Using the most recent build (1.3.2) and installed following the automatic process (activateHoudiniPlugin python installation). The python window closed as soon as it opened, but once I opened Houdini and switched to the stage network, RPR perspective was available.

hshakula commented 4 years ago

I just tried 1.3.0 release build (hdRpr-1.3.2-Houdini-18.0.532-Windows.tar.gz) with Houdini 18.0.584 (18.0.566 production) and I can reproduce the crash. But if I recompile the plugin against the target Houdini, it works. So most likely SideFX made some breaking changes in their ABI. We will update the builds for the newer Houdini.

In the meantime, please try this build.

katohmy commented 4 years ago

Really appreciate the swiftness, many many thanks.

Forgive me for being a noob, but what's a good way to go about uninstalling the current RPR build so as to avoid running into this problem again? Or will this new build overwrite the last one?

hshakula commented 4 years ago

If you are always using automatic activation then you can just call activate on new build and it should be ok already. And ofc you can just delete the old package. We are not installing anything to the system folders except package JSON in Houdini preference dir that is overwritten by the activation script

katohmy commented 4 years ago

Got it up and running. Material nodes load just fine without issue. Thanks again.