Bug 491325

Summary: Kdenlive Freezing on fedora-40 starting Aug-1-2024
Product: [Applications] kdenlive Reporter: Jeffrey Rocchio <jeffrocchio>
Component: Setup & InstallationAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: major CC: berndmj, daniel.brackenbury, fritzibaby
Priority: NOR Keywords: triaged
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Sys journal entries as I tried to start and use Kdenlive
Sys journal entries from latest attempt to run kdenlive
Link to system log entries related comment #5
Link to system log entries running under X11 - related comment #5

Description Jeffrey Rocchio 2024-08-05 19:47:34 UTC
Created attachment 172317 [details]
Sys journal entries as I tried to start and use Kdenlive

SUMMARY

Made a video with kdenlive-24.05.0-x86_64.AppImage on July-31. All OK. Tried to make a video on August-1 but every attempt to launch Kdenlive resulted in the app coming onscreen, but then freezing such that I had to use the perf mon list of apps to force kill it.

I then also tried kdenlive-24.05.2-x86_64.AppImage and the 8/4 nightly build: kdenlive-master-8577-linux-gcc-x86_64.AppImage. Same problem.

I do accept the daily system/repo updates from fedora and RPMfusion, so I'm sure there were various updates to my system between July-31 and Aug-1; tho I don't know what they were specifically.

STEPS TO REPRODUCE
1.  Launch Kdenline
2. Try to perform any operation - i.e., drag a video into the timeline.
3. Kdenline freezes. Usually the window frame remains operational, I can usually terminate the app by clicking on the 'X' in the KDE window frame.

OBSERVED RESULT
Kdenlive is frozen. No apparent effect on any other part of my desktop or system. No error messages shown.

EXPECTED RESULT
Kdenlive should run.

SOFTWARE/OS VERSIONS
Linux, fedora-40, KDE spin
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: Z270X-Gaming 7

ADDITIONAL INFORMATION
I have attached a text file that contains the system journal entries as I attempted to launch and use, and then force-quit Kdenlive with this freeze condition.

Kdenlive worked fine on above system up to July-31. On August-1 it stopped working. Other than usual system updates I didn't make any changes or install add'l software.
Comment 1 Daniel Brackenbury 2024-08-21 23:08:45 UTC
Throwing my hat in the ring here to say that I am experiencing similar but not exactly the same behaviour, also in Fedora 40 but with kernel 6.10.5-200.fc40.x86_64

Using either the dnf package OR the most recent Flatpak (version 24.05.2) with WAYLAND ONLY results in the application exiting suddenly once any modifications are made to the timeline. I've run the program from the terminal and in all cases, it crashes with the following error:
"The Wayland connection experienced a fatal error: Protocol error"

Preventing the flatpak from using Wayland results in kdenlive running with XWayland, and operating as expected without crashing. Further system information is as follows:
Fedora 40 GNOME
Kernel 6.10.5-200.fc40.x86_64
Wayland
AMD 3600XT
Nvidia RTX 3060ti (driver version 555.58.02)
32GB DDR4 RAM
ASRock A520m-ITX/ac with the most recent and up-to-date BIOS

Similar to the original poster of this bug report, kdenlive was working perfectly fine up until this month; I do not have an exact date, however I was using it to edit and render clips at the end of July and it has seemingly broken under Wayland since then.
Comment 2 Jeffrey Rocchio 2024-09-08 14:39:40 UTC
Created attachment 173445 [details]
Sys journal entries from latest attempt to run kdenlive

FWIW - I just tried Kdenlive on my fedora-40 system again after updating everything via DNF. Still doesn't work.

Before running Kdenlinve I removed all the following folders/files:

FOLDERS --
/home/jroc/.local/share/kdenlive
/home/jroc/.local/state/kdenlivestaterc
/home/jroc/.cache/kdenlive

FILES --
/home/jroc/.config/kdenlive-appimagerc
/home/jroc/.config/kdenlive-layoutsrc
/home/jroc/.config/kdenliverc


journalctl log from this attempt attached as sysjournal_2024-09-08.txt. There are a ton of errors showing in the log, but I can't work out what I might be able to do to get Kdenlive working for me.

Also note that I booted into an X11 session to try it, but it doesn't work under X11 either.
Comment 3 Jeffrey Rocchio 2024-09-08 14:40:13 UTC
FWIW - I just tried Kdenlive on my fedora-40 system again after updating everything via DNF. Still doesn't work.

