Skip to content
Discussion options

You must be logged in to vote

This behavior has been reported before with the same symptoms: after a detect resolution change, existing /dev/shm/<camera>_frame* segments remain at the old size, so reads misalign and the camera logs Unable to read frames from ffmpeg process indefinitely while the detect ffmpeg process stays healthy.
(1), (2)

The identified code path is the same one you point to — the frame slots are pre-created per camera:

for i in range(count):
    frame_size = config.frame_shape_yuv[0] * config.frame_shape_yuv[1]
    self.frame_manager.create(f"{config.name}_frame{i}", frame_size)

(2)

and create() falls back to opening the existing segment without validating its size:

try:
    shm = UntrackedSharedMe…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hawkeye217
Comment options

@nagisa
Comment options

@hawkeye217
Comment options

@nagisa
Comment options

Answer selected by hawkeye217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment