AirenSoft / OvenMediaEngine

OvenMediaEngine (OME) is a Sub-Second Latency Live Streaming Server with Large-Scale and High-Definition. #WebRTC #LLHLS
https://OvenMediaEngine.com/ome
GNU Affero General Public License v3.0
2.48k stars 1.05k forks source link

StreamWorker deadlock issue in LLHLS #1633

Open getroot opened 1 month ago

getroot commented 1 month ago

Discussed in https://github.com/AirenSoft/OvenMediaEngine/discussions/1627

Originally posted by **mbakumenkov** May 29, 2024 Recently I have the message in server logs: `[2024-05-28 17:23:31.225] W [AW-LLHLS0:19] ManagedQueue | managed_queue.h:444 | [4051] mngq:v=#default#live:s=stream:p=pub:n=streamworker_llhls size has exceeded the threshold: queue: 937, threshold: 500, peak: 937` All outgoing traffic from server just got stopped (dropped to zero), and queue size continue rising until I restarted ome docker container. Please help me understand what could be wrong and how this can be avoided.
dimiden commented 3 weeks ago

@mbakumenkov I discovered a scenario where a deadlock could occur at an extremely low probability and have fixed and committed it. You can use the airensoft/ovenmediaengine:dev image before the next version is released. Thank you!

mbakumenkov commented 3 weeks ago

Thank you, @dimiden for your work! I'll try out the new version as soon as I can