Bug 488576 - Crash while showing Video
Summary: Crash while showing Video
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Video (other bugs)
Version First Reported In: 8.3.0
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-16 10:52 UTC by jan
Modified: 2024-07-18 06:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jan 2024-06-16 10:52:38 UTC
Digikam crashes while viewing the video in full screen or preview. I get the following error messages on the console:

Qt: Session management error: None of the authentication protocols specified are supported
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fea00000dc0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3600
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fea00000dc0] st: 0 edit list 1 Cannot find an index entry before timestamp: 3600.
zsh: segmentation fault (core dumped)  digikam
Comment 1 Maik Qualmann 2024-06-16 11:22:13 UTC
Welche Qt Version verwendet digiKam (Qt5 oder Qt6)?

Maik
Comment 2 Maik Qualmann 2024-06-16 11:22:47 UTC
Which Qt version does digiKam use (Qt5 or Qt6)?

Maik
Comment 3 jan 2024-06-16 12:00:06 UTC
The problem occurred after updating Manjaro Linux with QT6.
Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.6.32-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2
Manufacturer: ASUS
Comment 4 Maik Qualmann 2024-06-16 12:56:02 UTC
With Qt6, QtMultimedia is now used. Does every video crash or is it reproducible with certain files? Here under openSUSE with the same Qt version, QtMultimedia works very stable, no crashes. I suspect a package problem between FFmpeg and QtMiltimedia. A problem with the hardware acceleration of FFmpeg is also conceivable. Which graphics card are you using?

Maik
Comment 5 jan 2024-06-16 13:12:30 UTC
I already wrote about the graphics card. I couldn't find any other video that worked on Digikam. There are no problems with other video programs such as Kdenlive, VLC, SMplayer, mpv Player, Mplayer and AVIdemux. In Gwenview the video is playing, but the screen is black.
Comment 6 Maik Qualmann 2024-06-16 13:16:31 UTC
Gwenview is clear, that doesn't work here either.
Can you please create a GDB backtrace?

gdb digikam
r (type r + Enter for run)
crash occurs...
bt (type bt + Enter for the backtrace)

Post the backtrace here.

Maik
Comment 7 jan 2024-06-16 14:15:03 UTC
I have installed gdb. After starting a video I just have a black screen and can't do anything except reset.
Comment 8 Maik Qualmann 2024-06-16 14:36:38 UTC
ok, first try setting this environment variable before starting digiKam:

export QT_DISABLE_HW_TEXTURES_CONVERSION=1

digikam

Maik
Comment 9 jan 2024-06-16 15:14:06 UTC
And then?
Comment 10 jan 2024-06-16 15:21:27 UTC
I get the same Error Messages while Digikam crashes.
Comment 11 Maik Qualmann 2024-06-16 15:45:19 UTC
Next test to see if the GStreamer backend works for you:

export QT_MEDIA_BACKEND=gstreamer

digikam

Maik
Comment 12 jan 2024-06-16 17:23:23 UTC
Maybe these Result are interesting:
export QT_MEDIA_BACKEND=gstreamer 
digikam 
Qt: Session management error: None of the authentication protocols specified are supported
No QtMultimedia backends found. Only QMediaDevices, QAudioDevice, QSoundEffect, QAudioSink, and QAudioSource are available.
Failed to create QVideoSink "Not available"
Failed to initialize QMediaPlayer "Not available"
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp
Comment 13 Maik Qualmann 2024-06-16 18:04:22 UTC
GStreamer is not available in your installation. There will be a problem with the hardware acceleration in your configuration if the entire screen goes black and the computer crashes. There are currently not many options to adjust this in QtMultimedia.
You could also try the following variables one after the other:

cuda
vaapi
drm
vulkan
opencl

export QT_FFMPEG_DECODING_HW_DEVICE_TYPES=

Maik
Comment 14 jan 2024-06-19 15:36:17 UTC
Since it doesn't work on a fresh Manjaro installation, other video programs don't work there either, but everything works on MX Linux or old Manjaro, I assume that this is a bug in Manjaro that cannot currently be solved .
Comment 15 caulier.gilles 2024-06-19 15:47:41 UTC
Well, it must be reported as a DOWNSTREAM bug to the linux distro team...
Comment 16 caulier.gilles 2024-07-17 06:06:19 UTC
Jan,

Did you seen my last comment ? It's reported as DOWSTREAM ?
It's certainly not a problem coming from digiKam code

Gilles Caulier
Comment 17 jan 2024-07-17 06:53:23 UTC
Gilles,
I was advised in the Manjaro forum to simply change the entire video driver even though it had been working for years. Because of many other problems after almost every update of this rolling release, I switched back to MX Linux. Everything is working fine again - including digikam. Many thanks for the support.