For anyone googling this error, this can also happen if a formerly synchronous function is suddenly made asynchronous, without the corresponding await in the caller. If the result was then sent via IPC, the serializer may not be able to handle this.
I'm facing a problem that although I can use monocular camera and OPENCV to get a cube's rotation angle (pitch yaw roll), but it's get nearly 2 degrees of error per 10 degrees. I use solvePnP to get rvec and tvec, then I use rodrigues to get rotation Matrix, next I get Euler angle from rotation M...