Pure Maps (Native map app)

In the Settings/Maps change to OpenTopoMaps, Now you can use Online profile.

4 Likes

nice, now it’s in chum for sfos 5 and it’s working, at least offline and here maps

1 Like

On my Xperia 10ii, OpenTopoMaps is working too, but Navigation fails :disappointed: All other online Maps crash. Offline solution works

1 Like

Okay with here maps routing also doesn’t work, but offline routing works fine

In maps i do see only osmscout server

You’ll need to enable online or mixed mood to enable other maps.
Offline there is nothing but OSM Scout.
But then again, other then offline is useless for navigation.

In general, with SFOS 5.0 Chum repos enabled and maps installed from there, I would expect all to work. Exception could be outdated API (HERE related PR is submitted, but I haven’t looked into how to add new default).

2 Likes

I have Maptile, Mapbox and Here API keys, but none of them working with SFOS 5.0. That is on my X10III where all was working before 5.
Please tell me how to debug, or I can try to clean out and reinstall everything.

2 Likes

I can confirm your observation with a fresh install of Pure Maps on a just received C2. Luckily @teertinker 's hint helped to fix the issue for me (I intend to use it only in offline mode anyway).

1 Like

Unfortunately not for 10III.
I installed Pure Maps from Chum with configured Repo 5.0.0.62 and it crashing always after start.
I made a clean install. I removed all files manually before.

2 Likes

New C2, fresh install from Storeman.
Open app → crashes as others have reported.

Probably I should delete Pure Maps from Storeman. That’s very old version and its weird people still keep installing it.

I am not using 5.0 and it would probably be a while before I get there (busy with other project). So, cannot test and prefer not to spread my attention either to multiple projects.

Assuming that we had someone with Pure Maps crashing after installing it cleanly from Chum AND Chum repo was for 5.0. That includes all dependencies as well. You can debug by opening an issue at Pure Maps repo (currently opened issue on that was when Pure Maps was installed from wrong repo). Then try to run from terminal and record output. If it crashes, next step would be to debug it with gdb and try to get backtrace. Maybe that can point towards where it happens.

In SFOS, due to ancient Qt, Pure Maps has to use curl for pulling data. You could check MapboxQML and Maplibre packaging and try to compile another version without CURL enabled. If backtrace was pointing towards CURL.

Also it is possible that something changed in GL stack. Then we are in bigger trouble and I have no idea how to debug it.

So, here are some pointers on what to look into if someone wants to debug the issue.

9 Likes

I am not sure whether my experience is directly related to the problems here on 5.0, but I had 10 IV/4.6 installed Pure Maps (worked). I updated to 5.0 and Pure Maps still work very well.

Does it include online and offline services? From above it sounds like problems were with online ones

With 5.0.0.62 on Xperia XA2 and Pure Maps harbour-pure-maps-3.4.0-1.11.1.jolla.armv7hl I can observe this:

terminate called after throwing an instance of ā€˜std::bad_function_call’
what(): bad_function_call
Aborted (core dumped)

I was able to gather such a callstack from a QSGRenderThread_core_dump:

#0 0xf598dd86 in ?? () from /lib/libc.so.6
#1 0xf59a0700 in raise () from /lib/libc.so.6
#2 0xf598d7a2 in abort () from /lib/libc.so.6
#3 0xf5b65a76 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#4 0xf5b642ec in ?? () from /usr/lib/libstdc++.so.6
#5 0xf5b6434e in std::terminate() () from /usr/lib/libstdc++.so.6
#6 0xf5b645be in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xf5b616fa in std::__throw_bad_function_call() () from /usr/lib/libstdc++.so.6
#8 0xeccf173e in ?? () from /usr/lib/libQMapLibre.so.3
#9 0xf5dff640 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#10 0xf5e5371c in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) () from /usr/lib/libQt5Core.so.5
#11 0xf5e08218 in QSocketNotifier::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#12 0xf5de16c4 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#13 0xf5e1af22 in ?? () from /usr/lib/libQt5Core.so.5
#14 0xf51e25c2 in ?? () from /usr/lib/libglib-2.0.so.0
#15 0xf51e48b6 in ?? () from /usr/lib/libglib-2.0.so.0
#16 0xf51e4d30 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#17 0xf5e1ac22 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) ()
from /usr/lib/libQt5Core.so.5
#18 0xf5de0442 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/libQt5Core.so.5
#19 0xeccec9f2 in ?? () from /usr/lib/libQMapLibre.so.3
#20 0xf5b803b2 in ?? () from /usr/lib/libstdc++.so.6
#21 0xf595ce28 in ?? () from /lib/libpthread.so.0
#22 0xf5a2519c in ?? () from /lib/libc.so.6
3 Likes

Installed from Chum, sf 5.0.0 62, XA2

