-
-
Notifications
You must be signed in to change notification settings - Fork 943
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
free(): invalid pointer with ffmpeg 5.0 #63
Comments
Just as a test I tried forcing the old libraries in the generated CMakeCache.txt:
This stops the crash but causes other problems. I'm not sure if there is a proper way to force cmake to find non-default libraries. I tried changing this in the CMakeList.txt but it didn't work: |
Proper solution found, supply the following cmake cache entries as arguments:
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
Recently on Arch, ffmpeg was updated from v4 to v5
This updated the libraries used to build sunshine:
Now sunshine crashes during initialisation with the following error when avcodec_receive_packet() is called:
free(): invalid pointer
here is a gdb stack trace with some logs:
Either there is a bug in ffmpeg and it is trying to free memory it shouldn't, or there is something about the way util::safe_ptr works that it doesn't like.
Expected Behavior
Starts up without crashing
Additional Context
The same thing occurs event of the loki repo.
Sunshine Host Operating System and Version
Arch Linux
Architecture
64-bit
Sunshine Version
master/0.12.0
GPU Type
NVidia
GPU Model
Geforce RTX 3070
GPU Driver/Mesa Version
510.54
Capture Method (Linux Only)
NvFBC
The text was updated successfully, but these errors were encountered: