Slicer crashes when I try to record 2 videos at the same time

Hi,

I am trying to record 2 videos at the same time using the python APIs.
If I record just one video, the recording works properly, but if I immediatelly start a second recording Slicer crashes.
However if I wait some seconds between starting the first and the second recording and then I wait some seconds between stopping the first and the second recording, both the recordings are completed properly and Slicer doesn’t crash.

Do you know how to solve this issue?

Thank you

Can you provide a simplest possible Python script that reproduces the issue?