frame: vrlink: decoder worker stops on `EAGAIN` and takes a second to restart
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- linux
调研方向
The payload names SVLCodecV4L2::MediaThread, SVLCodecV4L2::CheckStuck, SoftReset and HardReset, and the VIDIOC_DQBUF call that returns EAGAIN. This repository is a community tracker, so the source for these is not in it, and the payload does not show where to start reading. The issue asks for no specific change, so a first step would be confirming with maintainers where the code lives and whether a reproduction exists before any edit.
由索引模型根据 Issue 内容生成。
描述
This seems to happen shortly after the headset issues a stream reset, so I think there's a race between decoder reset and the decoder worker dequeueing the output buffer. Here's a log of one such event:
19:12:55.502540 Received frame outside of backtrack window. Resetting.
19:12:55.503863 SVLCodecV4L2::MediaThread: Failed to dequeue output buffer. -1 [11 Resource temporarily unavailable]
19:12:55.880790 SVLCodecV4L2::CheckStuck: > 300ms between our last forward progress. Asking remote side for a new IFrame
...
19:12:56.556407 SVLCodecV4L2::CheckStuck: > 800ms between our last forward progress. Reset.
19:12:56.556424 SVLCodecV4L2::SoftReset: Doing a hard reset.
19:12:56.556437 SVLCodecV4L2::HardReset: Called!
What happens is SVLCodecV4L2::MediaThread gets an EAGAIN on VIDIOC_DQBUF, indicating that there's nothing to dequeue. At which point it exits...
This completely stops frame decoding, the watchdog (SVLCodecV4L2::CheckStuck) notices something went wrong after 300ms (so about 300 years in frame time) and issues another stream reset. Then it waits some more time before deciding to restart the decoder (and issue yet another reset).
So, all in all, a reset can trigger a 1 second freeze.
- 主要语言
- 没有语言数据
- 星标
- 2.6k
- 派生
- 88
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ValveSoftware/SteamOS 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
ValveSoftware/SteamOS#2927 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
ValveSoftware/SteamOS#2875 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
ValveSoftware/SteamOS#2856 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repair未关闭
难度 2/5 1-3 小时 新手友好度 80/100
ValveSoftware/SteamOS#2829 ·
-
难度 1/5 1 小时以内 新手友好度 68/100
ValveSoftware/SteamOS#1743 · 1 条评论 · 2 个 reaction ·
查看 ValveSoftware/SteamOS 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 4 天内回复