-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Segmentation Fault with Intel Arc A380 (jellyfin/jellyfin:10.8.10 container) #251
Comments
Gave the latest jellyfin-ffmpeg6_6.0-3-jammy_amd64.deb ❌root@compute (23-06-05T:54Z) ~> dpkg -i jellyfin-ffmpeg6_6.0-3-jammy_amd64.deb
(Reading database ... 121929 files and directories currently installed.)
Preparing to unpack jellyfin-ffmpeg6_6.0-3-jammy_amd64.deb ...
Unpacking jellyfin-ffmpeg6 (6.0-3-jammy) over (6.0-3-jammy) ...
Setting up jellyfin-ffmpeg6 (6.0-3-jammy) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
root@compute (23-06-05T:54Z) ~> cd /usr/lib/jellyfin-ffmpeg/
root@compute (23-06-05T:55Z) .../jellyfin-ffmpeg> ./ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va
ffmpeg version 6.0-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
[AVHWDeviceContext @ 0x55fe9c2854c0] libva: VA-API version 1.18.0
[AVHWDeviceContext @ 0x55fe9c2854c0] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x55fe9c2854c0] libva: Found init function __vaDriverInit_1_18
double free or corruption (!prev)
Aborted (core dumped) |
@AWildBeard Please refer to these comments:
|
Thanks for getting back to me! I'll see if I can get away with building my own ffmpeg off of #191 |
1, modify 2, build jellyfin-ffmpeg deb package
3, install the deb package into the container |
I actually figured this out in parallel to you commenting! Doing the builds now! :D Thanks for commenting the procedure though! |
Got it built. Runs great on both the Ubuntu Server 22.04 LTS w/ HWE kernel (don't plan to downgrade back to normal stable now lol) host & in container For anyone that reads this in the future because they too want A380 on LTS Ubuntu with Jellyfin-ffmpeg I'll document the one issue I had and it's fix; Ran into a small issue with cloning a few of the "larger" git repos used. Namely;
AFAICT it's just because these are big repos or have lots of history/objects. My issue cloning these repos could be due to any number of reasons; Killer WiFi card, doing this in WSL2 + Docker Desktop + Windows 11, Running Kubernetes in Docker Desktop, take your pick. My target deployment infra is not WSL2, etc for the record... Errorerror: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
error: 1349 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output |
Just to be sure - this won't be an issue on 24.04, but until then the custom built debian package is the way to go? |
Intel Arc will be supported by 24.04 LTS out of the box. |
Describe The Bug
FFmpeg and vainfo within the Jellyfin container 10.8.10 segmentation fault immediately after
init function __vaDriverInit_1_18
.FFmpeg and vainfo on the Ubuntu Server LTS host do not segfault and correctly recognize the A380 (as far as I can tell).
Steps To Reproduce
5.1.3-2-bullseye
packageExpected Behavior
jellyfin-ffmpeg properly execute without a segmentation fault
System:
5.1.3-2-bullseye
MediaInfo
N/A, will not process or open media files at all.
FFmpeg Logs
In container jellyfin/jellyfin:10.8.10 :
FFmpeg default in container ❌
vainfo default in container ❌
FFmpeg 5.1.3-2-bullseye ❌
Also because I'm an absolute monkey, I tried this against
/dev/dri/card0
for the giggles I guessFFmpeg 5.1.3-2-bullseye with -init_hw_device_vaapi=va:/dev/dri/card0 ❌
On host:
FFmpeg 4.4.2-0ubuntu0.22.04.1+esm1 ✅
vainfo ✅
Additional Context
In container jellyfin/jellyfin:10.8.10 :
User groups
/dev/dri
The
video
group is44
, therender
group is109
On host:
Kernel
GPU Hardware Info
GuC & HuC
/dev/dri
The text was updated successfully, but these errors were encountered: