anderslanglands / alShaders2

BSD 3-Clause "New" or "Revised" License
75 stars 38 forks source link

Crash with paralell init and multiple Cryptomatte shaders in scene #30

Closed samhodge closed 6 years ago

samhodge commented 6 years ago

Please see:

https://gist.github.com/samhodge/86173d3797f3ad77fa60e93fd4990a94

crash is

`****

Will not happen everytime indicating it is a concurrency issue.

jonahfriedman commented 6 years ago

Thanks, I have reproduced the issue.

I notice that your scene contains multiple Cryptomatte shaders, and they are not being used as AOV shaders. If i get rid of them all except one, and plug it into only AOV shaders, it works. This isn't quite the intended use case - Is there a reason you're using it this way?

It probably is possible to fix the race condition.

jonahfriedman commented 6 years ago

Furthermore it's caused by having more than one Cryptomatte in the scene at all, which can happen by accident in a lot of ways, so it does need fixing.

jonahfriedman commented 6 years ago

This has been fixed and will be in the next release.