Bug 506017

Summary: % In the filename of imported file causes the application to hang
Product: [Applications] kdenlive Reporter: AWal <awal_us>
Component: Project Bin & ImportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.12.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description AWal 2025-06-23 02:50:52 UTC
SUMMARY
I've found that adding a file to a project with % in the filename causes the application processes to hang, eventually resulting in a freeze. The Project Bin will show a file with the reload icon like it was not able to process it and may allow some interactivity, but will eventually cause the main window to hang.

STEPS TO REPRODUCE
1.  Create importable file with % somewhere in filename (I used a PNG file in my observations)
2.  Drag it into Project Bin (I was able to drag a folder of PNG files and still got this result despite all the other PNG files apparently being processed corrected)
3.  Attempt to interact with the file or the main window and it will freeze if it hasn't done so already

OBSERVED RESULT
Frozen session requiring recovery and/or possible loss-of-time rework

EXPECTED RESULT
Either error about unsupported filename or (preferably) processed file that can be interacted with and used

SOFTWARE/OS VERSIONS
Windows:
Edition	Windows 10 Pro
Version	2009
Installed on	‎2/‎13/‎2021
OS Build	19045.5965

22H2

KDE Frameworks Version: 6.14.0 per Version 25.04.2
Qt Version: 6.8.3 per Version 25.04.2

ADDITIONAL INFORMATION
My installation is and always has been portable.
The oldest version I have installed is 21.12.0, which also exhibits the same behavior.
Comment 1 Jean-Baptiste Mardelle 2025-07-15 13:24:45 UTC
I cannot reproduce with the 25.08 beta. Can you please test ? It can be downloaded from here:
https://cdn.kde.org/ci-builds/multimedia/kdenlive/release-25.08/windows/
Comment 2 AWal 2025-07-16 03:44:36 UTC
(In reply to Jean-Baptiste Mardelle from comment #1)
> I cannot reproduce with the 25.08 beta. Can you please test ?

Hi, I just downloaded the 25.08 beta (.7z file).
I extracted it to the desktop so that the "kdenlive-release_25.08-10647-windows-gcc-x86_64" folder is on the desktop.

I also grabbed a random png file, renaming it to "THIS FILE WILL CAUSE % HANG.png" while also placing it on the desktop.

With kdenlive open I performed a drag-and-drop operation, bringing the png file over the project bin.
As soon as I released the left mouse button, the item appeared in the project bin, but the thumbnail appeared as a grey box with a white outline and a loop symbol in the lower-left corner, suggesting that the item may attempt to be re-loaded.

At this point the application already hung and was unresponsive to any clicks. Attempting the click the close icon in the upper-right corner a few caused Windows to provide it's error troubleshooting window, where I was able to request that the program be forcibly closed, which it was able to do like previously.
Comment 3 Jean-Baptiste Mardelle 2025-07-16 05:43:56 UTC
Thanks a lot for your feedback. In fact, the capital letter after the percent character triggered the problem, which is why I didn't see it first. This is an MLT issue, I just posted a Merge Request and will keep you updated.
https://github.com/mltframework/mlt/pull/1100
Comment 4 Jean-Baptiste Mardelle 2025-07-16 16:41:57 UTC
Git commit edaae02c02427b6616e88153a25f6ce47ba106fc by Jean-Baptiste Mardelle.
Committed on 16/07/2025 at 16:41.
Pushed by mardelle into branch 'master'.

Update MLT with latest fixes

M  +4    -4    libs/mlt/mlt.py

https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/edaae02c02427b6616e88153a25f6ce47ba106fc