Bug 241497 - multimedia/kdenlive & multimedia/shotcut crash immediately after enabling gpu acceleration and import a video or photo to the project
Summary: multimedia/kdenlive & multimedia/shotcut crash immediately after enabling gpu...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: kde
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-26 07:17 UTC by Christos
Modified: 2019-11-20 06:01 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christos 2019-10-26 07:17:10 UTC
There are some serious bugs affecting these video editors applications: Kdenlive & Shotcut.
The bug occurs when you enable gpu acceleration and it has to do with some of these frameworks: Movit(kdenlive) MLT (shotcut) , frei0r (?)
The bug occurs when you enable gpu acceleration and you try to import a media to your project and then the application crashes immediately !
The same thing happens with amd and nvidia graphics cards
I can guess that something has to do with linux compatibility and the amdgpu and nvidia drivers ?????
I have tried Openshot and from the performance it has i can say it uses gpu acceleration without any problem it can render and preview demanding projects with effects and many video layers very smoothly on freebsd.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-10-26 08:10:36 UTC
Assign: multimedia/kdenlive is kde@; the other port appears to be unmaintained.
Comment 2 daeron 2019-11-19 23:35:16 UTC
Multimedia/Shotcut on a 12.1-Stable AMD64 workstation appears to seg fault while trying to load its "EncodeDock"

