Results 1 to 7 of 7

Thread: The reason why mental ray for maya could not be loaded

  1. #1
    Join Date
    Oct 2016
    Posts
    34

    Default The reason why mental ray for maya could not be loaded

    Hello everyone.
    Here, I will explain why there are times when "the mentalray plugin cannot be read"

  2. #2
    Join Date
    Oct 2016
    Posts
    34

    Default

    I believe that many maya users sometimes encounter the "The specified procedure could not be found. (Mayatomr)" situation.
    Usually, this is caused by a missing "library file" or a "library file" read error.
    For example, a user can read normally after installing mentalray.
    However, when he continued to install houdini and opened Maya to try to load mentalray, "The specified procedure could not be found. (Mayatomr)" appeared.
    This is because houdini and mentalray have a "libray.dll" in their respective bin folders.

    For example:

    Mentalray's libray.dll:

    mentalray01.png
    mentalray02.png

    Houdini's libray.dll:
    houdini01.png
    houdini02.png

  3. #3
    Join Date
    Oct 2016
    Posts
    34

    Default

    Now let's load mentalray:
    mentalray04.png
    Maya shows "Cannot find the specified process"

  4. #4
    Join Date
    Oct 2016
    Posts
    34

    Default

    Now let's move houdini's "libray.dll" to somewhere else.

    For example:

    houdiniLIBRAY01.png
    houdiniLIBRAY02.png

  5. #5
    Join Date
    Oct 2016
    Posts
    34

    Default

    Now let's load mentalray again
    menralray succ.png
    Very good, can load mentalray normally
    Last edited by LIU YUAN; February 28th, 2019 at 16:31.

  6. #6
    Join Date
    Oct 2016
    Posts
    34

    Default

    So the conclusion is:
    When houdini and mentalray are installed in the computer at the same time, mentalray cannot be loaded due to the problem of "libray.dll".
    At this time, you only need to move the "libRAY.dll" in the bin folder of houdini to somewhere else (of course you can't delete it), Maya can load mentalray normally.


    I hope mentaly's team can improve the loading problem of "libray.dll"

  7. #7
    Join Date
    Jan 2009
    Location
    Berlin/Germany
    Posts
    1,147

    Default

    Quote Originally Posted by LIU YUAN View Post

    When houdini and mentalray are installed in the computer at the same time, mentalray cannot be loaded due to the problem of "libray.dll".
    Hi Liu, thanks for your investigation of the problem. Your solution, to move away one of the conflicting .dll's, will work but is also breaking one of the products.

    Generally, it is totally valid for a product to have a .dll with a name that might be used by others as well, as long is it kept in local folders and not made public to the system. In the case of Houdini, this is unfortunately not the case, because they preface the system-wide search PATH variable with the path to their local folder. This affects ALL software on the machine, and can force .dll's to be loaded in the order of the PATH environment variable. For mental ray, the system is now pointing to the Houdini version of libray.dll, unfortunately, irrespective of the correct local version.

    Ideally, global manipulations of the PATH variable should be avoided. The mental ray plugin is following that rule, it does not touch PATH at all. Instead, it uses Maya's module mechanism to set environment variables just for that session of Maya. However, a bad global PATH will still affect any Maya plugin. Presumably, the best solution is to copy the respective .dll next to the plugin .mll, so that Windows will load it from there before evaluating the PATH. We are experimenting with possible workarounds.

    Best, Steffen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •