[Librem-5-dev] early feedback: issues encountered while running maps applications

rinigus rinigus.git at gmail.com
Thu Aug 15 13:18:44 PDT 2019


Sebastian and Guido,

thanks! I am somewhat in an odd situation with Pure Maps. While application
works, its requirements are just not matching expected L5 environment.
Namely, positioning is expected to be provided via geoclue2 which is
supported by Qt only from version 5.12. Debian currently is on 5.11
(stable/testing/unstable branches). Flatpak platform is based on 5.12 Qt,
but is lacking L5 support.

There is a work underway to get Qt 5.12 working on Debian, but I am not
sure when will that reach unstable/testing. Right now, I can see its in
Debian experimental. I wonder, when a package will reach testing, will it
be promoted to PureOS repos used for L5 as well. In other words, is there
any hope of getting it into L5 in some reasonable amount of time?

Since Flatpak support is planned anyway, its probably wise to look into it.
At least that work would be useful in longer term, if I understand it
correctly. In contrast, there is probably no point in getting geoclue1
supported by L5 to keep older Qt libs happy. So, please ping when the
kernel interfaces are there.

Cheers,

Rinigus

On Thu, Aug 15, 2019 at 7:22 PM Guido Günther <agx at sigxcpu.org> wrote:

> Hi,
> On Thu, Aug 15, 2019 at 11:38:34AM +0000, Rinigus via Librem-5-dev wrote:
> > Guido,
> >
> > That's great! I know that there was a plan to incorporate this work
> > into flatpak platform. Is there any hope to get it before L5 release?
> > If nobody has looked into it, maybe I can readup on the topic and see
> > how such extension of flatpak platform should be made.
>
> I hope this lands in mesa 19.3 (to be released in November) so it might
> make sense to fix the runtime but the kernel interfaces need to land
> first, i'll ping once that happens.
> Cheers,
>  -- Guido
>
> >
> > Cheers
> >
> > Rinigus
> >
> > On Wednesday, 14 August 2019, Guido Günther wrote:
> > > Hi,
> > > On Thu, Jul 25, 2019 at 01:59:47PM +0300, rinigus via Librem-5-dev
> wrote:
> > > > Guido,
> > > >
> > > > thanks a lot! Looks like performance is decent as well - which is
> great to
> > > > know
> > >
> > > And with the recent upsream work by Lucas Stach on the kernel and mesa
> > > side (https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1559)
> > > scrolling around for a while does not freeze anymore so we're getting
> > > there too.
> > >
> > > Cheers,
> > >  -- Guido
> > >
> > > >
> > > > Rinigus
> > > >
> > > > On Thu, Jul 25, 2019 at 1:17 PM Guido Günther <agx at sigxcpu.org>
> wrote:
> > > >
> > > > > Hi,
> > > > > On Thu, Jul 25, 2019 at 09:43:20AM +0300, rinigus via Librem-5-dev
> wrote:
> > > > > > Morning,
> > > > > >
> > > > > > thanks to Angus who was debugging the applications and there is
> a major
> > > > > > progress, but we are not yet in the perfect position.
> > > > > >
> > > > > > As before, QML simple apps (hello world, raster map tiles) work.
> > > > > >
> > > > > > Mapbox GL based map viewer with QML plugin now shows the map on
> start.
> > > > > Its
> > > > > > possible to zoom and pan, but Angus suspects that there is a
> memory leak
> > > > > > somewhere. On each operation more memory was consumed until it
> gets full
> > > > > > and then app freezes. He observed that CPU usage of 1  CPU went
> to 100%
> > > > > and
> > > > > > the whole system was effectively frozen. This is in contrast to
> Sailfish
> > > > > > and desktop Linux, as far as I can tell.
> > > > >
> > > > > We're leaking BOs in our current texture code for sure so it
> doesn't
> > > > > surprise me. I have revising that part on my todo list after
> finishing
> > > > > some other things.
> > > > >
> > > > > > Guido requested "one-liner" or something simple for further
> testing. The
> > > > > > test described below is on the current version of Mapbox GL
> library. So,
> > > > > I
> > > > > > assume that something is wrong on devkit side and not in the
> version of
> > > > > > Mapbox GL that I am using (I can explain the differences and
> reasons for
> > > > > > using it as it is, but its probably now irrelevant).
> > > > > >
> > > > > > So, the test, all run in the same shell session:
> > > > > >
> > > > > > 1: Install dependencies (not 100% sure if all is needed, but
> that worked)
> > > > > >
> > > > > > sudo apt-get install qt5-default qtwayland5 curl automake
> libtool cmake
> > > > > > python-pip libsqlite3-dev libqt5opengl5-dev libqt5sql5-sqlite
> > > > > >
> > > > > > 2: clone the repo
> > > > > >
> > > > > > git clone https://github.com/mapbox/mapbox-gl-native.git
> > > > > >
> > > > > > 3: prepare for build
> > > > > >
> > > > > > cd mapbox-gl-native
> > > > > > mkdir build && cd build
> > > > > >
> > > > > > 4: build
> > > > > >
> > > > > > cmake -DMBGL_PLATFORM=qt -DWITH_QT_DECODERS=ON -DWITH_QT_I18N=ON
> > > > > > -DWITH_NODEJS=OFF ..
> > > > > > make mbgl-qt
> > > > > >
> > > > > > 5: run test (token will be sent separately)
> > > > > >
> > > > > > export MAPBOX_ACCESS_TOKEN=
> > > > > > ./mbgl-qt -platform wayland
> > > > > >
> > > > > > The test application should display map of Helsinki. You should
> be able
> > > > > to
> > > > > > zoom & pan the map.
> > > > >
> > > > > that worked nicely:
> > > > >
> > > > >     https://honk.sigxcpu.org/tmp/mapbox-gl-native.webm
> > > > >
> > > > > now we have a rather simple test case where we can produce traces
> > > > > from. Thanks a lot.
> > > > > Cheers,
> > > > >  -- Guido
> > > > >
> > > > >
> > >
> > > > _______________________________________________
> > > > Librem-5-dev mailing list
> > > > Librem-5-dev at lists.community.puri.sm
> > > > https://lists.community.puri.sm/listinfo/librem-5-dev
> > >
> > >
> > _______________________________________________
> > Librem-5-dev mailing list
> > Librem-5-dev at lists.community.puri.sm
> > https://lists.community.puri.sm/listinfo/librem-5-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20190815/670cd6d5/attachment.html>


More information about the Librem-5-dev mailing list