Bug 420494 - Opening the archived project crashes
Summary: Opening the archived project crashes
Status: RESOLVED WORKSFORME
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: 19.12.3
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-24 04:09 UTC by jin
Modified: 2020-12-02 04:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: Brainstorm+


Attachments
as described in the description form above (25.47 KB, application/zip)
2020-04-24 04:09 UTC, jin
Details
New crash information added by DrKonqi (17.95 KB, patch)
2020-10-19 08:04 UTC, joern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jin 2020-04-24 04:09:10 UTC
Created attachment 127814 [details]
as described in the description form above

SUMMARY

I simply archived my project using the feature in the application.
Whether I compress it or not opening this archived project crashes.

STEPS TO REPRODUCE
1. archive a project
2. open the project
3. the program crashes while loading the project.

OBSERVED RESULT

below is the error hint from my terminal (--mlt-log debug mode)


| 2020-04-24 13:02:50.322 | [consumer sdl2_audio] stopping put waiting
| 2020-04-24 13:02:50.322 | [consumer sdl2_audio] stopping consumer
| 2020-04-24 13:02:50.322 | mlt_consumer.c:864: T(mlt_consumer_get_frame)=508 us
| 2020-04-24 13:02:50.322 | [filter audiolevel] channel 0 level 0.000000
| 2020-04-24 13:02:50.322 | [filter audiolevel] channel 1 level 0.000000
| 2020-04-24 13:02:50.329 | [filter avcolor_space] rgb24a @ 1920x1080 -> yuv422 @ 1920x1080 space 709->709
| 2020-04-24 13:02:50.341 | [filter deinterlace] error 0 deint 1 prog 1 fmt yuv422 method onefield
| 2020-04-24 13:02:50.341 | TFF in 0 out -1
| 2020-04-24 13:02:50.341 | mlt_consumer.c:908: T(mlt_frame_get_image)=18295 us
| 2020-04-24 13:02:50.341 | mlt_consumer.c:864: T(mlt_consumer_get_frame)=206 us
| 2020-04-24 13:02:50.341 | [filter audiolevel] channel 0 level 0.000000
| 2020-04-24 13:02:50.341 | [filter audiolevel] channel 1 level 0.000000
| 2020-04-24 13:02:50.343 | [filter avcolor_space] rgb24a @ 1920x1080 -> yuv422 @ 1920x1080 space 709->709
| 2020-04-24 13:02:50.356 | [filter deinterlace] error 0 deint 1 prog 1 fmt yuv422 method onefield
| 2020-04-24 13:02:50.356 | TFF in 0 out -1
| 2020-04-24 13:02:50.356 | mlt_consumer.c:908: T(mlt_frame_get_image)=14851 us
| 2020-04-24 13:02:50.356 | mlt_consumer.c:864: T(mlt_consumer_get_frame)=413 us
| 2020-04-24 13:02:50.356 | [filter audiolevel] channel 0 level 0.000000
| 2020-04-24 13:02:50.356 | [filter audiolevel] channel 1 level 0.000000
| 2020-04-24 13:02:50.361 | [filter avcolor_space] rgb24a @ 1920x1080 -> yuv422 @ 1920x1080 space 709->709
| 2020-04-24 13:02:50.375 | [filter deinterlace] error 0 deint 1 prog 1 fmt yuv422 method onefield
| 2020-04-24 13:02:50.375 | TFF in 0 out -1
| 2020-04-24 13:02:50.375 | mlt_consumer.c:908: T(mlt_frame_get_image)=19209 us
| 2020-04-24 13:02:50.399 | [consumer sdl2_audio] stopping read_ahead
| 2020-04-24 13:02:50.400 | mlt_consumer.c:864: T(mlt_consumer_get_frame)=309 us
| 2020-04-24 13:02:50.400 | [filter audiolevel] channel 0 level 0.000000
| 2020-04-24 13:02:50.400 | [filter audiolevel] channel 1 level 0.000000
| 2020-04-24 13:02:50.402 | [filter avcolor_space] rgb24a @ 1920x1080 -> yuv422 @ 1920x1080 space 709->709
| 2020-04-24 13:02:50.420 | [filter deinterlace] error 0 deint 1 prog 1 fmt yuv422 method onefield
| 2020-04-24 13:02:50.420 | TFF in 0 out -1
| 2020-04-24 13:02:50.420 | mlt_consumer.c:908: T(mlt_frame_get_image)=20273 us
| 2020-04-24 13:02:50.420 | [consumer sdl2_audio] stopped
QUnifiedTimer::stopAnimationDriver: driver is not running
Case insensitive sorting unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Calling appendChild() on a null node does nothing.
/tmp/.mount_kdenliwJpFwI/AppRun: line 26: 11030 세그멘테이션 오류 (core dumped) kdenlive --config kdenlive-appimagerc $@

