Redshift for maya won´t load

1,784 views
Skip to first unread message

Daniel Karlsson

unread,
Sep 17, 2018, 2:59:38 AM9/17/18
to Royal Render Knights Tavern
Hi

I am trying to render redshift on the farm but get an error saying:

R 49| Error: line 1: Unable to dynamically load : //sirlancelot/royalRender6/render_apps/renderer_exe/maya/win_x64/Redshift_2.6.19/Plugins/Maya/2017/nt-x86-64/redshift4maya.mll
R 50| The specified module could not be found.
R 51| 
R 52| Error: line 1: The specified module could not be found.
R 53|  (redshift4maya)
R 54| ' 15:01.21 rrMaya - ERR: Invalid object or value:

I am setting the path for redshift in the _setenv/maya.bat and if I copy and paste the path in the error I end up where the redshift files are. 
I have also tried running the render clients in application mode but it doesn´t help here. 

Any ideas?

Thanks in advance,

/Daniel

RR support, Acampora

unread,
Sep 17, 2018, 4:18:59 AM9/17/18
to Royal Render Knights Tavern
Hi Daniel,


R 49| Error: line 1: Unable to dynamically load : //sirlancelot/royalRender6/render_apps/renderer_exe/maya/win_x64/Redshift_2.6.19/Plugins/Maya/2017/nt-x86-64/redshift4maya.mll
R 50| The specified module could not be found.


maya can find redshift4maya.mll, but then redshift4maya.mll cannot find some modules that it needs. Redshift has come to need many environment variables, please make sure you are setting all of these:

REDSHIFT_COMMON_ROOT  =   //sirlancelot/royalRender6/
render_apps/renderer_exe/maya/win_x64/Redshift_2.6.19/Plugins/Maya
\Common
REDSHIFT_PLUG_IN_PATH  =   //sirlancelot/royalRender6/
render_apps/renderer_exe/maya/win_x64/Redshift_2.6.19/Plugins/Maya/2017/nt-x86-64/
REDSHIFT_SCRIPT_PATH  =  %REDSHIFT_COMMON_ROOT%\scripts;%REDSHIFT_COMMON_ROOT%\scripts\override
REDSHIFT_RENDER_DESC_PATH  =  %REDSHIFT_COMMON_ROOT%\rendererDesc
REDSHIFT_MAYAEXTENSIONSPATH = %REDSHIFT_PLUG_IN_PATH%\extensions

PYTHONPATH  =  %REDSHIFT_COMMON_ROOT%\scripts;%PYTHONPATH%
MAYA_RENDER_DESC_PATH  =  %REDSHIFT_RENDER_DESC_PATH%;%MAYA_RENDER_DESC_PATH%
MAYA_SCRIPT_PATH  = %REDSHIFT_SCRIPT_PATH%;%MAYA_SCRIPT_PATH%
MAYA_PLUG_IN_PATH  =  %REDSHIFT_PLUG_IN_PATH%;%MAYA_PLUG_IN_PATH%
PATH  =  %REDSHIFT_PLUG_IN_PATH%;%REDSHIFT_PLUG_IN_PATH%\extensions;%RR_REDSHIFT_BASE_LOCAL%\bin;%PATH%

you might also need
REDSHIFT_XBMLANGPATH  =  %REDSHIFT_COMMON_ROOT%/icons

Thanks,
Paolo

Daniel Karlsson

unread,
Sep 17, 2018, 4:52:36 AM9/17/18
to Royal Render Knights Tavern
Hi

Thanks for the quick reply.

These three lines were new to me:


REDSHIFT_MAYAEXTENSIONSPATH = %REDSHIFT_PLUG_IN_PATH%\extensions
PYTHONPATH  =  %REDSHIFT_COMMON_ROOT%\scripts;%PYTHONPATH%
PATH  =  %REDSHIFT_PLUG_IN_PATH%;%REDSHIFT_PLUG_IN_PATH%\extensions;%RR_REDSHIFT_BASE_LOCAL%\bin;%PATH%

But unfortunately it didn´t do the trick. Still the same error.

/Daniel

RR, Schoenberger

unread,
Sep 17, 2018, 6:17:05 AM9/17/18
to rrKn...@googlegroups.com

Hi

 

I see that you do not use a local copy cache of redshift (which is the default in RR 8)

Therefore %RR_REDSHIFT_BASE_LOCAL% is not defined in your environment.

 

Please replace the part
%RR_REDSHIFT_BASE_LOCAL%\bin

with

//sirlancelot/royalRender6/render_apps/renderer_exe/maya/win_x64/Redshift_2.6.19/bin

 

 

regards,
Holger Schönberger

 

Please use the rrKnights Tavern
or our support system for new questions.

Daniel Karlsson

unread,
Sep 17, 2018, 8:21:50 AM9/17/18
to Royal Render Knights Tavern
Hello again

Thanks for all help but still no luck though.

This is all environment variables set in the maya.bat. Please have a look and see if there´s any other errors in it.

