Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RiantAnda opened this issue Dec 27, 2024 · 2 comments
Open

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

RiantAnda opened this issue Dec 27, 2024 · 2 comments
Labels

Comments

@RiantAnda
Copy link

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

@RiantAnda RiantAnda added the bug label Dec 27, 2024
@RiantAnda
Copy link
Author

This issue (looks like a memory leak to me), is not reproducible with 24.10 / AMF 1.4.34.

With the unreleased(?) 24.30 / AMF 1.4.36, this issue still happens, but it seems less frequent?!?

@MikhailAMD
Copy link
Collaborator

We will check but we fixed one memory-related bug. The fix should appear in the final 24.30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants