okay I have the dump file now, but it says its 0 kb?
Tried reinstalling both maya and vray, but the problem still persists.
So now it’s actually broken permanently.
If I add a render element with mel I get this error message just before it crashes:
// Warning: file: C:\Program Files\Autodesk\Maya2013\vray\scripts\vrayInit.mel line 218: New procedure definition for “vrayRenderElements” has a different argument list and/or return type. // MayaCrashLog130518.2141.zip (152 Bytes)
Tried to uninstall everything, cleaning out every related folder I could find. But Vray or maya must keep something somewhere because it still crashes ?
Honestly I think my only alternative is to wipe the computer. Which is ridiculous.
Just a wild guess - do you have more than one versions of Maya on your machine? Maybe there are some maya files that are shared between the versions or something of the sort that keep some information. How exactly did you start running your script when you first started having these problems?
Can you try to uninstall V-Ray and then manually delete the folder “C:\Program Files\Autodesk\Maya2013\vray” in case anything remains there by mistake. Also, check the MAYA_SCRIPT_PATH in case it contains a path to old scripts.
The vray folder disappears when I uninstall.
How do I check the MAYA_SCRIPT_PATH ? Is it like an environment variable, because there is nothing called MAYA_SCRIPT_PATH.
Ok, next question: is it possible that your script (or some other non-V-Ray script) defines a function ‘vrayRenderElements’ so that it is duplicated with the one from the V-Ray scripts?
Finally! I solved the crashing!
Turns out it was a different script that was the cause.
It’s a mel script to assign a few render elements. But just having it in the script folder would crash maya when I select the render elements tab.
this is the script:
Now the question is just, why is it making maya crash? is it the name vrayRenderElements ?
because this only happens when I source the script, not if I run the commands from within maya.
Also, for anyone who might see this thread in the future.
The reason it crashes is because of the name “vrayRenderElements”
My best guess is that there’s another script somewhere that shares the name, a native vray one and that’s why it crashes? Simply renaming it to something else works!
Generally it is not a good idea to name any functions or global variables vrayXXX.
Because it could cause name collisions and at least strange bugs.
Now or in the future (if it happens that we’ve started to use the same name as you).