Bug 469693 - Flakpak only. Crashes when trying to add the "Bezier Curve" effect.
Summary: Flakpak only. Crashes when trying to add the "Bezier Curve" effect.
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Effects & Transitions (show other bugs)
Version: 23.04.1
Platform: Flatpak Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-13 10:09 UTC by Andrey
Modified: 2023-05-14 19:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2023-05-13 10:09:27 UTC
SUMMARY
***
Flakpak only. Crashes when trying to add the "Bezier Curve" effect.

STEPS TO REPRODUCE
1. Add any clip.
2. Drag and drop the "Bezier Curve" effect.

OBSERVED RESULT
Crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 11
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9 (built against 5.15.9)

ADDITIONAL INFORMATION
Full log:

Qt: Session management error: None of the authentication protocols specified are supported
profilePath from KdenliveSetting::mltPath:  "/app/share/mlt-7/profiles"
meltPath from KdenliveSetting::rendererPath:  "/app/bin/melt"
Empty metadata for  "audiochannels"
Empty metadata for  "audioconvert"
Empty metadata for  "imageconvert"
Empty metadata for  "glsl.manager"
Empty metadata for  "telecide"
plugin not available: "avfilter.acompressor"
plugin not available: "avfilter.aecho"
plugin not available: "avfilter.agate"
plugin not available: "avfilter.atadenoise"
plugin not available: "avfilter.bs2b"
plugin not available: "avfilter.bwdif"
plugin not available: "avfilter.deblock"
plugin not available: "avfilter.dedot"
plugin not available: "avfilter.deflate"
plugin not available: "avfilter.derain"
plugin not available: "avfilter.doubleweave"
plugin not available: "avfilter.field"
plugin not available: "avfilter.framestep"
plugin not available: "avfilter.fspp"
plugin not available: "avfilter.graphmonitor"
plugin not available: "avfilter.hqdn3d"
plugin not available: "avfilter.inflate"
plugin not available: "avfilter.lagfun"
plugin not available: "avfilter.loudnorm"
plugin not available: "avfilter.mcdeint"
plugin not available: "avfilter.random"
plugin not available: "avfilter.removegrain"
plugin not available: "avfilter.separatefields"
plugin not available: "avfilter.shuffleplanes"
plugin not available: "avfilter.sofalizer"
plugin not available: "avfilter.sr"
plugin not available: "avfilter.tmix"
plugin not available: "avfilter.w3fdif"
plugin not available: "avfilter.weave"
plugin not available: "avfilter.yadif"
plugin not available: "frei0r.baltan"
plugin not available: "frei0r.bgsubtract0r"
plugin not available: "frei0r.delay0r"
plugin not available: "frei0r.delaygrab"
plugin not available: "frei0r.facebl0r"
plugin not available: "frei0r.facedetect"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "movit.unsharp_mask"
plugin not available: "timewarp"
plugin not available: "region"
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
:::: NOT FOUND DOCUMENT GUIDES !!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qrc:/qml/timeline.qml:497: ReferenceError: proxy is not defined
qrc:/qml/timeline.qml:478: ReferenceError: proxy is not defined
==== NO PREVIOUS TIMELINE
==== CONNECT NEW TIMELINE, MODEL: 0
::::::::::: connecting timeline:  QUuid("{68a99985-1988-482e-a4cc-4084ed478b5a}") , DUR:  0
root context get sub model new function
HHHHHHHHHHHH
INVALID BIN PLAYLIST...
=== OPENING FILE WITH TRACKS:  5
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
=== GOT THUMB FOR:  -1 x -1
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
===== ACTIVATING DOCUMENT:  QUuid("{68a99985-1988-482e-a4cc-4084ed478b5a}") 
::::::::::::::::::::::
qml: item not found
/////////// starting to add bin clips
kf.kio.widgets.kdirmodel: No node found for item that was just removed: QUrl("file:///media/filmwork/Olshanoe - Лён/Dokument_Microsoft_Word.docx")
kf.coreaddons: Expected a KPluginFactory, got a KIOPluginForMetaData
kf.coreaddons: Expected a KPluginFactory, got a KIOPluginForMetaData
kf.coreaddons: Expected a KPluginFactory, got a KIOPluginForMetaData
kf.config.core: Couldn't create a new file: "/home/olaf/.var/app/org.kde.kdenlive/config/kdeglobals" . Error: "Existing file /home/olaf/.var/app/org.kde.kdenlive/config/kdeglobals is not writable"
/////////// found list (QUrl("file:///media/filmwork/Сила жизни/footage/Isa61_Мшистый_склон-у_костра_proc/PC190027_levels_deband.mkv"))
/////////// creatclipsfromlist (QUrl("file:///media/filmwork/Сила жизни/footage/Isa61_Мшистый_склон-у_костра_proc/PC190027_levels_deband.mkv")) true "-1"
virtual QStringList Solid::Backends::UPower::UPowerManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown"
virtual QStringList Solid::Backends::UPower::UPowerManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown"
/////////// createClipFromFile "/media/filmwork/Сила жизни/footage/Isa61_Мшистый_склон-у_костра_proc/PC190027_levels_deband.mkv" "-1"
=== GOT DROPPED MIME:  "video/x-matroska"
/////////// final xml "<producer>\n <property name=\"resource\">/media/filmwork/Сила жизни/footage/Isa61_Мшистый_склон-у_костра_proc/PC190027_levels_deband.mkv</property>\n</producer>\n"
============STARTING LOAD TASK FOR:  "/media/filmwork/Сила жизни/footage/Isa61_Мшистый_склон-у_костра_proc/PC190027_levels_deband.mkv" 

