Skip to content

Optimizer: crash when overflowing #6260

@jeroenbakker-atmind

Description

@jeroenbakker-atmind

Not sure this is related to #5753.
Up stream report: https://projects.blender.org/blender/blender/issues/144614

Optimizing 48744-0x000001d18b9e86a0-0x81098.dmp crashes. This is related to the number of object ids it requires during optimization.

spirv-opt.exe 48744-0x000001d18b9e86a0-0x81098.dmp -O -o opt.spv 

To fix this the next commands are needed

spirv-opt.exe 48744-0x000001d18b9e86a0-0x81098.dmp --max-id-bound=99999999 -O -o bad.spv --compact-ids

However as we use shaderc as a frontend we don't have access to these parameters.

I would expect that the optimizer would not crash but would be able to normally exit. This way shaderc could be able to report this and Blender would be able to replace the shader with a default.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions