Open in4matix opened 9 months ago
I am experiencing the same issue, on Ubuntu 23.04.
I can't reproduce this. Tested with Ubuntu 23.04 in a VM.
Do you see any error messages if you launch Celluloid from the command line?
I can't reproduce this. Tested with Ubuntu 23.04 in a VM.
Do you see any error messages if you launch Celluloid from the command line?
So, if I launch it for the command line (with flatpak run io.github.celluloid_player.Celluloid
, it returns Cannot load libcuda.so.1
. I don't use an Nvidia GPU (I have intel integrated graphics) so I don't quite get why it's trying to load that. I've tried with toggling the use of my mpv.conf file (which contains hwdec=vaapi
) on and off, still is trying to load the CUDA library.
I'll note that it doesn't crash upon loading the program, but it does once trying to open a video, however nothing is returned in the command line at that point.
Installed old version 0.20 via apt and it works perfectly on Ubuntu 22.04.3
Installed old version 0.20 via apt and it works perfectly on Ubuntu 22.04.3
I also tried installing the latest deb version via the official PPA, and it also worked no problem. Seems to be an issue just with the Flatpak version.
Downgrading the Flatpak from commit 01d6388e2955a507d3e1a7b28a7068d4d307dceeadbe1b1c878f1926ee768503 Fix ffmpeg build with binutils>=2.41 (6d6d3415)
to commit 96582baf650dbdf331b20ad64456fd839bc77e1983daa80ffe69feddf2d9d9ee Enable JPEG XL encoder (16ec0a5d)
works as a stop-gap solution on my end.
/cc @TingPing
I can't reproduce here. "Cannot load libcuda.so.1" doesn't seem to matter.
CC @bbhtt who did the last update.
I use it pretty much daily on Fedora 39 (with AMD gpu), but I don't see any issues.
I'll note that it doesn't crash upon loading the program, but it does once trying to open a video, however nothing is returned in the command line at that point.
Are you sure it is not crashing? Do you see anything in journalctl --follow
while having it open and loading files or in coredumpctl list
for any crash entries?
Can you run the following, load the file then share the log?
flatpak run --filesystem=$(pwd) --env=G_MESSAGES_DEBUG=all io.github.celluloid_player.Celluloid --mpv-msg-level=all=trace --mpv-log-file=log.txt
I use it pretty much daily on Fedora 39 (with AMD gpu), but I don't see any issues.
I'll note that it doesn't crash upon loading the program, but it does once trying to open a video, however nothing is returned in the command line at that point.
Are you sure it is not crashing? Do you see anything in
journalctl --follow
while having it open and loading files or incoredumpctl list
for any crash entries?Can you run the following, load the file then share the log?
flatpak run --filesystem=$(pwd) --env=G_MESSAGES_DEBUG=all io.github.celluloid_player.Celluloid --mpv-msg-level=all=trace --mpv-log-file=log.txt
journalctl --follow
reports a segfault every time I try to open a video: oct 30 13:18:13 XPS-Ubuntu kernel: celluloid[81064]: segfault at 0 ip 0000000000000000 sp 00007ffe7cb40c58 error 14 likely on CPU 0 (core 0, socket 0)
And here's the log output of that command: log.txt .
I'm not seeing anything obvious in that log personally.
You'll probably need to get a backtrace for useful info.
flatpak install flathub io.github.celluloid_player.Celluloid.Debug org.gnome.Sdk//45
flatpak run --command=sh --devel io.github.celluloid_player.Celluloid
gdb /app/bin/celluloid
thread apply all
run
# Make it crash
bt full
You'll probably need to get a backtrace for useful info.
flatpak install flathub io.github.celluloid_player.Celluloid.Debug org.gnome.Sdk//45 flatpak run --command=sh --devel io.github.celluloid_player.Celluloid gdb /app/bin/celluloid thread apply all run # Make it crash bt full
This is the output I get:
Thread 1 "celluloid" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt full
#0 0x0000000000000000 in ()
#1 0x00007fffaa19b5bf in _mesa_BeginQueryIndexed ()
at /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/iris_dri.so
#2 0x00007ffff713afa9 in gl_timer_start (ra=<optimized out>, ratimer=0x555557ef1a80)
at ../video/out/opengl/ra_gl.c:1157
p = 0x555557eecb90
gl = 0x555557dfa9b0
timer = 0x555557ef1a80
#3 0x00007ffff711efeb in timer_pool_start (pool=0x555557f34c10)
at ../video/out/gpu/utils.c:276
__PRETTY_FUNCTION__ = "timer_pool_start"
#4 0x00007ffff7122a59 in pass_upload_image
(p=p@entry=0x555557ef2620, mpi=<optimized out>, id=<optimized out>)
at ../video/out/gpu/video.c:3636
ok = <optimized out>
vimg = 0x555557ef2968
using_pbo = <optimized out>
mode = <optimized out>
__PRETTY_FUNCTION__ = "pass_upload_image"
#5 0x00007ffff71272bb in pass_render_frame
(p=p@entry=0x555557ef2620, mpi=<optimized out>, id=<optimized out>, flags=flags@entry=3) at ../video/out/gpu/video.c:2999
vpts = <optimized out>
vp_w = <optimized out>
vp_h = <optimized out>
#6 0x00007ffff712a6b2 in gl_video_render_frame
It's crashing somewhere in mesa. It's not a bug in celluloid.
You need to install debug symbols for those, then redo the backtrace
flatpak install org.freedesktop.Platform.GL.Debug.default//23.08 org.freedesktop.Platform.GL.Debug.default//23.08-extra
This could be https://gitlab.freedesktop.org/mesa/mesa/-/issues/9922, the GNOME runtime is using mesa 23.2.1. Per the last comment on the thread, there is no release with the fix but will be soon.
It's crashing somewhere in mesa. It's not a bug in celluloid.
You need to install debug symbols for those, then redo the backtrace
flatpak install org.freedesktop.Platform.GL.Debug.default//23.08 org.freedesktop.Platform.GL.Debug.default//23.08-extra
This didn't meaningfully change the output of the backtrace.
Argh, looks like GNOME runtime added support for mounting the GL.Debug extension just 5 days ago and is not in any 45 runtime release https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/2168#note_548
I guess we can create a test build of the flatpak with the extension point added to the manifest
If there's a pretty good chance the open mesa issue is it, and that's being worked on, it may make more sense to just wait and see what results that yields once the fix is released.
Can you try installing the following bundle? It's x86_64 only. It has the extension point for GL.Debug and debug symbols. It should work.
You need to have these two installed flatpak install org.freedesktop.Platform.GL.Debug.default//23.08 org.freedesktop.Platform.GL.Debug.default//23.08-extra
wget https://github.com/bbhtt/io.github.celluloid_player.Celluloid/raw/gl-debug-test/celluloid.flatpak
flatpak install --user celluloid.flatpak
flatpak run --command=sh --branch=master --devel io.github.celluloid_player.Celluloid
then redo gdb to get the trace.
Same issue on Archlinux with GNOME 45, but the same issue occured a few weeks ago when I was using GNOME 44
Edit: The pacman version works like its supposed to
For those who were still affected by this issue, the latest release of the freedesktop runtime bumps the Mesa version to the 23.3 branch, and that seems to have fixed it for me.
On freshly installed and up-to-date Ubuntu 22.04.3
Installed the latest version from Flatpak. Can open the App, but selecting any video, the App immediately closes.
Latest version of MPV was installed from Flatpak prior to installing Celluloid.
Using Flatseal, set the App to have access to all user files. All Celluloid settings are default (No settings have been changed)