organicmaps: Crash after Location error occured QGeoPositionInfoSource::Error code: 0
This issue was discussed previously in https://github.com/organicmaps/organicmaps/pull/5823#issuecomment-1720250606
There are crashed happening with following in logs:
qt.positioning.geoclue2: Unable to start the client: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface 'org.freedesktop.GeoClue2.Client' on object at path /org/freedesktop/GeoClue2/Client/1"
LOG TID(1) WARNING 624.012 platform/qt_location_service.cpp:117 OnErrorOccurred(): Location error occured QGeoPositionInfoSource::Error code: 0
Segmentation fault (core dumped)
Its happening on my Ubuntu 18.04 laptop when I press the location button.
What’s worse sometimes it happens on every app launch during startup. I don’t know what’s triggering it exactly, but it seems that it happens after the app resets to a “first launch” state and asks to accept the lincense etc (and I don’t know why it resets, maybe some builds force it for some changes).
Then it crashes on every launch and seems to stop after a few re-tries of after some time.
During this “crash period” in the settings.ini its LastLocationStateMode=PendingPosition, I tried changing it to LastLocationStateMode=NotFollow (or NotFollowNoPosition), but it didn’t help, it keeps resetting to PendingPosition.
There is a similar startup crash report by a user using a linux flatpak on aarch64 (raspberry pi bulleye).
FYI @Ferenc-
About this issue
- Original URL
- State: open
- Created 8 months ago
- Comments: 19 (15 by maintainers)
I’ve updated geoclue to 2.5.7 (the newest I could find in PPAs for Ubuntu 18.04). Then started the
geoclue-demo-agent(it was added to autostart automatically) and everything started to work (OM gets location updates, no crashes; both regular builds and flatpak), no changes to geoclue.conf ordesktopIdparam were required (but I’ve added anOrganicMaps.desktopfile).Without a running agent it didn’t work even with geoclue.conf amendmends.