and 세그먼테이션 오류 is 'segmentation fault'.

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

ADDITIONAL INFORMATION

Some of my clips' filenames are of Korean.
and my clips from the original project are all over (as you might find yourself reading the original project file I attached here)

Also, I tried the same step on my other Windows 8.1 system with the latest Kdenlive program of the same version and it gives this "no tarcks found" in the end (not crushing but staying as clean slate)

Let me share the original kdenlive project file and then archived one in the attachment.
Comment 1 Shinjo Park 2020-04-24 13:35:52 UTC
Some useful backtraces upon opening archived.kdenlive (in the attachment):

#0  0x00007ffff7403eac in QDomNamedNodeMapPrivate::clearMap() (this=0x55555a0a2690) at /usr/include/c++/9/bits/atomic_base.h:326
#1  0x00007ffff74041b3 in QDomNamedNodeMapPrivate::~QDomNamedNodeMapPrivate() (this=0x55555a0a2690, __in_chrg=<optimized out>) at dom/qdom.cpp:3044
#2  QDomElementPrivate::~QDomElementPrivate() (this=0x55555a094bb0, __in_chrg=<optimized out>) at dom/qdom.cpp:4423
#3  0x00007ffff740421d in QDomElementPrivate::~QDomElementPrivate() (this=0x55555a094bb0, __in_chrg=<optimized out>) at dom/qdom.cpp:4420
#4  0x0000555555b1b56f in QDomElement::~QDomElement() (this=0x7fffffffbfb8, __in_chrg=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtXml/qdom.h:471
#5  Xml::addXmlProperties(QDomElement&, QMap<QString, QString> const&) (element=..., properties=...) at ./src/xml/xml.cpp:98
#6  0x0000555555b1d4c0 in Xml::setXmlProperty(QDomElement, QString const&, QString const&) (element=..., propertyName=..., value=...) at ./src/xml/xml.cpp:133
#7  0x0000555555b3e015 in DocumentValidator::upgrade(double, double) (this=this@entry=0x7fffffffc6d0, version=version@entry=0, currentVersion=currentVersion@entry=0.98999999999999999) at ./src/doc/documentvalidator.cpp:1941
#8  0x0000555555b474e6 in DocumentValidator::validate(double) (this=this@entry=0x7fffffffc6d0, currentVersion=currentVersion@entry=0.98999999999999999) at ./src/doc/documentvalidator.cpp:226
#9  0x0000555555870783 in KdenliveDoc::KdenliveDoc(QUrl const&, QString, QUndoGroup*, QString const&, QMap<QString, QString> const&, QMap<QString, QString> const&, QPoint const&, bool*, MainWindow*) (this=0x555558d0f990, url=..., projectFolder=..., undoGroup=<optimized out>, profileName=..., properties=..., metadata=..., tracks=..., openBackup=0x7fffffffc86f, parent=0x5555561bcfb0) at ./src/doc/kdenlivedoc.cpp:221

The result of mainplaylist.toElement() is null, leading to this error.

I can confirm this on Ubuntu 20.04 / Kdenlive 19.12.3.
Comment 2 Shinjo Park 2020-04-24 16:12:17 UTC
Update: Could you please try opening the same file using Kdenlive 20.04? In 20.04 it says "Project file is corrupted (no tracks). Try to find a backup file?" and if I click on the Cancel nothing happens.
Comment 3 Jean-Baptiste Mardelle 2020-04-24 19:43:05 UTC
Thanks for your report. I can confirm that the archive feature creates broken project files. Working on it...
Comment 4 Jean-Baptiste Mardelle 2020-04-24 20:35:28 UTC
Git commit f655c9190cbf4d6935ce5dc01b18f6f148364928 by Jean-Baptiste Mardelle.
Committed on 24/04/2020 at 20:34.
Pushed by mardelle into branch 'release/20.04'.

Fix "archive project" creating broken backup files

M  +1    -1    src/doc/kdenlivedoc.cpp
M  +4    -3    src/mainwindow.cpp
M  +47   -32   src/project/dialogs/archivewidget.cpp
M  +4    -4    src/project/dialogs/archivewidget.h

https://invent.kde.org/kde/kdenlive/commit/f655c9190cbf4d6935ce5dc01b18f6f148364928
Comment 5 joern 2020-10-19 08:04:43 UTC
Created attachment 132550 [details]
New crash information added by DrKonqi

kdenlive (19.12.3) using Qt 5.12.8

- What I was doing when the application crashed:
Opened an archived project. The source project still openes, but the archived project crashes.

-- Backtrace (Reduced):
#9  0x000055576687856f in QDomElement::~QDomElement (this=0x7fffdc977f88, __in_chrg=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtXml/qdom.h:471
#10 Xml::addXmlProperties (element=..., properties=...) at ./src/xml/xml.cpp:98
#11 0x000055576687a4c0 in Xml::setXmlProperty (element=..., propertyName=..., value=...) at ./src/xml/xml.cpp:133
#12 0x000055576689b015 in DocumentValidator::upgrade (this=this@entry=0x7fffdc9786a0, version=version@entry=0, currentVersion=currentVersion@entry=0.98999999999999999) at ./src/doc/documentvalidator.cpp:1941
#13 0x00005557668a44e6 in DocumentValidator::validate (this=this@entry=0x7fffdc9786a0, currentVersion=currentVersion@entry=0.98999999999999999) at ./src/doc/documentvalidator.cpp:226
Comment 6 emohr 2020-10-21 15:56:01 UTC
added to issue: https://invent.kde.org/multimedia/kdenlive/-/issues/535
Comment 7 Jean-Baptiste Mardelle 2020-10-21 19:18:01 UTC
Git commit c18bf45a7031e35cbacf9da42ac3b75bc14af7a8 by Jean-Baptiste Mardelle.
Committed on 21/10/2020 at 19:17.
Pushed by mardelle into branch 'master'.

Fix opening project files with missing version number

M  +8    -0    src/doc/documentvalidator.cpp

https://invent.kde.org/multimedia/kdenlive/commit/c18bf45a7031e35cbacf9da42ac3b75bc14af7a8
Comment 8 Jean-Baptiste Mardelle 2020-10-21 19:19:05 UTC
Git commit e5287c0df33acbd83778b7671dc162db2040c95d by Jean-Baptiste Mardelle.
Committed on 21/10/2020 at 19:18.
Pushed by mardelle into branch 'release/20.08'.

Fix opening project files with missing version number

M  +8    -0    src/doc/documentvalidator.cpp

https://invent.kde.org/multimedia/kdenlive/commit/e5287c0df33acbd83778b7671dc162db2040c95d
Comment 9 farid 2020-11-02 19:03:13 UTC
Hello

Could you please test if this is fixed with latest changes?

Thanks
Comment 10 Bug Janitor Service 2020-11-17 04:33:47 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2020-12-02 04:34:10 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

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