rem  ###################  RedShift environment variables ###################
IF "%RR_REDSHIFT_BASE%" == ""  ( set "RR_REDSHIFT_BASE=%rrSharedExeDir%Redshift_%rrJobRendererVersion%" )
echo RedShift Maya plugin installation path is set to  '%RR_REDSHIFT_BASE%'
set "REDSHIFT_COREDATAPATH=%RR_REDSHIFT_BASE%"
set "REDSHIFT_COMMON_ROOT=%RR_REDSHIFT_BASE%\Plugins\Maya\Common"
set "REDSHIFT_PLUG_IN_PATH=%RR_REDSHIFT_BASE%\Plugins\Maya\%rrExeVersionMinReq%\nt-x86-64"
set "REDSHIFT_SCRIPT_PATH=%REDSHIFT_COMMON_ROOT%\scripts;%REDSHIFT_COMMON_ROOT%\scripts\override"
set "REDSHIFT_XBMLANGPATH=%REDSHIFT_COMMON_ROOT%\icons"
set "REDSHIFT_RENDER_DESC_PATH=%REDSHIFT_COMMON_ROOT%\rendererDesc"
set "MAYA_RENDER_DESC_PATH=%REDSHIFT_RENDER_DESC_PATH%;%MAYA_RENDER_DESC_PATH%"
set "MAYA_SCRIPT_PATH=%REDSHIFT_SCRIPT_PATH%;%MAYA_SCRIPT_PATH%"
set "MAYA_PLUG_IN_PATH=%REDSHIFT_PLUG_IN_PATH%;%MAYA_PLUG_IN_PATH%"
set "REDSHIFT_MAYAEXTENSIONSPATH = %REDSHIFT_PLUG_IN_PATH%\extensions"
set "PYTHONPATH  =  %REDSHIFT_COMMON_ROOT%\scripts;%PYTHONPATH%"
set "PATH  =  %REDSHIFT_PLUG_IN_PATH%;%REDSHIFT_PLUG_IN_PATH%\extensions;\\sirlancelot\royalRender6\render_apps\renderer_exe\maya\win_x64\Redshift_2.6.19\bin;%PATH%"



/Daniel

RR, Schoenberger

unread,
Sep 17, 2018, 11:04:41 AM9/17/18
to rrKn...@googlegroups.com

Hi

 

Do you know if redshift work at all on the machine without RR?

Is the required Nvidia driver version installed?

Is the required Visual Studio Redistributable Package installed?

Daniel Karlsson

unread,
Sep 18, 2018, 2:48:54 AM9/18/18
to Royal Render Knights Tavern
Hi

Yes, Redshift renders fine locally as the node I am trying this out on is also my work station. 
I had a bunch of different VSRP´s installed and I tried with the latest (2017) but still no luck. I am back to 2012 only now. What package(s) is recommended to have installed?
Regarding the driver it should definitely be up to date as it works when I am rendering locally.

Do you know what DLL's redshift is looking for, just so I can make sure everything is where it should be?

/Daniel   

RR, Schoenberger

unread,
Sep 18, 2018, 5:06:46 AM9/18/18
to rrKn...@googlegroups.com

There is an app that checks for dependencies.

I have a copy available for download: www.RoyalRender.de/download/DepencyWalker64.zip

 

Start the app on the machine, load the file

//sirlancelot/royalRender6/render_apps/renderer_exe/maya/win_x64/Redshift_2.6.19/Plugins/Maya/2017/nt-x86-64/redshift4maya.mll

 

It is a tree view, collapse the whole tree, you only need the first connection (if the DLL is not one from Redshift, then you need to expand that as well).

One Dll should definitely be missing, you have to load that one separately.

Don’t have the name in mind, but it should be in the folder \\sirlancelot\royalRender6\render_apps\renderer_exe\maya\win_x64\Redshift_2.6.19\bin

The folder we added to the PATH variable.

 

 

PS:

Has your your company a support& maintenance contract for this year? Then we can arrange a remote session.

Daniel Karlsson

unread,
Sep 18, 2018, 6:15:58 AM9/18/18
to Royal Render Knights Tavern
Hi

Good news!

Dependency walker errored on redshift-core-vc100.dll located in the bin folder of the redshift installation. But moving just that particular file to the redshift "root" (the same folder as the mll-file) didn´t solve it. Moving all the dll's in bin to that folder got it working though. 

Eventhough the path was set for the bin folder in the maya.bat it doesn´t seem to be able to load the dll's from there.

It´s rendering now so all is well but I will try and poke around some more and see if there´s something wrong on our side that´s hindering the mll to load the dll's. I will write back if I find something usefull.


Thanks for all help!

/Daniel

Daniel Karlsson

unread,
Sep 18, 2018, 8:19:41 AM9/18/18
to Royal Render Knights Tavern
Just discovered that when using a clean maya.bat file (from the rr_original folder) I just had to add 

%RR_REDSHIFT_BASE%\bin

for the PATH variable and then everything renders fine.

So now the dll's can go back into the bin folder and all is good.


/Daniel
Reply all
Reply to author
Forward
0 new messages