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 crash #637

Closed
wants to merge 2 commits into from
Closed

Fix crash #637

wants to merge 2 commits into from

Conversation

linsang21
Copy link
Contributor

@linsang21 linsang21 commented Jan 31, 2024

ℹ️ Description

Fix crash due to #635 - since we move the logic of cleaning up from callback to stop API, we will need to update the status of sharing as well, not updating it would mess up the next time sharing and cause crash.

Issue #, if available

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
    • README update
    • CHANGELOG update
    • guides update
  • This change requires a dependency update
    • Amazon Chime SDK Media
    • Other (update corresponding legal documents)

🧪 How Has This Been Tested?

QA tested

Additional Manual Test

  • Pause and resume remote video
  • Switch local camera
  • Rotate screen back and forth

📱 Screenshots, if available

provide screenshots/video record if there's a UI change in demo app

✅ Checklist

Integration validation (required before release)

  • Unit tests pass
  • Build SDK against simulator with release options
  • Build SDK against device with release options
  • Build SDK against simulator with debug options
  • Build SDK against device with debug options
  • Test Demo against simulator with SDK (debug build) in workspace
  • Test Demo against device with SDK (debug build) in workspace
  • Test DemoObjC against simulator with SDK (debug build) in workspace
  • Test DemoObjC against device with SDK (debug build) in workspace
  • Test Demo against simulator with SDK.framework (release build)
  • Test Demo against device with SDK.framework (release build)
  • Test DemoObjC against simulator with SDK.framework (release build)
  • Test DemoObjC against device with SDK.framework (release build)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

@ltrung ltrung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update the PR description with why the crash can happens and how this is a fix?

@georgezy-amzn
Copy link
Collaborator

My understanding is videoClientDidStop() will be called when videoClient.stop() is called, do you know if this happens sync or async? If it's async, there is a chance the logic in videoClientDidStop() will not be called, because videoClient.delegate is set to nil in parallel, so that contentShareDidStop will not be received by observers. If it's sync, I don't think isSharing = false is needed in stopVideoClient().

@linsang21 linsang21 closed this Jan 31, 2024
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.

5 participants