-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR:TwilioVideo:[Platform]:Fatal runtime capture error #153
Comments
Martin, Thanks for reporting this issue and with such detailed information. I will start digging into this to see if I can reproduce it and see if there is something that we can do internally to alleviate this from happening. I'll be in touch! Ryan |
@MBuLoft1 Based the on the descriptions it seems like the AVCaptureSession created by Video SDK when you connected to a Room (with video track added), is conflicting with the other one in your app. To solve this problem, can you delete the TVILocalVideoTrack Here is code snippet to clean up camera after disconnect -
Regards, |
Thank you for your answer, but it is something that I had tried before (and I have now retried it) but it generates the same error. |
@MBuLoft1 Can you make sure that
On Xcode, you can check Memory Graph Hierarchy to confirm if the Twilio Video SDKobjects are cleaned up properly and the AVACpatureSession is not being held after the clean up - If this does not help, is it possible for you to share the code which could reproduce the problem reported? Thanks, |
Hi, I think I encounter the same issue and by adding self.cameraCapturer?.stopCapture() just before make it nil resolve the problem in my case. |
I was having a similar issue while switching out camera handlers as well, since in my app I wanted to show the user a preview of his camera before he started video chatting. Each of these were in two separate two View Controllers. I was using https://github.com/NextLevel/NextLevel to show the preview and then I had a gesture where I would tap the view and go to the actual video chatting controller and initialize the As for the problem at hand, I'm pretty sure that the Twilio camera session is not being properly stopped or instantly and maybe needs some refinement, because I could instantly switch from NextLevel's camera to Twilio's, however, the inverse was not possible. |
@serjooo I am sorry for the inconvenience. Looking at your code, it seems |
@ptankTwilio I switched the |
Apologies for not following up on this. Closing this old ticket, as we shipped new VideoSource APIs. Please reopen this or open a new ticket if you run into an issue with latest information. |
Context :
The Problem :
The Workaround :
The Question :
Thank you,
Martin
Example of connecting to the room with a local track to which as renderer is attached
Example of disconnecting from the room. If we do just step (a) and not steps (b,c), we get the said error. If we do (a, b, c), we do not get the error.
The text was updated successfully, but these errors were encountered: