Hello all,
I have just recently gotten to the part in the pipe where I have to launch Maya 2022 from a batch file.
So the process looks like this:
- Start the toolhub
- Click the Maya button
- Launch the maya bat file via subprocess
- Within the bat file set the env params and then launch Maya
The problem is that Maya 2022 is crashing without warning or crash log anywhere.
Maya 2019 boots fine and Maya 2020 I needed to change a few bits a pieces for it to boot but it boots fine now but 2022 is being very fussy.
If I launch the bat file from a regular commandline window it boots a-ok. I even have the subprocess call running a new console window and still no dice.
Here is my call & bat env settings:
version==2022
splash=path to splash img
subprocess.Popen([boot_file, exe, version, splash], creationflags=subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP)
batchfile:
set QT_PREFERRED_BINDING=PySide2
set QT_QPA_PLATFORM_PLUGIN_PATH=C:\Program Files\Autodesk\Maya2022\plugins\platforms
set PYTHONPATH=C:\Program Files\Autodesk\Maya%VERSION%\Python37\Lib\site-packages;C:\Program Files\Autodesk\Maya%VERSION%\Python37\DLLs;C:\Program Files\Autodesk\Maya%VERSION%;%PYTHONPATH%
set PYTHONHOME=C:\Program Files\Autodesk\Maya%VERSION%\bin
start "" "C:\Program Files\Autodesk\Maya%VERSION%\bin\maya.exe"
Any help would be much appreciated :)
// Ben