:::::::::::::::::::
################### ProjectClip::setproducer #################
========== READY FOR TASK DISCARD ON:  4
====== SETTING TASK CANCELED:  1 , TYPE:  8
========== DELETING JOB!!!!
################### ClipController::updateProducer
################### ClipController::addmasterproducer FOR:  "4"
------------
FOUND PRESET CTYPE:  2 
------------------------
=======

SETTING AUDIO DATA IN MONITOR EMPTY!!!
MUTEX LOCK!!!!!!!!!!!! setmodel
MUTEX UNLOCK!!!!!!!!!!!! setmodel
MUTEX LOCK!!!!!!!!!!!! loadEffects COUNT:  0
=== GOT THUMB FOR:  -1 x -1
QMutex: destroying locked mutex
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
========== READY FOR TASK DISCARD ON:  4
============STARTING LOAD TASK FOR:  "/media/filmwork/Сила жизни/footage/Isa61_Мшистый_склон-у_костра_proc/PC190027_levels_deband.mkv" 

:::::::::::::::::::
################### ProjectClip::setproducer #################
========== READY FOR TASK DISCARD ON:  4
################### ClipController::updateProducer
------------
FOUND PRESET CTYPE:  2 
------------------------
// replace finished:  "4"  :  /media/filmwork/Сила жизни/footage/Isa61_Мшистый_склон-у_костра_proc/PC190027_levels_deband.mkv
=======

