Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdRpr Disappearing after picking renderer. #403

Closed
cabraswel opened this issue Nov 23, 2020 · 27 comments
Closed

hdRpr Disappearing after picking renderer. #403

cabraswel opened this issue Nov 23, 2020 · 27 comments

Comments

@cabraswel
Copy link

cabraswel commented Nov 23, 2020

I have been using Pro render with Houdini since the first one and now I am using the installer script with H18.5.404 using Steam and everything appears to be working much easier that previous versions. But RPR will not work in the viewport after being selected.

I verified that RPR_for_Houdini is in the user folder under packages in the documents\houdini18.5 folder. I made sure to give my install directory a clean name c:/AMD/hdRpr2_0_1. Since H18.5 I did not have a previous version of RPR installed.

There is also "C:\Program Files (x86)\Steam\steamapps\common\Houdini Indie\bin\usd_plugins\hdRpr" that seems to be in the proper place.

The issues is when I pick RPR from the render dropdown in the viewport on USD Stage RPR just disappears from the list leaving OGL Karma and storm until I restart Houdini. I can even go in and change the RPR setting if I press "D" in the viewport. But as soon as i pick it as a rendering engine it vanishes. I even tried to switch to "CPU" ahead of picking it.

@hshakula
Copy link
Contributor

This sounds like a typical example of a mismatch of dynamic libraries required by the plugin and libraries of the current Houdini in use. It happens when you use hdRpr that was compiled against another Houdini version.

So I decided to check if H18.5.404 works with the plugin built against H18.5.351 (the latest production release). But what's interesting, for me, RPR was not visible at all. For some reason, H18.5.404 required me to substitute $RPR in the plugin package json by hand, so that this

{"env":[{"RPR":"some-path"},{"HOUDINI_PATH":"$RPR/houdini"},{"PATH":"$RPR/lib"},{"PYTHONPATH":"$RPR/lib/python"}]}

becomes this

{"env":[{"RPR":"some-path"},{"HOUDINI_PATH":"some-path/houdini"},{"PATH":"some-path/lib"},{"PYTHONPATH":"some-path/lib/python"}]}

And so I was able to reproduce your issue, I see what is causing this, I will fix it. But in the meantime, you can play with this build

@hshakula
Copy link
Contributor

There is also "C:\Program Files (x86)\Steam\steamapps\common\Houdini Indie\bin\usd_plugins\hdRpr" that seems to be in the proper place.

There should not be any hdRpr files in your Houdini. We don't install hdRpr in the Houdini installation directory anymore because it requires you to reinstall it each time you update Houdini.

@cabraswel
Copy link
Author

Thank you.

@cabraswel
Copy link
Author

I am having the same problem. I tried H.18.5.351 and H.18.5.404. I am not not sure why. I even deleted houdini and reinstalled it. RPR shows up then vanishes when I try to use it. I even get the RPR menu at the top near the file menu.

@hshakula
Copy link
Contributor

That's definitely an issue caused by a mismatch of dynamic libraries. Let's try to figure out what's going on. Please set the environment variable TF_DEBUG to TF_DLOPEN value and try enabling RPR. You should see some sort of such output:
image
And there should be a line with hdRpr. Send me your output.

If you see a load error then do the following:

  • download dependency walker - https://www.dependencywalker.com/.

  • run it from Houdini:
    image

    import subprocess
    subprocess.check_output(r'D:\Downloads\depends22_x86\depends.exe')
    

    insert your path to depends.exe

  • open c:/AMD/hdRpr2_0_1/plugin/usd/hdRpr.dll. You should see something like this:
    image

  • press ctrl+w and expand the top-most element and send me what you see. Example:
    image

@cabraswel
Copy link
Author

I was unable to find the debug outputl. I found the .h files for USD but did not know which of the 3 needed the variable to be set so i just did a screen grab for you anyway.

Screen

@hshakula
Copy link
Contributor

Debug output? Do you mean console?
Did you set TF_DEBUG=TF_DLOPEN as stated here?

From the screenshot, I see that hdRpr should load, weird. Can you check if RPRUSD.dll has any missing dependencies? Just to be sure? (red entries)

@cabraswel
Copy link
Author

cabraswel commented Nov 24, 2020

I edited the environment variables and I hope that is correct. I do not get any outputs when i change to RPR in the viewport so I wonder if I did that correctly.

image

image

@hshakula
Copy link
Contributor

I edited the environment variables and I hope that is correct. I do not get any outputs when i change to RPR in the viewport so I wonder if I did that correctly.

To apply changes of environment you need to press ok:
image

and restart Houdini.

And for rprusd.dll, could you please screenshot this just like you did it for hdRpr.dll (with all second-level dependencies collapsed)?

@cabraswel
Copy link
Author

image
image

@hshakula
Copy link
Contributor

That's really weird, let's make sure that it tries to load correct libraries. Could you please make the same screenshot as you did here #403 (comment) but with View Full Paths:
image

