Skip to main content
Olivier38738466byqm
Participant
June 9, 2026

Exception with overriden channel format with Substance 3D Materials SDK 9.4.3

  • June 9, 2026
  • 3 replies
  • 24 views

When I change the channel output format with OutputInstance::overrideFormat(), the rendering fails with an assert when executing Renderer::run(); then the program stops with a Memory Access Violation.

The assert is:

```

Program: substance_sse2_blend.dll

File: C:\j\workspace\engine\framework-pip...\maindet...eimplc.c

Line: 537

Expression: cnIndex<thisObj->mCNRenders.mCNCount

```

It is very easy to reproduce because the tutorial 8 “peroutputformat” also produces this exception.

This problem occurs with Substance 3D Materials SDK 9.4.3 on Windows x64.

    3 replies

    Eric Batut
    Participant
    June 10, 2026

    Thank you for the bug report, this is indeed a regression introduced in v9.3.0.

    This is now fixed internally and should reach the outside world in the near future.

    Olivier38738466byqm
    Participant
    June 10, 2026

    Hi,

    Here is a sbsar that I use to reproduce the problem.

    Please note that the assert only occurs in Debug mode.

    In Release mode, there is no message, but the program exits early: the end message “Done.” is not printed and the expected bitmap files are not generated.

    Eric Batut
    Participant
    June 10, 2026

    Hi, does this happen with a particular asset and if so, would it be possible for you to share it?
    On my machine I’m able to successfully execute the “peroutputformat” tutorial with the Autumn_Leaves.sbsar asset that is redistributed with the SDK (in the “assets” folder) so this might not be a systematic logic error but rather an asset-dependent one…

    Cheers