-
Notifications
You must be signed in to change notification settings - Fork 22
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
VideoView initializes twice causing app to crash (since iOS 18) #280
Comments
Hi @PZoff Thanks for reaching out. Any chance you are running the Video app on a simulator? We also observed this exception on iOS 18 but only on the simulators. The |
Hi @bobiechen-twilio, we have not tried this on a simulator - this is happening on physical devices, even in the app installed via app store. I have built the app from XCode locally in order to provide the error logs above. Thank you for looking into it! |
@PZoff Thanks for the update. My apologies - I was actually running on an iOS 17 device and thought it was the simulator architecture issue but then I ran into the same exception when running on the iOS 18 device. We will keep you posted. |
@bobiechen-twilio are there any updates regarding this? |
Same issue, tried on iPad & iPhone running iOS 18. Crashes every single time. This is not new, I noticed that in version 4.4.0. |
Same issue. Any updates? |
I faced the same issue and found a solution. Follow the steps below to resolve the crashes: Remove TVIVideoView
Let me know if you need any further assistance! |
Hi @sherwinstar, please follow the steps I mentioned. |
I got the solution, Please follow steps, I mentioned. |
If you build using Xcode 15.x the crash doesn't happen. Even on devices running iOS 18. |
@vinnypatel Unfortunately, the solution you outlined does not work. This is because in our case, the TVIVideoView is already initialized programatically as per the code snippet provided earlier. |
I am facing the same issue for the app built using Xcode 16.0 . The app does not crash when built using Xcode 15.x. |
@vinnypatel Thanks so much. Your solution saves me. |
Same issue here, immediate crash when the video call view loads in iOS 18 and Xcode 16. Only came up because iOS 18 broke another part of our app... 🙄 Anyway, can confirm @vinnypatel solution works -- essentially remove the TVIVideoView elements from the designer and add them programmatically. I added them in
Basically replacing IBOutlet references @PZoff you might try allocating your VideoView instances in |
Video iOS 5.8.4 has been released that addresses this issue. |
Description
Our chat app that has a video call feature. Since iOS 18 the app crashes if one tries to start the call, apparently because the VideoView from SDK is initializing twice for unknown reasons. There are no crashes on devices which run on older iOS versions.
Steps to Reproduce
Code
Expected Behavior
VideoView should only initialize once per its initializer call.
Actual Behavior
VideoView apparently initializes twice which causes the app to crash.
Reproduces How Often
On iOS 18 it happens always.
On iOS < 18 we have no records of it happening.
Logs
Versions
Video iOS SDK
5.8.3 via Swift Package Manager
Xcode
16.0
iOS Version
18.1
iOS Device
iPhone 13
The text was updated successfully, but these errors were encountered: