Hi, a snap of jellyfin I want to build launches in devmode, but not in strict confinement. Several errors are shown (I’ll give them below), the main ones being Failed to create data pipe due to MOJO_RESULT_RESOURCE_EXHAUSTED
and libmpv_render
errors. Since the app starts in devmode, I’d wager it’s a plug or environment issue. I just don’t know which ones. Any help is welcomed ! Thanks.
Here is the snapcraft.yaml :
name: jellyfin
base: core24
version: '0.1'
summary: Single-line elevator pitch for your amazing snap
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: stable
confinement: strict
apps:
jellyfin:
extensions: [gnome]
command: /usr/bin/jellyfinmediaplayer
command-chain: [bin/desktop-launch]
plugs:
- network
- desktop
- x11
- wayland
- opengl
layout:
/usr/share/alsa:
bind: $SNAP/usr/share/alsa
/usr/share/qt5:
bind: $SNAP/usr/share/qt5
/usr/lib/x86_64-linux-gnu/qt5:
bind: $SNAP/usr/lib/x86_64-linux-gnu/qt5
/usr/share/jellyfinmediaplayer:
bind: $SNAP/usr/share/jellyfinmediaplayer
/usr/share/libdrm:
bind: $SNAP/usr/share/libdrm
parts:
desktop-qt5:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
plugin: make
make-parameters: ["FLAVOR=qt5"]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
stage-packages:
- libxkbcommon0
- libxkbcommon-x11-0
- fonts-ubuntu
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-extra
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
jellyfin:
after: [desktop-qt5]
plugin: dump
source: .
stage-packages:
- libqt5webengine5
- libsdl2-2.0-0
- libqt5xml5
- libglu1-mesa
- libglut3.12
- qml-module-qtwebengine
- qml-module-qtwebchannel
- qml-module-qtquick-controls
- qtwayland5
- libqt5x11extras5
- libsdl2-2.0-0
- libxrandr2
- libcec6
- libmpv2
- alsa-utils
- xkb-data
- qtwebengine5-dev
- libqt5webenginecore5
- libqt5webenginewidgets5
- libqt5webchannel5
- libxcb1
- libproxy1v5
- librsvg2-common
- libdrm-common
- libgl1
organize:
usr/lib/*-linux-gnu/blas/*: usr/lib/
usr/lib/*-linux-gnu/lapack/*: usr/lib/
usr/lib/*-linux-gnu/pulseaudio/*: usr/lib/
override-build: |
dpkg-deb -x jellyfin.deb $SNAPCRAFT_PART_INSTALL
Here are the errors displayed when starting the snap (it opens and closes right after launch by the way) :
loic@Vivobook:~/Documents/Snapcraft/Jellyfin$ jellyfin
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/loic/snap/jellyfin/common/.cache/gio-modules/libgiolibproxy.so
g_module_open() failed for /snap/jellyfin/x2/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so: /snap/jellyfin/x2/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so: undefined symbol: rsvg_handle_get_pixbuf_and_error
QSocketNotifier: Can only be used with threads started with QThread
/usr/share/libdrm/amdgpu.ids: No such file or directory
libpng warning: iCCP: known incorrect sRGB profile
Listening to socket: "/tmp/jmp_pmpUniqueApplication_loic.sock"
Signal handlers installed successfully.
Logging to /home/loic/snap/jellyfin/x2/.local/share/jellyfinmediaplayer/logs/jellyfinmediaplayer.log
[98490:98813:0418/134445.510680:ERROR:platform_shared_memory_region_posix.cc(250)] Creating shared memory in /dev/shm/.org.chromium.Chromium.j1pdcJ failed: Permission denied (13)
[98490:98490:0418/134446.130831:ERROR:platform_shared_memory_region_posix.cc(250)] Creating shared memory in /dev/shm/.org.chromium.Chromium.bLc9mT failed: Permission denied (13)
[98490:98841:0418/134446.218959:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 98842: Permission denied (13)
[98490:98490:0418/134448.308228:ERROR:platform_shared_memory_region_posix.cc(250)] Creating shared memory in /dev/shm/.org.chromium.Chromium.oSaQz2 failed: Permission denied (13)
[98490:98490:0418/134448.308255:ERROR:command_buffer_proxy_impl.cc(102)] ContextResult::kFatalFailure: AllocateAndMapSharedMemory failed
[98490:98817:0418/134448.344856:ERROR:platform_shared_memory_region_posix.cc(250)] Creating shared memory in /dev/shm/.org.chromium.Chromium.8cNPqO failed: Permission denied (13)
[98490:98817:0418/134448.344940:FATAL:data_pipe.cc(14)] Failed to create data pipe due to MOJO_RESULT_RESOURCE_EXHAUSTED.
Trappe pour point d'arrêt et de trace (core dumped)
And here are the app’s own logs starting when it gets error-y :
2025-04-18 13:23:41.326 [debug] unknown @ 0 - cplayer: Configuration: -Dpython.bytecompile=-1 -Dlibmpv=true -Dbuild-date=false -Dcdda=enabled -Ddvdnav=enabled -Dsdl2=enabled -Dsndio=disabled -Ddvbin=enabled -Dprefix=/usr -Dlibdir=lib/x86_64-linux-gnu -Dlocalstatedir=/var -Dsysconfdir=/etc -Dbuildtype=plain -Dwrap_mode=nodownload
2025-04-18 13:23:41.326 [debug] unknown @ 0 - cplayer: List of enabled features: alsa av-channel-layout avif-muxer caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-helpers egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lavu-uuid lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo librt linux-fstatfs lua52 manpage-build memfd-create noexecstack pipewire posix posix-shm ppoll pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel spirv-cross threads uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vdpau vector vk-khr-display vt.h vulkan vulkan-interop wayland wayland-protocols-1-27 wayland-protocols-1-31 wayland-protocols-1-32 x11 xv zimg zimg-st428 zlib
2025-04-18 13:23:41.326 [debug] unknown @ 0 - cplayer: Waiting for scripts...
2025-04-18 13:23:41.327 [debug] unknown @ 0 - ao/pipewire: Headers version: 1.0.4
2025-04-18 13:23:41.327 [debug] unknown @ 0 - ao/pipewire: Library version: 1.0.5
2025-04-18 13:23:41.327 [debug] unknown @ 0 - ao/pipewire: Could not connect to context '(null)': Host is down
2025-04-18 13:23:41.327 [debug] unknown @ 0 - ao/pulse: Library version: 16.1.0
2025-04-18 13:23:41.327 [debug] unknown @ 0 - ao/pulse: Proto: 35
2025-04-18 13:23:41.327 [debug] unknown @ 0 - ao/pulse: Server proto: 4294967295
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: audio-exclusive=false -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: audio-device="auto" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: audio-normalize-downmix="yes" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: audio-swresample-o="surround_mix_level=1" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: audio-spdif="" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: audio-channels="2.0" -> 1
2025-04-18 13:23:41.327 [warning] unknown @ 0 - cplayer: Option af-remove: item label @ac3 not found.
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: video-sync="audio" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: hwdec="auto-copy" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: hwdec-image-format="no" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: deinterlace="no" -> 1
2025-04-18 13:23:41.327 [debug] unknown @ 0 - cplayer: Set property: display-fps-override=0.000000 -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: audio-delay=0.000000 -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: demuxer-max-bytes=78643200 -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: video-unscaled=false -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: video-aspect-override="-1" -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: keepaspect=true -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: panscan=0.000000 -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Done loading scripts.
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: sub-ass-style-overrides="ScaledBorderAndShadow=yes" -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: sub-font="sans-serif" -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: video-unscaled=false -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: video-aspect-override="-1" -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: keepaspect=true -> 1
2025-04-18 13:23:41.328 [debug] unknown @ 0 - cplayer: Set property: panscan=0.000000 -> 1
2025-04-18 13:23:41.328 [warning] unknown @ 0 - Could not find a taskbar component matching this platform. Taskbar functions disabled.
2025-04-18 13:23:41.341 [debug] unknown @ 0 - resize event: QSize(1280, 720)
2025-04-18 13:23:41.344 [debug] unknown @ 0 - cplayer: Set property: vo="libmpv" -> 1
2025-04-18 13:23:41.344 [debug] unknown @ 0 - cplayer: Set property: audio-device="auto" -> 1
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: GL_VERSION='4.5 (Compatibility Profile) Mesa 24.2.8-1ubuntu1~24.04.1'
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Detected desktop OpenGL 4.5.
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: GL_VENDOR='Mesa'
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: GL_RENDERER='llvmpipe (LLVM 19.1.1, 256 bits)'
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: GL_SHADING_LANGUAGE_VERSION='4.50'
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Loaded extension GL_KHR_debug.
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Detected suspected software renderer.
2025-04-18 13:23:43.839 [warning] unknown @ 0 - libmpv_render: Suspected software renderer or indirect context.
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: GL_*_swap_control extension missing.
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Testing FBO format rgba16f
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Using FBO format rgba16f.
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Loading hwdec driver 'vaapi'
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render/vaapi: VAAPI hwdec only works with OpenGL or Vulkan backends.
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Loading failed.
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render: Loading hwdec driver 'cuda'
2025-04-18 13:23:43.839 [debug] unknown @ 0 - libmpv_render/cuda: cu->cuGLGetDevices(&device_count, &display_dev, 1, CU_GL_DEVICE_LIST_ALL) failed -> CUDA_ERROR_INVALID_GRAPHICS_CONTEXT: invalid OpenGL or DirectX context
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render/cuda: CUDA hwdec only works with OpenGL or Vulkan backends.
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render: Loading failed.
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render: Loading hwdec driver 'drmprime'
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render/drmprime: drmprime hwdec requires at least one dmabuf interop backend.
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render: Loading failed.
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render: Loading hwdec driver 'drmprime-overlay'
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render/drmprime-overlay: Failed to retrieve DRM fd from native display.
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render: Loading failed.
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render: Loading hwdec driver 'vulkan'
2025-04-18 13:23:43.840 [debug] unknown @ 0 - libmpv_render/vulkan: This is not a libplacebo vulkan gpu api context.
2025-04-18 13:23:43.854 [debug] onLoadingChanged @ 181 - WebEngineLoadRequest starting: file:///usr/share/jellyfinmediaplayer/web-client/extension/find-webclient.html