Skip to main content
Inspiring
June 7, 2022
Question

sbscooker dependency issues (SAT 11.3.3)

  • June 7, 2022
  • 1 reply
  • 183 views

I've been having an issue with the sbscooker (SAT 11.3.3). While processing sbs files with SAT the sbs file can get into a state where the sbscooker is erroring out on the file and I've narrowed it down to two nodes, the "Ambient Occlusion (HBAO)" and the "switch_grayscale" nodes. 

 

When I try to convert this graph to an sbsar, I get the following error:

 

% sbscooker broken.sbs 
[WARNING][Cooker]Can't find subgraph:
   Subgraph Url: pkg:///switch_grayscale?dependency=1446671787
   From Graph: pkg:///221749_layer0_axf_to_pbr?dependency=1446673841 [2]
[ERROR][SBSCooker]Can't find subgraph:
   Subgraph Url: pkg:///switch_grayscale?dependency=1446671787
   From Graph: pkg:///221749_layer0_axf_to_pbr?dependency=1446673841
[ERROR][SBSCooker]Cooking fail [Error 13]

 

Using --includes or --alias and pointing to the "resources/packages" folder doesn't help.

However, if I open up sbs file in a text editor and replace the blend switch uid (and anywhere else the id is referenced) to 1299239600, the sbscooker runs fine on the file (using any other id number besides1299239600 fails).

 

broken.sbs

 

<dependency>
    <filename v="sbs://blend_switch.sbs"/>
    <uid v="1446671787"/>
    <type v="package"/>
    <fileUID v="0"/>
    <versionUID v="0"/>
</dependency>
...
<path v="pkg:///switch_grayscale?dependency=1446671787"/>

 

fixed.sbs

 

<dependency>
    <filename v="sbs://blend_switch.sbs"/>
    <uid v="1299239600"/>
    <type v="package"/>
    <fileUID v="0"/>
    <versionUID v="0"/>
</dependency>
...
<path v="pkg:///switch_grayscale?dependency=1299239600"/>
% sbscooker fixed.sbs -vv
[INFO][SBSCooker]Substance Cooker 10.1.0 commit 0x77784f28 (Feb  9 2022)
[INFO][SBSCooker]Loading...
[INFO][SBSCooker]Flattening...
[INFO][SBSCooker]Front End...
[INFO][SBSCooker]Back End...
[INFO][SBSCooker]Writing file '/private/tmp/fixed.sbsar'...
[INFO][SBSCooker]Nb files processed: 1/1 (100%)

 

 If I remove the "Ambient Occlusion (HBAO)" node I don't get the issue. If I open up the broken.sbs file in designer and save a copy of the file, the cooker works on the new file.

This issue happens to a few of us on my team, while for at least one other person they don't have the same problem with the sbscooker. We're developing on Mac, same SAT version and other than that, I cannot figure out what's going on. Any help with this would be greatly appreciated. Thank you!

 

This topic has been closed for replies.

1 reply

Inspiring
June 16, 2022

Seems like the issue occurs when symlinking the Substance Automation Toolkit in our /Applications folder. A few of us on our team were using symlinks to point to different versions of SAT when testing locally.  Those on our team who didn't use a symlink didn't get this issue.  Though we can workaround it now, would still be good to have the option to easily switch between different versions of SAT and it's odd that having the SAT in a symlinked folder would cause dependency issues because all of the paths to SAT should still be the same as without the symlink. Hopefully someone from Adobe can take a look.  Thanks.