Application segfaults within flatpak

Mattias Eriksson snaggen at gmail.com
Mon Apr 10 17:55:56 UTC 2017


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/20170410/658b7223/attachment.html>


More information about the xdg-app mailing list