Skip to content

[Bug]: ffmpeg crash when preanalysis is enabled #524

Open
@RiantAnda

Description

Describe the bug
When I run ffmpeg with any AMF video encoder with preanalysis enabled, ffmpeg crashes with a core dump.

To Reproduce
Run
ffmpeg -loglevel debug -hide_banner -f lavfi -i nullsrc=s=1280x720:d=300 -vf "geq=random(1)*255:128:128" -c:v h264_amf -pix_fmt nv12 -preanalysis true $(date +%Y-%m-%d_%H-%M-%S).mkv
This command crashes nearly each time at different times in the encoding process.
If it doesn't crash the first time, run a few times more.

Setup:

  • Driver Version: 24.20 Ubuntu 24.04 / AMF 1.4.35
  • GPU: RX 7900 XTX
  • FFMPEG: 7.1 and latest master

Debug Log:
No useful debug info, ffmpeg crashes with messages like:
malloc(): unsorted double linked list corrupted
or
free(): double free detected in tcache 2

This could be related to:
#518

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions