Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: 3dcrgr on 2020-09-21, 12:18:25
-
I have this Megascans workaround that you place an environment variable
ADSK_3DSMAX_PYTHON_VERSION=2
and it allows you to install Megascans in 3dsmax 2021.
Its seems to work until I fire up DR, because it keeps crashing and the Max log shows up it has something to do with Megascans.
I think this is because DR ignores the Environment Variable and fires up 3dsmax 2021 with python 3 instad of python 2..
I did remove Megascans from 3dsmax and it seemed to help and DR works as intended, but I want to keep using it.
Is there a way to fix it?
-
Environment variables are not forwarded to slaves. I'd try to setup this on a slave and to do a test DR render with that one.
Good Luck
-
Said environment variable is already set on the slave and works perfectly if I open up 3ds max.
But, when launching 3ds max via the corona DR tool it loop-crashes.
-
Is it a system env var or only set for one user? If the latter, do you run drserver as the same user which has the variable set, not as Administrator or some other user?
Other way round: if you delete the variable on the dr node and fire up Max, does it render the scene or do you get a similar crash?
You may place the attached script on the dr node into the scripts/startup directory, start DrServer and have a look at max.log. There should be a line
"* Environment variable 'ADSK_3DSMAX_PYTHON_VERSION':" and the current value to make sure it is correctly set and used.
Which Corona version do you use?
Have you tried the "usual" fix for repeatedly dr crashes (https://forum.corona-renderer.com/index.php?topic=30938.msg176338#msg176338)?
Can you show the last lines of max.log indicating the issue that leads to the crash?
Good Luck