Before running Kdenlinve I removed all the following folders/files:

FOLDERS --
/home/jroc/.local/share/kdenlive
/home/jroc/.local/state/kdenlivestaterc
/home/jroc/.cache/kdenlive

FILES --
/home/jroc/.config/kdenlive-appimagerc
/home/jroc/.config/kdenlive-layoutsrc
/home/jroc/.config/kdenliverc


journalctl log from this attempt attached as sysjournal_2024-09-08.txt. There are a ton of errors showing in the log, but I can't work out what I might be able to do to get Kdenlive working for me.

Also note that I booted into an X11 session to try it, but it doesn't work under X11 either.
Comment 4 Jeffrey Rocchio 2024-09-09 20:58:28 UTC
If it matters - I just downloaded the Shotcut video editor appimage and it is running fine. I then again tried Kdenlive and it still fails to run.
Comment 5 Bernd 2024-09-10 16:18:29 UTC
(In reply to Jeffrey Rocchio from comment #4)
> If it matters - I just downloaded the Shotcut video editor appimage and it
> is running fine. I then again tried Kdenlive and it still fails to run.

Could you try this appimage, please: https://cdn.kde.org/ci-builds/multimedia/kdenlive/master/linux/
Comment 6 Jeffrey Rocchio 2024-09-10 18:34:17 UTC
Created attachment 173536 [details]
Link to system log entries related comment #5

(In reply to Bernd from comment #5)
> Could you try this appimage, please:
> https://cdn.kde.org/ci-builds/multimedia/kdenlive/master/linux/

Sadly, no change in behaviour. Well, except that upon launching it there are now 37,508 entries posted to the system journal before the 'Started app-....' entry that appears on line 37509 of the linked to sysjournal_2024-09-10.txt document. That wasn't happening before. Tho I suppose those may be due to this image being compiled with debug switches turned on? Either way, those new journal entries show a ton of kwin_wayland errors. 

E.g. on Line 37473:
Sep 10 14:03:43 jeffFedora kwin_wayland[1888]: kf.config.core: KConfigIni: In file /home/jroc/Dropbox/AppImages/kdenlive-master-8813-linux-gcc-x86_64.AppImage, line 30692: Invalid escape sequence: «\¾»

I also see two of these in a row on lines 37505 & 37506.
Sep 10 14:03:47 jeffFedora kwin_wayland[1888]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
Sep 10 14:03:47 jeffFedora kwin_wayland[1888]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug

See file sysjournal_2024-09-10.txt @ https://www.dropbox.com/scl/fi/jq0xq6qbdkepm9p71vxcx/sysjournal_2024-09-10.txt?rlkey=8fysfeg0l4b2y168eehpc2ohf&st=u0udew8r&dl=0 (This file is too large to attach directly to this issue posting)
Comment 7 Jeffrey Rocchio 2024-09-10 18:45:40 UTC
Created attachment 173537 [details]
Link to system log entries running under X11 - related comment #5

Also just tried running under an X11 session. Much shorter log; but no better behavior by the Kdenlive app.
Comment 8 Bernd 2024-09-10 23:12:57 UTC
(In reply to Jeffrey Rocchio from comment #7)
> Created attachment 173537 [details]
> Link to system log entries running under X11 - related comment #5
> 
> Also just tried running under an X11 session. Much shorter log; but no
> better behavior by the Kdenlive app.

I was told that the MLT issues the appimage fixed are not the reasons for the issues you are experiencing. Sorry for the wild goose chase.
(But this appimage should give the user better playback and render performance)

Fedora seems to be a distro that doesn't like Kdenlive :-/  There are always issues with that combination, definitely more than with other distros. It could very well be a recent change in/of the OS that is tripping Kdenlive.
Comment 9 Jeffrey Rocchio 2024-09-11 17:02:10 UTC
(In reply to Bernd from comment #8)
> (In reply to Jeffrey Rocchio from comment #7)
> > Created attachment 173537 [details]
> Sorry for the wild goose chase.
No worries, I am happy to help with trying to resolve this. But note that I will be totally off the grid from right now until the first of October.

> Fedora seems to be a distro that doesn't like Kdenlive :-/  
Bummer. I've been a dedicated fedora and KDE user for probably two decades now. So emotionally I want both to be best friends.
Comment 10 Bug Janitor Service 2024-09-26 03:47:21 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!