@cabraswel
Copy link
Author

image

@hshakula
Copy link
Contributor

Please collapse second-level entries

@cabraswel
Copy link
Author

image

@hshakula
Copy link
Contributor

The only weird thing I see here is that your houdini uses python27.dll from system32 instead of using its own one. But I don’t think that it causes our issue.

Do you see any red dll entries in dependency walker? (If you expand all dll entries)

@cabraswel
Copy link
Author

I explored doing a page down in multiple windows and I found IEframe, SCHcore SCHLwapi are red.
image
image

@hshakula
Copy link
Contributor

Hm, but these libraries are not in direct dependencies of hdRpr. Could you please find who relies on one of them (in the dll tree)? Most likely it will one of system32 libraries. And if you will find it, select it and make a screenshot pls

@cabraswel
Copy link
Author

image

@cabraswel
Copy link
Author

image

@hshakula
Copy link
Contributor

I still did not get what exactly prevents hdRpr to load. Can I get remote access to your dependency walker to inspect it more thoroughly?

@cabraswel
Copy link
Author

Could we use a screen share with discord?

@cabraswel
Copy link
Author

I have done a clean install of Houdini and a clean install of hdRpr and still no dice. I am using Houdini with Python 2.7 and everything else seems to work USD related.

TfDlopen: [opening] 'c:/PROGRA2/Steam/STEAMA1/common/HOUDIN1/houdini/dso/usd/USD_Plugins.dll' (flag=0)...
TfDlopen: [opened] 'c:/PROGRA
2/Steam/STEAMA1/common/HOUDIN1/houdini/dso/usd/USD_Plugins.dll' (handle=00000000B3850000)
TfDlopen: [opening] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_usd.dll' (flag=0)...
TfDlopen: [opened] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_usd.dll' (handle=00007FF80BCB0000)
TfDlopen: [opening] 'c:/PROGRA2/Steam/STEAMA1/common/HOUDIN1/houdini/dso/usd/USD_NC.dll' (flag=0)...
TfDlopen: [opened] 'c:/PROGRA
2/Steam/STEAMA1/common/HOUDIN1/houdini/dso/usd/USD_NC.dll' (handle=000000009FAC0000)
TfDlopen: [opening] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_sdf.dll' (flag=0)...
TfDlopen: [opened] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_sdf.dll' (handle=00007FF80B910000)
TfDlopen: [opening] 'c:/PROGRA2/Steam/STEAMA1/common/HOUDIN1/houdini/dso/usd/USD_Plugins.dll' (flag=0)...
TfDlopen: [opened] 'c:/PROGRA
2/Steam/STEAMA1/common/HOUDIN1/houdini/dso/usd/USD_Plugins.dll' (handle=00000000B3850000)
TfDlopen: [opening] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/usd_plugins/hdStorm.dll' (flag=0)...
TfDlopen: [opened] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/usd_plugins/hdStorm.dll' (handle=00007FF88A7F0000)
TfDlopen: [opening] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_hgiGL.dll' (flag=0)...
TfDlopen: [opened] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_hgiGL.dll' (handle=00007FF85DDD0000)
TfDlopen: [opening] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_glf.dll' (flag=0)...
TfDlopen: [opened] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_glf.dll' (handle=00007FF82C4B0000)
TfDlopen: [opening] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_usdImaging.dll' (flag=0)...
TfDlopen: [opened] 'c:/Program Files (x86)/Steam/steamapps/common/Houdini Indie/bin/libpxr_usdImaging.dll' (handle=00007FF80B1A0000)
TfDlopen: [opening] 'c:/AMD/hdRpr/plugin/usd/hdRpr.dll' (flag=0)...
TfDlopen: [opened] 'c:/AMD/hdRpr/plugin/usd/hdRpr.dll' (handle=0000000000000000)
TfDlopen: [error on opening] 'c:/AMD/hdRpr/plugin/usd/hdRpr.dll': The specified procedure could not be found.

@zxzxde
Copy link

zxzxde commented Mar 17, 2021

I have the same problem
rpr

@PatrickZeller
Copy link

PatrickZeller commented Mar 22, 2021

also have the same issue

image
thats an error message when i press something in the RPR menu

oh and i tried to use both 18.5.408 same error.

@hshakula
Copy link
Contributor

also have the same issue

image
thats an error message when i press something in the RPR menu

oh and i tried to use both 18.5.408 same error.

Do you have any other plugins that require houdini.env modifications?

@hshakula
Copy link
Contributor

hshakula commented Mar 24, 2021

I have the same problem
rpr

You are using hdRpr build for Houdini 18.5.408 in Houdini 18.5.509. Seems like these two versions are not compatible. You have a few options:

@bsavery
Copy link
Contributor

bsavery commented Jul 15, 2021

Hi @cabraswel or others. Can you retry with latest build? Reopen if still seen.

@bsavery bsavery closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants