Bug 414646 - Kdenlive in Windows crashes when opening a project created under a different Locale
Summary: Kdenlive in Windows crashes when opening a project created under a different ...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: 19.08.3
Platform: Microsoft Windows Microsoft Windows
: NOR critical
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-29 02:19 UTC by Brett
Modified: 2020-07-14 18:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.08.0
Sentry Crash Report:
fritzibaby: Brainstorm+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brett 2019-11-29 02:19:39 UTC
SUMMARY
Kdenlive in Windows shows a visual C++ Runtime error and crashes when attempting to open a project that was created and saved under a different locale. The issue seems to be due to the fact that some locales use a comma instead of a period in their timestamps.

STEPS TO REPRODUCE
1. Create a project with a machine using the locale fr_CA and save it. See http://txt.do/1oxnn for an example project.

2. Move to a machine running Windows and with the locale en_US. Attempt to open the previous project.

OBSERVED RESULT
Crash: Runtime Error! This program has requested yadda yadda yadda...

EXPECTED RESULT
Kdenlive gives a warning about the project being created in a different locale and offers to save it in the current locale.

SOFTWARE/OS VERSIONS
Windows: 8
macOS: 
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Here is a workaround:
1. Open the project in a text editor
2. Change LC_NUMERIC="fr_CA.UTF-8" to LC_NUMERIC="en_US"
3. Use find and replace to transform all of the commas into periods in the timestamps. For example:
 <producer title="Anonymous Submission" id="producer0" in="00:00:00,000" out="00:03:14,181">
in the original file now becomes this:
<producer id="producer0" in="00:00:00.000" out="00:00:04.972">
4. The project will now open properly without crashing Kdenlive
Comment 1 Brett 2019-11-29 02:20:05 UTC
Relevant forum discussion: https://forum.kde.org/viewtopic.php?f=265&t=163455
Comment 2 Davy Bartoloni 2019-11-29 10:17:55 UTC
here main tread: https://invent.kde.org/kde/kdenlive/issues/78
Comment 3 emohr 2020-07-14 18:16:50 UTC
Comma point issue is fixed with version 20.08.0.