OvenMediaEngine icon indicating copy to clipboard operation
OvenMediaEngine copied to clipboard

StreamWorker deadlock issue in LLHLS

Open getroot opened this issue 1 year ago • 2 comments

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.

getroot avatar Jun 03 '24 02:06 getroot

@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!

dimiden avatar Jun 11 '24 14:06 dimiden

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

mbakumenkov avatar Jun 12 '24 06:06 mbakumenkov