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

Fixes deadlock on publish track #604

Merged
merged 3 commits into from
Feb 22, 2025

Conversation

jeankruger
Copy link
Contributor

During a publish track, if the room is leaved before the the track is published, we can't publish a track anymore. Let's abord the pending publish track on leave event and when the websocket is disconnected

During a publish track, if the room is leaved before the the track is published, we can't publish a track anymore. Let's abord the pending publish track on leave event and when the websocket is disconnected
Copy link

changeset-bot bot commented Feb 20, 2025

🦋 Changeset detected

Latest commit: c3052ae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
client-sdk-android Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@davidliu davidliu left a comment

Choose a reason for hiding this comment

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

LGTM, can you add a changeset and run spotless? Instructions found here:

https://github.com/livekit/client-sdk-android/blob/main/CONTRIBUTING.md

Also, have you agreed to our CLA? Usually a bot checks for this, but seems like it didn't trigger?

@jeankruger
Copy link
Contributor Author

Thanks for the approval. No I didn't have any link to sign the CLA. Is it possible to sign it manually ?

@CLAassistant
Copy link

CLAassistant commented Feb 20, 2025

CLA assistant check
All committers have signed the CLA.

@davidliu
Copy link
Contributor

davidliu commented Feb 21, 2025

@jeankruger looks like there was a hiccup with the settings on our end, try the link from the bot now.

@jeankruger
Copy link
Contributor Author

Thanks for your help, it's done.

@davidliu davidliu merged commit 695a4a7 into livekit:main Feb 22, 2025
2 checks passed
@davidliu davidliu mentioned this pull request Feb 22, 2025
@davidliu
Copy link
Contributor

Thanks for the PR!

@kasemj
Copy link

kasemj commented Feb 25, 2025

Deadlock is still happening when you try to enable or disable a track.

Here is how to reproduce it:

  1. Trigger reconnecting by going airplane mode (wifi off as well).
  2. Toggle a track (i.e. camera or microphone)
  3. Switch off airplane mode (get connected to the internet)
  4. Engine reconnects successfully.
  5. Toggle a track setTrackEnabled is stuck waiting for previous pubLock to release.

This is pretty bad because there is no way to clear the deadlock forcing an app restart to resolve the issue.

@davidliu
Copy link
Contributor

@kasemj is this on 2.13.3?

@kasemj
Copy link

kasemj commented Feb 26, 2025

@kasemj is this on 2.13.3?

Yes unfortunately, on the latest version 2.13.3. I was hoping this PR fixed the issue but I guess it didn’t address this particular scenario.

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.

4 participants