Bug 505833

Summary: Kdenlive crashes when opening project
Product: [Applications] kdenlive Reporter: antimidia
Component: Project Bin & ImportAssignee: Jean-Baptiste Mardelle <jb>
Status: CONFIRMED ---    
Severity: grave CC: fritzibaby
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Project file
Output of terminal
thread apply output
Project_IROD2_with placeholders
Output of thread apply all bt full

Description antimidia 2025-06-20 10:16:54 UTC
Created attachment 182413 [details]
Project file

SUMMARY

Kdenlive (25.04.2 - flatpak) crashes everytime I tried to open my project today after working on it and saving it yesterday. The same happens with the backup files.

STEPS TO REPRODUCE
1. Try to open the project file below.

OBSERVED RESULT

Kdenlive closes while "Loading timeline" 

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 antimidia 2025-06-20 10:17:16 UTC
Created attachment 182414 [details]
Output of terminal
Comment 2 antimidia 2025-06-20 10:41:51 UTC
Created attachment 182415 [details]
thread apply output
Comment 3 emohr 2025-06-20 16:33:35 UTC
Created attachment 182432 [details]
Project_IROD2_with placeholders

I could open the project in 25.04.2 with placeholders.
It must be something with a particular clip or the OS is runnig out of memory.
Comment 4 emohr 2025-06-20 16:48:15 UTC
Difficult to say. It has something to do with audio waveform rendering.
    SDLAudioP2
    PulseHotplug, QPulseAudioEngi
    FrameRenderer
    Thread (pooled)

And Wayland and Python is involved as well.
    WaylandEventThr
    Python Exception <class 'gdb.MemoryError'>: Cannot access memory at address 0x7fffffffbf10

