Skip to main content
Participant
December 17, 2021
Answered

"sbsbaker.exe --opt-descr" command returned non-zero exit status -1. And I want to know the meaning

  • December 17, 2021
  • 1 reply
  • 205 views

When I use pysbs to cook my mesh to AO.png, I use:

// code begin

batchtools.sbsbaker_ambient_occlusion_from_mesh(low_poly_path,
                                     highdef_mesh = high_poly_path,
                                     output_size=[resolution,resolution],
                                     output_format="png",
                                     output_path=texture_path,                                     
                                     average_normals ="true",
                                     output_name=node.parm("ao_suffix").eval()
                                     ).wait()
// code end
Some times, I got error:
CalledProcessError: Command '[u'C:\\Program Files\\Allegorithmic\\Substance Automation Toolkit\\sbsbaker.exe', u'--opt-descr']' returned non-zero exit status -1
 
I want to know what is exit code -1 means, but I go to SAT documentation (https://substance3d.adobe.com/documentation/sat/command-line-tools/sbsbaker/sbsbaker-command-line-options)
I got nothing with exit code of "--opt-descr"
Also nothing in "sbsbaker.exe --opt-descr -h"
 
Please help me findout that, for what reson I will get exit code -1?
Thanks
This topic has been closed for replies.
Correct answer 征5FBF

Finally I found the solution:

For some reson, some of command from sbsbaker.exe such as "sbsbaker.exe --opt-descr" depending on some windows service (Maybe GUI, or graphic driver)

When I use SAT in my remote PC (With windows 10, as server), and when no one connected to this PC, sbsbaker.exe cook failed. But it works just one connected with remote desktop! 

So, to resolve this, I disabled WDDM from server PC, and all works!

Refrence: 

https://answers.microsoft.com/en-us/windows/forum/all/remote-desktop-black-screen/63c665b5-883d-45e7-9356-f6135f89837a?page=2

1 reply

征5FBFAuthorCorrect answer
Participant
December 28, 2021

Finally I found the solution:

For some reson, some of command from sbsbaker.exe such as "sbsbaker.exe --opt-descr" depending on some windows service (Maybe GUI, or graphic driver)

When I use SAT in my remote PC (With windows 10, as server), and when no one connected to this PC, sbsbaker.exe cook failed. But it works just one connected with remote desktop! 

So, to resolve this, I disabled WDDM from server PC, and all works!

Refrence: 

https://answers.microsoft.com/en-us/windows/forum/all/remote-desktop-black-screen/63c665b5-883d-45e7-9356-f6135f89837a?page=2