SETTING AUDIO DATA IN MONITOR EMPTY!!!
=== GOT THUMB FOR:  -1 x -1
// GET TIMELINE PROD FOR STREAM:  -1
==== BUILT CLIP STREAM:  -1
REGISTRATION  5 ptr count 6
qml: loaded clip:  108 , ID:  5 , index:  0 , TYPE: Video
qml: loaded clip with Astream:  -1
qml: loaded clip:  46 , ID:  5 , index:  1 , TYPE: Video
qml: loaded clip with Astream:  -1
========== READY FOR TASK DISCARD ON:  5
// GET TIMELINE PROD FOR STREAM:  -1
==== BUILT CLIP STREAM:  -1
REGISTRATION  6 ptr count 6
============= CLONED CLIP: 

 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mlt LC_NUMERIC=\"C\" version=\"7.15.0\"><chain id=\"chain0\" out=\"2039\"><property name=\"length\">2040</property><property name=\"eof\">pause</property><property name=\"resource\">/media/filmwork/\xD0\xA1\xD0\xB8\xD0\xBB\xD0\xB0 \xD0\xB6\xD0\xB8\xD0\xB7\xD0\xBD\xD0\xB8/footage/Isa61_\xD0\x9C\xD1\x88\xD0\xB8\xD1\x81\xD1\x82\xD1\x8B\xD0\xB9_\xD1\x81\xD0\xBA\xD0\xBB\xD0\xBE\xD0\xBD-\xD1\x83_\xD0\xBA\xD0\xBE\xD1\x81\xD1\x82\xD1\x80\xD0\xB0_proc/PC190027_levels_deband.mkv</property><property name=\"mlt_service\">avformat</property><property name=\"seekable\">1</property><property name=\"audio_index\">-1</property><property name=\"video_index\">0</property><property name=\"kdenlive:clipname\"></property><property name=\"kdenlive:clip_type\">2</property><property name=\"kdenlive:folderid\">-1</property><property name=\"kdenlive:id\">4</property><property name=\"mute_on_pause\">0</property><property name=\"kdenlive:file_size\">1232730677</property><property name=\"kdenlive:file_hash\">7827fb430266aebaf8d65a219062819f</property></chain></mlt>\n" 

======================
::: UPDATING MAIN TIMELINE DURATION:  2040
// SETTING CLIP PROPERTIES:  QMap(("kdenlive:duration", "00:01:25:02")("kdenlive:maxduration", "2040")("length", "2040")("out", "2039"))
qml: loaded clip:  0 , ID:  6 , index:  1 , TYPE: Video
qml: loaded clip with Astream:  -1
qrc:/qml/assetList.qml:396:17: QML TextArea: Binding loop detected for property "implicitWidth"
qrc:/qml/assetList.qml:396:17: QML TextArea: Binding loop detected for property "implicitWidth"
qml: [kdenlive/effect]
qml: Add effect:  frei0r.bezier_curves
XML parsing of  "frei0r.bezier_curves" . found 3 parameters
QLocale: Default value is QVariant(double, 0.5) parsed: "0.5"
QLocale: Default value is QVariant(double, 1) parsed: "1"
QLocale: Default value is QVariant(QString, "-1;-1#0;0#0.1;0.1|0.9;0.9#1;1#2;2") parsed: "-1;-1#0;0#0.1;0.1|0.9;0.9#1;1#2;2"
kf.i18n: Trying to convert empty KLocalizedString to QString.
END parsing of  "frei0r.bezier_curves" . Number of found parameters 3
// GOT CLIP STACK DATA CHANGE:  QVector(308)
// GOT CLIP STACK DATA CHANGE DONE:  QModelIndex(0,0,0x6,TimelineItemModel(0x560e3736efb0))  =  QVector(308)
qml: item not found
double free or corruption (!prev)
Comment 1 emohr 2023-05-14 18:01:42 UTC
Please try with the current Kdenlive AppImage version 23.04.1 to see if there are any packaging issues https://kdenlive.org/en/download/
Comment 2 Andrey 2023-05-14 18:05:34 UTC
(In reply to emohr from comment #1)
> Please try with the current Kdenlive AppImage version 23.04.1 to see if
> there are any packaging issues https://kdenlive.org/en/download/

I tried and there is no crash (that's why I wrote "Flatpak only") but that "double free or corruption (!prev)" message is too suspicious for being a packaging issue, it may be a memory leak in the program itself, it just manifests itself in the Flatpak environment.
Comment 3 Jean-Baptiste Mardelle 2023-05-14 19:20:08 UTC
this was a problem in Frei0r's curves effect and was recently fixed with this commit: 
https://github.com/dyne/frei0r/commit/a0bc641d9b07307f17b323a951e0f0fbcb205e80
Comment 4 Andrey 2023-05-14 19:35:46 UTC
Thanks! I'll forward the solution to the Flathub packagers.