This might be the reason that I can open the project with placeholders.
Comment 5 emohr 2025-06-20 16:50:26 UTC
BTW: Do you use the official flatpack from here: https://flathub.org/apps/org.kde.kdenlive
Comment 6 antimidia 2025-06-20 17:05:27 UTC
(In reply to emohr from comment #3)
> Created attachment 182432 [details]
> Project_IROD2_with placeholders
> 
> I could open the project in 25.04.2 with placeholders.
> It must be something with a particular clip or the OS is runnig out of
> memory.

There's no way it's memory. I got 64gb RAM. And while I'm opening the file RAM usage never exceeds 20%.
Comment 7 antimidia 2025-06-20 17:06:00 UTC
(In reply to emohr from comment #5)
> BTW: Do you use the official flatpack from here:
> https://flathub.org/apps/org.kde.kdenlive

Yes. org.kde.kdenlive from Flathub.
Comment 8 antimidia 2025-06-20 17:08:15 UTC
(In reply to emohr from comment #4)
> Difficult to say. It has something to do with audio waveform rendering.
>     SDLAudioP2
>     PulseHotplug, QPulseAudioEngi
>     FrameRenderer
>     Thread (pooled)
> 
> And Wayland and Python is involved as well.
>     WaylandEventThr
>     Python Exception <class 'gdb.MemoryError'>: Cannot access memory at
> address 0x7fffffffbf10
> 
> This might be the reason that I can open the project with placeholders.

Yesss. It might be related to Wayland. I started a new session over Xorg, tried the flatpak and it crashed too. But I was then able to open the project on 25.04.1 from Manjaro repositories.
Comment 9 antimidia 2025-06-20 17:11:11 UTC
(In reply to antimidia from comment #8)
> (In reply to emohr from comment #4)
> > Difficult to say. It has something to do with audio waveform rendering.
> >     SDLAudioP2
> >     PulseHotplug, QPulseAudioEngi
> >     FrameRenderer
> >     Thread (pooled)
> > 
> > And Wayland and Python is involved as well.
> >     WaylandEventThr
> >     Python Exception <class 'gdb.MemoryError'>: Cannot access memory at
> > address 0x7fffffffbf10
> > 
> > This might be the reason that I can open the project with placeholders.
> 
> Yesss. It might be related to Wayland. I started a new session over Xorg,
> tried the flatpak and it crashed too. But I was then able to open the
> project on 25.04.1 from Manjaro repositories.

Oooops. No, my mistake I opened another project by mistake. I'm steel unable to open this project. :(
Comment 10 antimidia 2025-06-20 17:17:10 UTC
1. It's not related exclusively to Wayland since it also happens over Xorg.
2. If it is memory related the issue is not physical RAM. Maybe some limitation to the app?
3. It happens both on Manjaro repository and Flathub version.
Comment 11 antimidia 2025-06-20 17:43:37 UTC
After renaming two of my footage folders, I was able to open the project using placeholders and then reload all the clips. It's a workaround, not a fix. I'm afraid I'll have to do this again when I close the project.
Comment 12 emohr 2025-06-21 11:37:27 UTC
Which two folders do you have renamed?

I see one path in the crash log:
"/mnt/hdinterno01/Antimídia/Recursos Kdenlive/Efeitos sonoros/Hit Whoosh Dark"

Does the MP3 clip “Hit Whoosh Dark” have any specials? It looks like the clip is not used in the timeline. If so, delete this clip from the project bin and try again.
Comment 13 antimidia 2025-06-23 20:17:08 UTC
(In reply to emohr from comment #12)
> Which two folders do you have renamed?

I have renamed:
mnt/hdinterno01/Antimídia/Recursos Kdenlive/Efeitos sonoros/
mnt/hdinterno01/Antimídia/Recursos Kdenlive/Efeitos/
mnt/hdinterno01/Nextcloud/subMedia/Active Projects/Interrebellium/

After renaming these folders I am able to open the project file with Placeholders and then substitute the clips and start working.

If I try to rename only the first two, the app crashes.

Maybe it's related to the big number of files in the bin?

> Does the MP3 clip “Hit Whoosh Dark” have any specials? It looks like the
> clip is not used in the timeline. If so, delete this clip from the project
> bin and try again.

I did remove that clip from the bin and tried to open the file, it crashes. :(
Comment 14 antimidia 2025-06-23 21:00:00 UTC
I tried renaming two other folders instead, to see if I could open the project then. 

But it crashed too with (I'll upload the thread apply output in a file):

"MLT: "[producer_xml] failed to load producer \"/mnt/hdinterno01/Nextcloud/subMedia/Active Projects/Its Revolution or Death/Part 1 - Short Term Investments/M's Project/videos/► FREE Video Background Loop Footage _ HD 1080p30 _ Old TV Static Damage Effect #0393 ◄-kWFY9M6jgW4.mp4\""
MLT: "[producer_xml] failed to load producer \"/mnt/hdinterno01/Nextcloud/subMedia/Active Projects/Its Revolution or Death/Part 1 - Short Term Investments/M's Project/videos/"Here Comes a Thought" | Steven Universe | Cartoon Network [dHg50mdODFM].mp4\""
MLT: "[producer_xml] failed to load producer \"/mnt/hdinterno01/Nextcloud/subMedia/Active Projects/Its Revolution or Death/Part 1 - Short Term Investments/M's Project/videos/"O povo é quem manda... o governo obedece!" - Teia dos Povos e Comunidades Tradicionais do MA [oNybOoBTIXM].mkv\""

Thread 1 "kdenlive" received signal SIGSEGV, Segmentation fault.
0x00007ffff42941ca in avformat_find_stream_info () from /app/lib/libavformat.so.61"
Comment 15 antimidia 2025-06-23 21:02:29 UTC
Created attachment 182578 [details]
Output of thread apply all bt full
Comment 16 antimidia 2025-06-23 22:17:40 UTC
I was able to open the file removing all the audio files I wasn't using on  this folder.

mnt/hdinterno01/Nextcloud/subMedia/Active Projects/Interrebellium/

I saved it and reopened the project without issues. It was something regarding those files apparently.
Comment 17 emohr 2025-06-24 16:31:42 UTC
Thank you for the detailed analysis.
I see files with special character on the file name. Does the folder

mnt/hdinterno01/Nextcloud/subMedia/Active Projects/Interrebellium/ 

contain files with special character like: ► , |, !
Comment 18 antimidia 2025-06-24 19:00:24 UTC
Yes it does. But so do most of the other folders.


Em ter, 2025-06-24 às 16:31 +0000, emohr escreveu:
> https://bugs.kde.org/show_bug.cgi?id=505833
> 
> --- Comment #17 from emohr <fritzibaby@gmx.net> ---
> Thank you for the detailed analysis.
> I see files with special character on the file name. Does the folder
> 
> mnt/hdinterno01/Nextcloud/subMedia/Active Projects/Interrebellium/ 
> 
> contain files with special character like: ► , |, !
Comment 19 emohr 2025-06-25 15:06:09 UTC
I think these special characters in the file name are the root cause of the crash. Specially: ►, ◄, |, ..., !

Kdenlive should check if a file contains special character and should suggest for name changes. This is not the case on Windows as there it’s not possible to put such characters into a file name.

Workaround: remove such special character in files names.
Comment 20 antimidia 2025-06-29 12:25:50 UTC
Do these characters should affect differently if there's a large number of files with them? Cause since I removed that folder I'm not having any issues with files with those special characters on my project.