Bug 439294 - Kdenlive will crash at startup on MacOS
Summary: Kdenlive will crash at startup on MacOS
Status: RESOLVED MOVED
Alias: None
Product: kdenlive
Classification: Applications
Component: Setup & Installation (show other bugs)
Version: git-master
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Vincent PINON
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-29 10:54 UTC by M-Rick
Modified: 2021-09-28 22:29 UTC (History)
2 users (show)

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


Attachments
Frameworks directory without any of the necessary Qt libraries (188.33 KB, image/png)
2021-06-29 10:54 UTC, M-Rick
Details
Crash log (8.41 KB, text/plain)
2021-06-29 10:54 UTC, M-Rick
Details
Example of startup deamon file (760 bytes, application/xml)
2021-06-29 12:53 UTC, M-Rick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M-Rick 2021-06-29 10:54:33 UTC
Created attachment 139735 [details]
Frameworks directory without any of the necessary Qt libraries

Kdenlive will crash at startup on MacOS.
All the necessary Qt libraries are missing in the packaged application.
https://binary-factory.kde.org/view/MacOS/job/Kdenlive_Nightly_macos/lastSuccessfulBuild/

You should give a look at QGIS Mac that embed most of the necessary Qt libraries.
https://github.com/qgis/QGIS-Mac-Packager


SOFTWARE/OS VERSIONS
macOS: 10.14.6
Qt Version: 5.x
Comment 1 M-Rick 2021-06-29 10:54:59 UTC
Created attachment 139736 [details]
Crash log
Comment 2 Vincent PINON 2021-06-29 12:14:30 UTC
Hello,
Thanks for your interest in Kdenlive on Mac ;)
These DMGs are an attempt with KDE Craft packaging tool, dating back from April. Craft is constantly evolving, sometimes broken, maybe it worked before and would work better if we triggered a new build (Craft is shared with other KDE & non-KDE apps that do work).
However last time I looked at it, it was failing due to our need for DBus, and there doesn't seem there is yet a proper way to launch DBus from a DMG (I'm absolutely not a specialist, maybe it is trivial, but it doesn't seem so to me)
Comment 3 M-Rick 2021-06-29 12:47:19 UTC
It's because the DMG is a disk image such as an ISO. But in order to launch a deamon like D-Bus, you cannot launch it directly from a single drag-and-drop install. Mac applications are packages like Appimages in Linux.
So to launch a deamon it's better to create a pkg that can embed shell scripts.
https://en.wikipedia.org/wiki/Package_(macOS)

https://en.wikipedia.org/wiki/Installer_(macOS)

But KDE apps really integrate well in the MacOS environment.

The Damon must be launch by an XML startup file that'll be place in ~/Libray/LaunchAgents
An example in attachement with Multipass.
Comment 4 M-Rick 2021-06-29 12:53:42 UTC
Created attachment 139742 [details]
Example of startup deamon file
Comment 5 Vincent PINON 2021-06-29 14:21:26 UTC
Wow, you seem much better informed than anyone I spoke to ;)
(I don't know anybody owning a Mac in Kdenlive & Craft communities).
Could you help us on that front ? You could join Craft channel on Matrix (#kde-craft:kde.org) / Telegram (https://t.me/KDECraftPackager) / IRC
I'm just seeing there is a PKG packager, should test... (https://invent.kde.org/packaging/craft/-/blob/master/bin/Packager/MacPkgPackager.py)
Comment 6 M-Rick 2021-06-29 14:33:29 UTC
If you can get it building, I can write the daemon file if you need it to.
I don't know yet this MacPackager python script. I'll give it a look.
I used to build Gnumeric under MacOS previously. I did it with Glom as well.
http://macbidouille.com/news/2016/08/18/gnumeric-sous-os-x
http://gnome-apps.13852.n7.nabble.com/Gnumeric-on-Mac-OS-X-td68552.html
And I created the very first MacOS version of Inkscape years ago.
https://forum.macbidouille.com/index.php?showtopic=111168&hl=Inkscape
Comment 7 Vincent PINON 2021-06-29 14:59:26 UTC
Note that there are already some service launch files:
https://invent.kde.org/packaging/craft-blueprints-kde/-/tree/master/libs/dbus

it seems they work running from the build environment, but not sure how to create a package from that

Other relevant part of the discussion:
https://gitlab.freedesktop.org/dbus/dbus/-/issues/246

Merci Aymeric, sympa ! ;-)
Comment 8 Vincent PINON 2021-06-29 15:01:17 UTC
You might be interested by this too:
https://invent.kde.org/packaging/homebrew-kde
Comment 9 Julius Künzel 2021-09-28 22:29:22 UTC
We finally have a dmg for macOS ready that doesn't crash anymore. All basic features seem to work, but it isn't well tested yet and there for not offically called stable. You can find more details on known issues here https://invent.kde.org/multimedia/kdenlive/-/issues/993

To download the dmg use the link you already know: https://binary-factory.kde.org/view/MacOS/job/Kdenlive_Nightly_macos/lastSuccessfulBuild/

If you like to test the macOS version and report problems this would be very helpful to have a stable macOS release soon.