Skip to content
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

fix: Fix a potential crash in AgoraVideoView when the app is force quit #2055

Merged

Conversation

littleGnAl
Copy link
Contributor

If an AgoraVideoView is displayed and a video frame callback is received while the app is quitting, there is a potential crash risk due to access to invalid resources(invalid adresses) in the callback. To prevent this, we should ensure that resources are properly cleaned up in the destructor.

This logic is already handled in the Windows implementation, so in this PR, we are updating it for Android, iOS, and macOS only.

@littleGnAl littleGnAl force-pushed the littlegnal/fix-agoravideoview-crash-when-app-terminate branch from 4ca9f3e to bc18e71 Compare October 25, 2024 07:01
@littleGnAl littleGnAl merged commit 98e12d7 into main Oct 25, 2024
36 checks passed
@littleGnAl littleGnAl deleted the littlegnal/fix-agoravideoview-crash-when-app-terminate branch October 25, 2024 08:04
peilinok pushed a commit that referenced this pull request Dec 6, 2024
…it (#2055)

If an `AgoraVideoView` is displayed and a video frame callback is
received while the app is quitting, there is a potential crash risk due
to access to invalid resources(invalid adresses) in the callback. To
prevent this, we should ensure that resources are properly cleaned up in
the destructor.

This logic is already handled in the Windows implementation, so in this
PR, we are updating it for Android, iOS, and macOS only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant