[Librem-5-dev] early feedback: issues encountered while running maps applications
rinigus
rinigus.git at gmail.com
Thu Jul 25 03:59:47 PDT 2019
Guido,
thanks a lot! Looks like performance is decent as well - which is great to
know
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20190725/6bd10029/attachment-0001.html>
More information about the Librem-5-dev
mailing list