DiligentGraphics / DiligentTools

Utilities built on top of core module
Apache License 2.0
116 stars 71 forks source link

RenderStatePackager memory related random crash on MacOS #154

Closed speedym closed 2 years ago

speedym commented 2 years ago

After upgrading to latest, RenderStatePackager started randomly producing SIGSEGV on MacOS due to double free of a object.

% ./start.sh Diligent Engine: Info: Purged 0 deleted objects from the sampler registry

% ./start.sh Diligent Engine: Info: Purged 0 deleted objects from the sampler registry

% ./start.sh Diligent-RenderStatePackager_mac(40656,0x70000c308000) malloc: Double free of object 0x7fb7dea04140 ./start.sh: line 2: 40656 Segmentation fault: 11 ./Diligent-RenderStatePackager_mac --metal_ios -o xxxx.bin -i xxxx1.json -i xxxx2.json -i xxxx3.json

I'm sending a repro case via email.

TheMostDiligent commented 2 years ago

Should be fixed in https://github.com/DiligentGraphics/DiligentCore/commit/497153feff118f090a55e6ce712c1b324160aab7 and https://github.com/DiligentGraphics/DiligentTools/commit/73a53a316e4ca7b30d1d5ac491fcc5170b4a88e9 Please feel free to reopen the issue if the problem happens again.