Here, it now crashes as soon as I press the ā€œofflineā€ profile.
When online, the only working maps are OpenTopoMap and OpenSlopeMap.
However, OpenSlopeMap displays only white.
I also can sometimes chose Maptiler but it crashes if I move the map.
I tried to install debug symbols and gdb but can’t understand how to use gdb, as PM freezes when I attach its PID to gdb.

Anyway here is the output when switching from working OpenTopoMaps to crashing Maptiler

defaultuser@XperiaXA2-DualSIM ~ [SIGABRT]> /usr/bin/harbour-pure-maps
Current locale: en_GB
Translation not found
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Got library name: ā€œ/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.soā€
[I] unknown:0 - Acquired QGeoPositionInfoSource: ā€œgeoclueā€
[D] unknown:0 - Tracking ā€œio.github.rinigus.OSMScoutServerā€
[W] unknown:72 - file:///usr/share/harbour-pure-maps/qml/PositionSource.qml:72: TypeError: Cannot read property ā€˜center’ of null
[D] onCompleted:588 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[D] unknown:0 - Geoclue client path: ā€œ/org/freedesktop/Geoclue/Master/client29ā€
[W] unknown:91 - file:///usr/share/harbour-pure-maps/qml/pure-maps.qml:91:5: QML PositionSource: Binding loop detected for property ā€œactiveā€
API key missing: OS_APIKEY disabling osgb_outdoor
API key missing: OS_APIKEY disabling osgb_roads
[W] unknown:0 - Positioning update timeout
Mapbox API key missing: skipping mapbox_0_streets
Mapbox API key missing: skipping mapbox_1_outdoors
Mapbox API key missing: skipping mapbox_2_satellite
Mapbox API key missing: skipping mapbox_3_satellite_streets
Mapbox API key missing: skipping mapbox_4_navigation_day
Mapbox API key missing: skipping mapbox_4_navigation_night
API key missing: OS_APIKEY disabling osgb_outdoor
API key missing: OS_APIKEY disabling osgb_roads
[W] unknown:0 - Translation not found for navigator: ā€œenā€
Started DBus service at io.github.rinigus.PureMaps
[W] unknown:0 - Translation not found for navigator: ā€œen_USā€
[D] unknown:0 - Reset locations true 0 2
[D] unknown:0 - Service appeared ā€œio.github.rinigus.OSMScoutServerā€
[I] unknown:0 - Using QSGMapboxGLTextureNode for map rendering. devicePixelRatio: 1
[W] unknown:0 - [ INFO ] ā€œ{unknown}[General]: GPU Identifier: Adreno ā„¢ 508ā€
[W] unknown:0 - [ ERROR ] ā€œ{unknown}[Style]: Failed to load glyph range 0-255 for font stack Open Sans Regular: unknown pbf field type exceptionā€

[Switching from working OpenTopoMaps to crashing Maptiler]

[W] unknown:0 - [ WARNING ] ā€œ{unknown}[ParseStyle]: source must have tilesā€
[W] unknown:0 - [ WARNING ] ā€œ{unknown}[ParseStyle]: source must have tilesā€
[W] unknown:0 - [ WARNING ] ā€œ{unknown}[ParseStyle]: source must have tilesā€
terminate called after throwing an instance of ā€˜std::bad_function_call’
what(): bad_function_call
fish: Job 1, ā€˜/usr/bin/harbour-pure-maps’ terminated by signal SIGABRT (Abort)

2 Likes

I only use offline service.

Hi all
1st off - huge thx @rinigus for this app - make use of it more than anything else on my phone…
TL:DR Has anyone solved the here-maps api key / non-rendering of maps issue?

My situation…
Around a couple weeks - month ago started noticing PureMaps (w. here-maps enabled) would stop working after around 30mins driving (no tiles, no traffic, route updates etc.). It was also impossible to add another journey. Next day would work perfectly then do the same. Change to usage policy seems a sensible reason, sure enough, issues on here mentioning similar.
As am sure others have noticed Here have ā€˜improved their customer experience’ and the old dev portal forces you to join their new ā€˜platform’.
Long story short I’ve now tried various attempts to bring map tiling back with no success - has anyone solved this for Here Maps?
I’ve even signed up for their [gnnn] ā€˜freemium model’ with an old account that’s got 5 euros in there. That seemed to open up access to all the REST API services and I can see they’re listed as available here: platform.here.com/services/
But still no dice - what gives…?
My use case is traffic, which I use all the time negotiating around small cities in northern England for various kid related activities (shoutout to all the football dads!:slight_smile: )

O.S.-wise am still on 4.4 so have avoided current woes on that front.

Any insight or tips would be massively appreciated.
Cheers

Hi everybody, is there a way to run osmscout-server in a docker container? I’m trying to build an image using alpine, but the server throws a lot of errors. Does anybody know how to do this?

should be possible. I am testing it on gentoo, but other distros should be fine as well. haven’t tested builds in docker though

1 Like