Problem with bat file

Hi, I need to create a different XSIBatch.bat file to be able to load special libraries.

So I did a new XSBatch2 deadline plugin and set the executable path to my new XSIBatch2.bat file I have created and put in my Softimage install folder, next to the original XSIBatch.bat file.

When I run the .bat file on my machine, I get the desired result, the problem is when I call it though Deadline Slave. The Slave returns this error:
Scheduler Thread - An error occurred in StartJob(): Error in RenderExecutable(): “c:\program files\autodesk\softimage 2012.sap\application\bin\xsibatch2.bat” does not have a valid DOS signature value, so is not a PE or not a dll/exe

I have tried redoing the .bat file by starting from the original one, I tried create a new one from scratch. I always get the same error.

Any idea How I could fix this?

Hey Sylvain,

The quick fix is to disable the enforcement of 32 or 64 bit rendering. This can be done by setting the Build option to “none”. The error is occurring because the bitness check is failing on the batch file.

We workaround this when the regular xsibatch.bat file is used because we have code that replaces “xsibatch.bat” with “xsibatch.exe” when doing the bitness check. So if you want to keep the bitness check working, you can modfiy the xsibatch plugin for Deadline to handle this special case too.

Cheers,

  • Ryan

Thanks Ryan, I have commented most of the 32bit/64bit code in the plugin and got it to work.
I I understand, I could also create a copy of the xsiBatch.exe that matches the name of my new bat file to get it to work with the 32bit/64bit check?

Not That I need too, 32 bit is long gone these days.

Thanks for the help

That wouldn’t work without modifying the xsibatch plugin. The code we have explicitly looks for xsibatch.bat, so it wouldn’t recognize xsibatch2.bat as anything special.

Cheers,

  • Ryan