gdb is its usual fourntain of wisdom:
Core was generated by `shotcut'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000008006a6ab1 in ?? ()

shotcut
Gtk-Message: 09:59:25.944: Failed to load module "appmenu-gtk-module"
[Info   ] <Application::Application> Starting Shotcut version 19.10.20 
[Info   ] <Application::Application> Linux version 
[Info   ] <Application::Application> number of logical cores = 12 
[Info   ] <Application::Application> locale = QLocale(C, Default, Default) 
[Info   ] <Application::Application> install dir = "/usr/local/bin" 
[Info   ] <Application::Application> device pixel ratio = 1 
[Debug  ] <ShotcutSettings::log> language "C" 
[Debug  ] <ShotcutSettings::log> deinterlacer "onefield" 
[Debug  ] <ShotcutSettings::log> external monitor "" 
[Debug  ] <ShotcutSettings::log> GPU processing false 
[Debug  ] <ShotcutSettings::log> interpolation "bilinear" 
[Debug  ] <ShotcutSettings::log> video mode "atsc_720p_50" 
[Debug  ] <ShotcutSettings::log> realtime true 
[Debug  ] <ShotcutSettings::log> audio channels 1 
[Debug  ] <MainWindow::changeTheme> begin 
[Debug  ] <MainWindow::changeTheme> end 
[Debug  ] <MainWindow::MainWindow> begin 
[Info   ] <GLTestWidget::GLTestWidget> OpenGL context version 4 5 
[Debug  ] <Mlt::Controller::Controller> begin 
[Warning] <MLT> mlt_repository_init: failed to dlopen /usr/local/lib/mlt/libmltavformat.so  (/usr/local/lib/libflite_cmu_us_awb.so.1: Undefined symbol "usenglish_init")
[Info   ] <Mlt::Controller::resetLocale> decimal point . 
[Debug  ] <Mlt::Controller::Controller> end 
[Debug  ] <Mlt::GLWidget::GLWidget> begin 
[Debug  ] <Mlt::GLWidget::GLWidget> end 
[Debug  ] <MainWindow::setupSettingsMenu> begin 
Shared object "libDeckLinkAPI.so" not found, required by "shotcut"
[Warning] <MLT> [ 0x8078eba10] The DeckLink drivers not installed.
[Debug  ] <MainWindow::setupSettingsMenu> end 
[Debug  ] <MainWindow::readPlayerSettings> begin 
[Debug  ] <MainWindow::setAudioChannels> 1 
[Debug  ] <Mlt::Controller::setAudioChannels> 1 
[Debug  ] <MainWindow::readPlayerSettings> end 
[Debug  ] <MainWindow::configureVideoWidget> begin 
[Debug  ] <MainWindow::setProfile> "atsc_720p_50" 
[Debug  ] <Mlt::Controller::setProfile> setting to profile "atsc_720p_50" 
[Debug  ] <MainWindow::setAudioChannels> 1 
[Debug  ] <Mlt::Controller::setAudioChannels> 1 
[Debug  ] <MainWindow::configureVideoWidget> end 
[Debug  ] <ScopeController::ScopeController> begin 
[Debug  ] <ScopeWidget::ScopeWidget> begin true 
[Debug  ] <ScopeWidget::ScopeWidget> end 
[Debug  ] <AudioLoudnessScopeWidget::AudioLoudnessScopeWidget> begin 
[Debug  ] <AudioLoudnessScopeWidget::AudioLoudnessScopeWidget> end 
[Debug  ] <ScopeDock::ScopeDock> begin 
[Debug  ] <ScopeDock::ScopeDock> end 
[Debug  ] <ScopeWidget::ScopeWidget> begin true 
[Debug  ] <ScopeWidget::ScopeWidget> end 
[Debug  ] <AudioPeakMeterScopeWidget::AudioPeakMeterScopeWidget> begin 
[Debug  ] <AudioPeakMeterScopeWidget::AudioPeakMeterScopeWidget> end 
[Debug  ] <ScopeDock::ScopeDock> begin 
[Debug  ] <ScopeDock::ScopeDock> end 
[Debug  ] <ScopeWidget::ScopeWidget> begin true 
[Debug  ] <ScopeWidget::ScopeWidget> end 
[Debug  ] <AudioSpectrumScopeWidget::AudioSpectrumScopeWidget> begin 
[Debug  ] <AudioSpectrumScopeWidget::AudioSpectrumScopeWidget> end 
[Debug  ] <ScopeDock::ScopeDock> begin 
[Debug  ] <ScopeDock::ScopeDock> end 
[Debug  ] <ScopeWidget::ScopeWidget> begin true 
[Debug  ] <ScopeWidget::ScopeWidget> end 
[Debug  ] <AudioWaveformScopeWidget::AudioWaveformScopeWidget> begin 
[Debug  ] <AudioWaveformScopeWidget::AudioWaveformScopeWidget> end 
[Debug  ] <ScopeDock::ScopeDock> begin 
[Debug  ] <ScopeDock::ScopeDock> end 
[Debug  ] <ScopeWidget::ScopeWidget> begin true 
[Debug  ] <ScopeWidget::ScopeWidget> end 
[Debug  ] <VideoHistogramScopeWidget::VideoHistogramScopeWidget> begin 
[Debug  ] <VideoHistogramScopeWidget::VideoHistogramScopeWidget> end 
[Debug  ] <ScopeDock::ScopeDock> begin 
[Debug  ] <ScopeDock::ScopeDock> end 
[Debug  ] <ScopeWidget::ScopeWidget> begin true 
[Debug  ] <ScopeWidget::ScopeWidget> end 
[Debug  ] <VideoWaveformScopeWidget::VideoWaveformScopeWidget> begin 
[Debug  ] <VideoWaveformScopeWidget::VideoWaveformScopeWidget> end 
[Debug  ] <ScopeDock::ScopeDock> begin 
[Debug  ] <ScopeDock::ScopeDock> end 
[Debug  ] <ScopeController::ScopeController> end 
[Debug  ] <RecentDock::RecentDock> begin 
[Debug  ] <RecentDock::RecentDock> end 
[Debug  ] <PlaylistDock::PlaylistDock> begin 
[Debug  ] <PlaylistDock::PlaylistDock> end 
[Debug  ] <TimelineDock::TimelineDock> begin 
[Debug  ] <TimelineDock::TimelineDock> end 
[Debug  ] <FiltersDock::FiltersDock> begin 
[Debug  ] <FiltersDock::FiltersDock> end 
[Debug  ] <KeyframesDock::KeyframesDock> begin 
[Debug  ] <KeyframesDock::KeyframesDock> end 
[Debug  ] <EncodeDock::EncodeDock> begin 
Segmentation fault (core dumped)
Comment 3 daeron 2019-11-20 06:01:16 UTC
multimedia/kdenlive
 on a 12.1-Stable AMD64 workstation only provides a GUI message such as
 "Cannot open file /home/X/X/X/video.mp4"
 when attempting to import any kind of video (irrespective of format or container type).
  It can import images jpegs/png etc. but the images are distorted when displayed in the application's 'clip monitor' as if interlaced with something else.

I see no difference in application behaviour when disabling all options in the port.


On starting the kdenlive application it produces these warnings & other messages:

kdenlive
Gtk-Message: 15:57:33.512: Failed to load module "appmenu-gtk-module"
mlt_repository_init: failed to dlopen /usr/local/lib/mlt/libmltavformat.so
  (/usr/local/lib/libflite_cmu_us_awb.so.1: Undefined symbol "usenglish_init")
WARNING : Fails to parse  "audiochannels"
WARNING : Fails to parse  "audioconvert"
WARNING : Fails to parse  "data_feed"
"data_show" is blacklisted
WARNING : Fails to parse  "imageconvert"
"mask_apply" is blacklisted
"mask_start" is blacklisted
"mono" is blacklisted
"region" is blacklisted
"resize" is blacklisted
"transition" is blacklisted
"watermark" is blacklisted
"frei0r.3dflippo" is blacklisted
"frei0r.bluescreen0r" is blacklisted
"frei0r.bw0r" is blacklisted
"frei0r.gamma" is blacklisted
"frei0r.invert0r" is blacklisted
"frei0r.rgbsplit0r" is blacklisted
"frei0r.tehRoxx0r" is blacklisted
"frei0r.transparency" is blacklisted
"frei0r.vertigo" is blacklisted
"gtkrescale" is blacklisted
"motion_est" is blacklisted
WARNING : Fails to parse  "crop_detect"
WARNING : Fails to parse  "glsl.manager"
WARNING : Fails to parse  "movit.convert"
WARNING : Fails to parse  "movit.crop"
WARNING : Fails to parse  "movit.resample"
WARNING : Fails to parse  "movit.resize"
"rgblut" is blacklisted
"spot_remover" is blacklisted
"text" is blacklisted
"timer" is blacklisted
WARNING : Fails to parse  "telecide"
"resample" is blacklisted
"videostab" is blacklisted
"videostab2" is blacklisted
"qtext" is blacklisted
WARNING : Fails to parse  "deinterlace"
WARNING : Fails to parse  "webvfx"
++++++ Unknown asset :  "avfilter.acompressor"
++++++ Unknown asset :  "avfilter.aecho"
++++++ Unknown asset :  "avfilter.agate"
++++++ Unknown asset :  "avfilter.lut3d"
Warning: duplicate custom definition of effect "frei0r.alpha0ps" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/frei0r_alpha0ps.xml"
Warning: duplicate custom definition of effect "frei0r.balanc0r" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/frei0r_balanc0r.xml"
Warning: duplicate custom definition of effect "frei0r.curves" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/frei0r_curves.xml"
++++++ Unknown asset :  "frei0r.facebl0r"
++++++ Unknown asset :  "frei0r.facedetect"
Warning: duplicate custom definition of effect "frei0r.levels" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/frei0r_levels.xml"
Warning: duplicate custom definition of effect "frei0r.lightgraffiti" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/frei0r_lightgraffiti.xml"
Warning: duplicate custom definition of effect "frei0r.select0r" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/frei0r_select0r.xml"
Warning: duplicate custom definition of effect "frei0r.sopsat" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/frei0r_sopsat.xml"
++++++ Unknown asset :  "frei0r.tehRoxx0r"
++++++ Unknown asset :  "frei0r.vertigo"
++++++ Unknown asset :  "frei0r.vertigo"
++++++ Unknown asset :  "movit.unsharp_mask"
Warning: duplicate custom definition of effect "qtblend" found. Only last one will be considered. Duplicate found in "/usr/local/share/kdenlive/effects/qtblend.xml"
++++++ Unknown asset :  "region"
++++++ Unknown asset :  "avfilter.selectivecolor"
++++++ Unknown asset :  "timewarp"
++++++ Unknown asset :  "opencv.tracker"
"frei0r.alphainjection" is blacklisted
"frei0r.blend" is blacklisted
"frei0r.composition" is blacklisted
"frei0r.xfade0r" is blacklisted
"webvfx" is blacklisted
kf5.ki18n: "0 instead of 1 arguments to message {%1 fps} supplied before conversion."
kf5.ki18n: "0 instead of 1 arguments to message {%1 fps} supplied before conversion."
Loading bin playlist...
//////////////////////
Trying to construct 5 tracks.
////////////////////////////////
SUSPICIOUS: we weren't expecting a producer when parsing the timeline
kdeinit5: preparing to launch '/usr/local/lib/libexec/kf5/klauncher'
kdeinit5: Launched KLauncher, pid = 67072, result = 0
Gtk-Message: 15:57:37.982: Failed to load module "appmenu-gtk-module"
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit5: opened connection to :0.0
kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/file.so'
kf5.ki18n: i18n() needs at least one parameter
kf5.ki18n: i18n() needs at least one parameter
kf5.ki18n: i18n() needs at least one parameter


When I open a new project, kdenlive seems ok and responds:

//// INITIAL REPORT; ENABLE EXT PROCY:  false 
++++++++
Model size of -3 is less than 0
Loading bin playlist...
//////////////////////
Trying to construct 5 tracks.
////////////////////////////////
SUSPICIOUS: we weren't expecting a producer when parsing the timeline


When I open the GUI to select a video clip to import, it seems ok and responds:

/////////// starting to add bin clips
QKqueueFileSystemWatcherEngine::addPaths: open: No such file or directory
kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/tags.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/tags.so'
kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/thumbnail.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/thumbnail.so'
Gtk-Message: 15:58:37.410: Failed to load module "appmenu-gtk-module"
Qt: Session management error: networkIdsList argument is NULL


But when attempting to import a selected video clip (of any codec/container) it responds such as:

/////////// found list (QUrl("file:///home/andrew/Downloads/Video/Education_regression_to_mean.mp4"))
/////////// creatclipsfromlist (QUrl("file:///home/andrew/Downloads/Video/Education_regression_to_mean.mp4")) true "-1"
/////////// createClipFromFile "/home/X/X/X/Education_regression_to_mean.mp4" "-1" "/home/X/X/X/Education_regression_to_mean.mp4" "video/mp4"
/////////// final xml "<producer _checkProfile=\"1\">\n <property name=\"resource\">/home/X/X/X/Education_regression_to_mean.mp4</property>\n</producer>\n"
/////////// requestAddBinClip "-1"
/////////// found id "2"
/////////// constructed 
/////////// added  true
/////////// creatclipsfromlist return true
################### JOB finished 0
 * * * ** * * *
WARNING + + +
JOB NOT CORRECT FINISH:  0 
------------------------

And the GUI outputs the message "Cannot open file /home/X/X/X/video.mp4"

When I attempted a second time, it responded as:

/////////// starting to add bin clips
kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/tags.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/tags.so'
kf5.kio.widgets: No node found for item that was just removed: QUrl("file:///home/X/X/X/Johnny_Nash_-_I_Can_See_Clearly_Now.html")
kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/file.so'
/////////// found list (QUrl("file:///home/X/X/X/Black History Moments Junteenth.mp4"))
/////////// creatclipsfromlist (QUrl("file:///home/X/X/X/Black History Moments Junteenth.mp4")) true "-1"
/////////// createClipFromFile "/home/X/X/X/Black History Moments Junteenth.mp4" "-1" "/home/andrew/Downloads/Video/Black History Moments Junteenth.mp4" "video/mp4"
/////////// final xml "<producer _checkProfile=\"1\">\n <property name=\"resource\">/home/X/X/X/Black History Moments Junteenth.mp4</property>\n</producer>\n"
/////////// requestAddBinClip "-1"
/////////// found id "3"
/////////// constructed 
/////////// added  true
/////////// creatclipsfromlist return true
################### JOB finished 4
 * * * ** * * *
WARNING + + +
JOB NOT CORRECT FINISH:  4 
------------------------


When attempting to import a jpeg it responded:

 kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/tags.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/tags.so'
kdeinit5: Got EXEC_NEW '/usr/local/lib/qt5/plugins/kf5/kio/thumbnail.so' from launcher.
kdeinit5: preparing to launch '/usr/local/lib/qt5/plugins/kf5/kio/thumbnail.so'
Gtk-Message: 16:14:09.767: Failed to load module "appmenu-gtk-module"
Qt: Session management error: networkIdsList argument is NULL