I reverted the previous changes and I checked the issue carefully, and found the cause of the issue is the status of fences for managing copy texture.
We needed to consider the error processing when the fence is unintended status. The PR changes not using the texture if the fence is failed to reset its signal.
This PR below didn't improve the crash issue. https://github.com/Unity-Technologies/com.unity.webrtc/pull/867
I reverted the previous changes and I checked the issue carefully, and found the cause of the issue is the status of fences for managing copy texture.
We needed to consider the error processing when the fence is unintended status. The PR changes not using the texture if the fence is failed to reset its signal.