using npp on multiple stream

i’ve created a project which uses multiple stream. in the stream i call nppdilate and npperode. i connect to multiple cameras(every camera = 1 cuda stream) and trigger the operation everytime new frame coming in.

My issue is, the program crashed after it runs for a few sc, without error. no specific error return. what could be the problem?

sorry correction, one camera = one cuda stream.

i think i found some topic similar to my issues.

https://devtalk.nvidia.com/default/topic/534966/can-npp-be-safely-used-in-multi-threaded-code-/

guess, i’ll just have to wait.