OSL fails assert when updating shader group after executing shader when using BatchedRendererServices #1800
Labels
batch shading
Specific to the SIMD batch shading back end
bug
Crash or wrong behavior of an existing feature.
In this minimal sample the following assert triggers at the end of main() but in my production code it triggered at the second call to ShaderGroupBegin(). When compiling OSL in Release mode instead of Debug mode, there's seemingly no issues.
Problem
/src/liboslexec/instance.cpp:75: ~ShaderInstance: Assertion 'm_instops.size() == 0 && m_instargs.size() == 0' failed.
Steps to Reproduce
g++ -g test.cpp -loslcomp -loslexec -loslnoise -loslquery -lOpenImageIO -lOpenImageIO_Util
./a.out
Versions
The text was updated successfully, but these errors were encountered: