Communication
Communication copied to clipboard
[iOS] Simulator crash when there is a user join with camera on randomly
Describe the bug
1.Join in a group call through simulator
2.Use web/app to join the same group call with camera on as a new participant
3.Find the SwiftUI app could crash in AVMakeRectWithAspectRatioFill(CGSize,int)
function
Expected behavior Simulator shouldn't crash
Screenshots
iOS SDK version:
- 2.0.1-beta 1 Xcode version:
- 13.1 Simulator version:
- iOS 15
https://skype.visualstudio.com/SPOOL/_workitems/edit/2629990
Did some debugging and found the crash issues is because of the rendererView is created by scalingMode: .crop
with the SwiftUI env. CallingSDK testing app use .fit mode, so their app didn't crash. But after changing the testing app scalingMode into crop
, it eventually crashed at same place. (See the attachment pic)
If we changed our composite rendererView creation to non-option mode (which make it default to be .fit mode), there is no more composite crash in simulator any more. But the view may not fit the designer requirement.