Application segfaults within flatpak
Mattias Eriksson
snaggen at gmail.com
Tue Apr 11 06:34:48 UTC 2017
I took the XmlListModel that failed to install due to qmake was trying to
install it in /usr/lib. I extracted them from the .flatpak-builder/
directory, packaged them as tar.gz and used that and installed it as part
of my app. And now it starts. So, I'm pretty confident to say that the
XmlListModel files
QtQuick/XmlListModel/libqmlxmllistmodelplugin.so
QtQuick/XmlListModel/qmldir
QtQuick/XmlListModel/plugins.qmltypes
needed by the monero-core-gui is not present in the kde runtime, and qmake
seems to make it impossible to install them in a good way.
I can't say if they should be included in the runtime or not, since I
really have no knowledge about Qt, or if the problem is with qmake and
flatpak, or if the problem is that the monero-core depends on those files.
Anyway, I will not fix any of these underlying issues, since they are not
in my area of expertise... I will run with the ugly binary distribution
until any of the possible causes is resolved properly.
//Snaggen
mån 10 apr. 2017 kl 19:55 skrev Mattias Eriksson <snaggen at gmail.com>:
> Using the build-commands
> "build-commands": [ "./build.sh debug", "cd build && make deploy", "mkdir
> /app/bin/","cp -a ./build/debug/bin/* /app/bin/"],
> should give you debug symbols in the application.
>
> And that points to the lines:
> engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
> QObject *rootObject = engine.rootObjects().first();
>
> where first() throws an assert.
>
> About XmlListModel, I have tried
> $ flatpak run --devel --command=sh org.getmonero.Wallet
> sh-4.3$ find /lib/|grep -i XmlListModel
>
> which returns nothing... and I thought that it would be located there
> since the rest of the qml/QtQuick submodules seems to be there.
>
> //Snaggen
>
>
> mån 10 apr. 2017 kl 19:38 skrev Aleix Pol <aleixpol at kde.org>:
>
> On Mon, Apr 10, 2017 at 9:07 AM, Alexander Larsson <alexl at redhat.com>
> wrote:
> > On Sun, 2017-04-09 at 08:39 +0000, Mattias Eriksson wrote:
> >
> > Hi have tried to build a flatpak of the monero gui wallet, but it
> segfaults
> > and I'm not sure how to continue... more about it here:
> >
> https://www.reddit.com/r/Monero/comments/64c5pj/need_help_trying_to_build_a_flatpak_of_the_monero/
> >
> > So if anyone have any pointers on how to get any further, I would be
> really
> > greatful.
> >
> > I don't really have any ideas on the qt side, but you should install the
> kde
> > runtime debug extension to get real debug info in your backtraces.
>
> Hi,
> XmlListModel is definitely there, as it's part of qtdeclarative, which
> is used by several of the available applications. Also if you were
> missing any qml symbols you'd get an error message rather than a
> blatant crash.
>
> I have the impression there's something weird going on with how the
> application is compiled though, I'd look into it. This build.sh is
> weirdly opaque and I cannot debug it. I tried reproducing your issue
> and I did, but never got debug symbols from the application. I have
> the impression it's failing to build parts of monero though.
>
> My guess would be, try to figure out exactly what the problem is
> before trying to guess what could be failing...
>
> Regards,
> Aleix
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20170411/dd9bbbb3/attachment.html>
More information about the xdg-app
mailing list