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

Circle App Streaming issue: Frames drop heavily over time, and the problem progressively worsens. #6803

Closed
AKASH-926 opened this issue Nov 18, 2024 · 7 comments · May be fixed by ant-media/StreamApp#520
Assignees

Comments

@AKASH-926
Copy link

Short description

During live streaming from the Circle app, frames drop heavily after approx 30-40 minutes, causing the stream to become increasingly laggy.

Environment

  • Operating system and version: Windows 11: 23H2
  • Ant Media Server version: Enterprise Edition 2.11.3 20240906_0602
  • Browser name and version: Chrome 130.0.6723.117

Steps to reproduce

  1. In circle app code base replace existing screen share functionality with webRTCAdaptor.switchDesktopWithCamera(publishStreamId)
  2. Go To circle app join a room and share a screen with camera with a screen displaying some moving gifs.
    3.Wait for approx 30-40 mins streams starts lagging and it increases over the time and finally streaming stops saying 'reconnecting'.

Expected behavior

Streaming should continue without any frame drops.

Actual behavior

Streaming becomes laggy and frames drop heavily over the time.

Logs

https://pastebin.com/R2UxLUSy

Ask your questions on Ant Media Github Discussions

@muratugureminoglu
Copy link
Collaborator

Agent Mohit Dubey linked Freshdesk ticket 138662 for this issue.

@IVEN2024
Copy link

IVEN2024 commented Dec 2, 2024

After 15 min , it crash my server , server restart , only 4 participent and a screen share

@burak-58
Copy link
Contributor

burak-58 commented Dec 2, 2024

Hi @IVEN2024,
This issue a bit different than what you mentioned. Please create a separete issue. Also please fill the issue template.

@mustafaboleken
Copy link
Contributor

I testes the scenarios with remote server, local server and peer-to-peer modes and the issue is after some time, jitter increases and the fps drops significantly.

@burak-58
Copy link
Contributor

We think that, this issue is related with this one:
#6887

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Ant Media Server Dec 23, 2024
@mekya mekya reopened this Jan 6, 2025
@mekya mekya assigned mekya and unassigned mustafaboleken Jan 6, 2025
@mekya mekya moved this from ✅ Done to 🏗 In progress in Ant Media Server Jan 6, 2025
@mekya mekya moved this from 🏗 In progress to After sprint in Ant Media Server Jan 12, 2025
@mekya
Copy link
Contributor

mekya commented Jan 12, 2025

Hi Guys,
Let me give you the good news.

Firstly, here is the quick story

  1. I've improved the canvas performance because I see 1 fps after 30-40mins in circle. Then I start to see the fps is about 120.
  2. I've made the test again for a long time and the problem was still there. I thought that it's not about canvas, I check the performance tab. I paid attention that "Scripting" takes most of the time.
  3. I then tried with the latest master which includes performance improvements. Thanks to
    @burak-58 @mustafaboleken . Then it works. Check the recorded video after 1 hour. It's working smoothly and playing smoothly.

In this way, I've confirmed that the older version has the fps issue and latest master version has resolved the fps issue by performance improvement.

Then just use the latest circle master branch on your end.

Lesson I've learned is that "Scripting" may even cause rendering problems that it seems unrelated first.

I think then this issue can be closable @burak-58

Cheers
Oguz

@burak-58
Copy link
Contributor

Thank you @mekya for your effort on testing and figuring out the issue. And also for verifying that the latest improvements in Circle are working well.

@github-project-automation github-project-automation bot moved this from After sprint to ✅ Done in Ant Media Server Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

7 participants