pure-maps icon indicating copy to clipboard operation
pure-maps copied to clipboard

loading style failed: connection refused in offline mode

Open jmlich opened this issue 1 month ago • 1 comments

I am using ubuntu touch 24.04-1.x on Fairhphone 5

First, I was thinking that offline profile doesn't work, but it seems it partially works. I am not able to evaluate what exactly doesn't work.

Steps to reproduce

  • install OSM Scout Server 3.1.6-24.04-1.x from open store
  • install pure-maps 3.4.1 from open store
  • download local maps using osm scout server (czech republic + slovakia in my case)
  • switch pure maps to profile offline
  • disconnect from internet (both 3G/5G + Wifi) in OS
  • start pure maps
Image Image

I don't see anything suspicious in journalctl:

$ journalctl --since="$(date -d @1762176305 '+%Y-%m-%d %H:%M:%S')" --until="$(date -d @1762176318 '+%Y-%m-%d %H:%M:%S')"
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1865 1224 763 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1967 1224 661 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1975 1224 653 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2060 1224 568 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1975 1224 653 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2096 1224 532 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2204 1224 424 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2300 1224 328 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2384 1224 244 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2459 1224 169 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2514 1224 114 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2561 1224 67 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2598 1224 30 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2618 1224 10 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: in clear preedit.. clearing word engine
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2629 1224 -1 > to the app manager.
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: inputMethod::reset()
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: in clear preedit.. clearing word engine
lis 03 14:25:12 ubuntu-phablet systemd[3187]: Started lomiri-app-launch--application-click--pure-maps.jonnius_pure-maps_3.4.1--.service.
lis 03 14:25:12 ubuntu-phablet aa-exec[4813]: QObject::startTimer: Timers cannot be started from another thread
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: inputMethod::reset()
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: in clear preedit.. clearing word engine
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: inputMethod::reset()
lis 03 14:25:12 ubuntu-phablet maliit-server[4519]: in clear preedit.. clearing word engine
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.949] qtmir.mir: SessionAuthorizer::connection_is_allowed - this= qtmir::SessionAuthorizer(0x7fa00822a0) pid= 5359
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.953] qtmir.mir: SessionAuthorizer::configure_input_is_allowed - this= qtmir::SessionAuthorizer(0x7fa00822a0) pid= 5359
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.953] qtmir.mir: SessionAuthorizer::set_base_input_configuration_is_allowed - this= qtmir::SessionAuthorizer(0x7fa00822a0) pid= 5359
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.953] qtmir.mir: SessionAuthorizer::configure_display_is_allowed - this= qtmir::SessionAuthorizer(0x7fa00822a0) pid= 5359
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.954] qtmir.mir: SessionAuthorizer::set_base_display_configuration_is_allowed - this= qtmir::SessionAuthorizer(0x7fa00822a0) pid= 5359
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.954] qtmir.mir: SessionAuthorizer::screencast_is_allowed - this= qtmir::SessionAuthorizer(0x7fa00822a0) pid= 5359
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.954] qtmir.mir: SessionAuthorizer::prompt_session_is_allowed - this= qtmir::SessionAuthorizer(0x7fa00822a0) pid= 5359
lis 03 14:25:12 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:12.954] qtmir.sessions: TaskController::onSessionStarting - sessionName=pure-maps
lis 03 14:25:12 ubuntu-phablet aa-exec[5359]: library "eglSubDriverAndroid.so" not found
lis 03 14:25:12 ubuntu-phablet aa-exec[5359]: file offset for the library "/vendor/lib64/hw/gralloc.default.so" >= file size: 0 >= 0
lis 03 14:25:12 ubuntu-phablet aa-exec[5359]: Creating a QMirClientScreen now
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.114\" (uid=32011 pid=5359 comm=\"pure-maps\" label=\"pure-maps.jonnius_pure-maps_3.4.1 (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1774 comm=\"/usr/sbin/NetworkManager --no-daemon\" label=\"unconfined\")"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.114\" (uid=32011 pid=5359 comm=\"pure-maps\" label=\"pure-maps.jonnius_pure-maps_3.4.1 (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1774 comm=\"/usr/sbin/NetworkManager --no-daemon\" label=\"unconfined\")"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: "Object path cannot be empty"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Acquired QGeoPositionInfoSource: "lomiri"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Tracking  "io.github.rinigus.OSMScoutServer"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: virtual QMediaService* AalServicePlugin::create(const QString&) "org.qt-project.qt.mediaplayer"
lis 03 14:25:13 ubuntu-phablet media-hub-server[4167]: media-hub: Session created by request of: :1.98, key: 1, uuid: {78c5e29b-9270-4028-b663-0ea0adee080c}
lis 03 14:25:13 ubuntu-phablet media-hub-server[4167]: media-hub: Audio stream role: props,media.role=multimedia
lis 03 14:25:13 ubuntu-phablet media-hub-server[4167]: media-hub: apparmor profile name: pure-maps.jonnius_pure-maps_3.4.1
lis 03 14:25:13 ubuntu-phablet media-hub-server[4167]: media-hub: is_unconfined(): false
lis 03 14:25:13 ubuntu-phablet media-hub-server[4167]: media-hub: has_package_name(): true
lis 03 14:25:13 ubuntu-phablet media-hub-server[4167]: media-hub:  -- app_name='pure-maps.jonnius_pure-maps_3.4.1', attached
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Using Hybris video sink
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: virtual QMediaPlayer::State AalMediaPlayerControl::state() const
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const
lis 03 14:25:13 ubuntu-phablet dbus-daemon[3484]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/io/github/rinigus/OSMScoutServer/mapmatching" interface="io.github.rinigus.OSMScoutServer.mapmatching" member="Reset" mask="send" name="io.github.rinigus.OSMScoutServer" pid=5359 label="pure-maps.jonnius_pure-maps_3.4.1" peer_pid=4927 peer_label="unconfined"
lis 03 14:25:13 ubuntu-phablet media-hub-server[4167]: media-hub: Audio stream role: props,media.role=alert
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: file:///opt/click.ubuntu.com/pure-maps.jonnius/3.4.1/share/pure-maps.jonnius/qml/PositionSource.qml:71: TypeError: Cannot read property 'center' of null
lis 03 14:25:13 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:13.433] Received a surface count changed event from an app that's not in the Launcher model, creating icon...
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: ** Application is now active
lis 03 14:25:13 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:13.443] Mir buffer is gl:TextureSource (old)
lis 03 14:25:13 ubuntu-phablet core::trust::Daemon::Skeleton[4221]: CachedAgent::authenticate_request_with_parameters: Application pid: 5359 Application uid: 32011 Application id:  pure-maps.jonnius_pure-maps Cached request:   Request(from: pure-maps.jonnius_pure-maps, feature: 0, when: 1760952714219901559, answer: granted)
lis 03 14:25:13 ubuntu-phablet trust-stored-skeleton[4221]: I20251103 14:25:13.444235  4431 cached_agent_glog_reporter.cpp:32] CachedAgent::authenticate_request_with_parameters: Application pid: 5359 Application uid: 32011 Application id:  pure-maps.jonnius_pure-maps Cached request:   Request(from: pure-maps.jonnius_pure-maps, feature: 0, when: 1760952714219901559, answer: granted)
lis 03 14:25:13 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:13.457] void LocationWatcherPrivate::onPropertiesChanged(const QString&, const QVariantMap&, const QStringList&) QMap(("ClientApplications", QVariant(QStringList, ("pure-maps.jonnius_pure-maps_3.4.1"))))
lis 03 14:25:13 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:13.457] Location clients changed: ("pure-maps.jonnius_pure-maps_3.4.1")
lis 03 14:25:13 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:13.458] void LocationWatcherPrivate::onPropertiesChanged(const QString&, const QVariantMap&, const QStringList&) QMap(("State", QVariant(QString, "active")))
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Translation not found for navigator: "en"
lis 03 14:25:13 ubuntu-phablet dbus-daemon[3484]: apparmor="DENIED" operation="dbus_bind"  bus="session" name="io.github.rinigus.PureMaps" mask="bind" pid=5359 label="pure-maps.jonnius_pure-maps_3.4.1"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Current locale: cs_CZ
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Loaded translation
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Fallback icons at ./share/pure-maps.jonnius/qml/icons/fallback
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Failed to register DBus service: io.github.rinigus.PureMaps
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: void LocalSensorManagerInterface::loadPluginFinished(QDBusPendingCallWatcher*) "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.114\" (uid=32011 pid=5359 comm=\"pure-maps\" label=\"pure-maps.jonnius_pure-maps_3.4.1 (enforce)\") interface=\"local.SensorManager\" member=\"loadPlugin\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.nokia.SensorService\" (uid=0 pid=1699 comm=\"/usr/sbin/sensorfwd --systemd --device-info --log-\" label=\"unconfined\")"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: Using QSGMapboxGLTextureNode for map rendering. devicePixelRatio: 1
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: [ INFO ]  "{unknown}[General]: GPU Identifier: Adreno (TM) 643"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: [ ERROR ]  "{unknown}[Setup]: loading style failed: Spojení bylo odmítnuto"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: loading style failed: Spojení bylo odmítnuto
lis 03 14:25:13 ubuntu-phablet dbus-daemon[3484]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/com/lomiri/libertine/Service/Operations" interface="com.lomiri.libertine.Service.Operations" member="list" mask="send" name="com.lomiri.libertine.Service" pid=5359 label="pure-maps.jonnius_pure-maps_3.4.1" peer_pid=4437 peer_label="unconfined"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.99\" (uid=32011 pid=5359 comm=\"pure-maps\" label=\"pure-maps.jonnius_pure-maps_3.4.1 (enforce)\") interface=\"com.lomiri.libertine.Service.Operations\" member=\"list\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.lomiri.libertine.Service\" (uid=32011 pid=4437 comm=\"/usr/bin/python3 /usr/bin/libertined\" label=\"unconfined\")"
lis 03 14:25:13 ubuntu-phablet dbus-daemon[3484]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/com/lomiri/libertine/Service/OperationsMonitor" interface="com.lomiri.libertine.Service.OperationsMonitor" member="running" mask="send" name="com.lomiri.libertine.Service" pid=5359 label="pure-maps.jonnius_pure-maps_3.4.1" peer_pid=4437 peer_label="unconfined"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.99\" (uid=32011 pid=5359 comm=\"pure-maps\" label=\"pure-maps.jonnius_pure-maps_3.4.1 (enforce)\") interface=\"com.lomiri.libertine.Service.OperationsMonitor\" member=\"running\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.lomiri.libertine.Service\" (uid=32011 pid=4437 comm=\"/usr/bin/python3 /usr/bin/libertined\" label=\"unconfined\")"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: lastError - no arguments?
lis 03 14:25:13 ubuntu-phablet dbus-daemon[3484]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/com/lomiri/libertine/Service/OperationsMonitor" interface="com.lomiri.libertine.Service.OperationsMonitor" member="last_error" mask="send" name="com.lomiri.libertine.Service" pid=5359 label="pure-maps.jonnius_pure-maps_3.4.1" peer_pid=4437 peer_label="unconfined"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.99\" (uid=32011 pid=5359 comm=\"pure-maps\" label=\"pure-maps.jonnius_pure-maps_3.4.1 (enforce)\") interface=\"com.lomiri.libertine.Service.OperationsMonitor\" member=\"last_error\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.lomiri.libertine.Service\" (uid=32011 pid=4437 comm=\"/usr/bin/python3 /usr/bin/libertined\" label=\"unconfined\")"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: lastError - no arguments?
lis 03 14:25:13 ubuntu-phablet dbus-daemon[3484]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/com/lomiri/libertine/Service/OperationsMonitor" interface="com.lomiri.libertine.Service.OperationsMonitor" member="result" mask="send" name="com.lomiri.libertine.Service" pid=5359 label="pure-maps.jonnius_pure-maps_3.4.1" peer_pid=4437 peer_label="unconfined"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.99\" (uid=32011 pid=5359 comm=\"pure-maps\" label=\"pure-maps.jonnius_pure-maps_3.4.1 (enforce)\") interface=\"com.lomiri.libertine.Service.OperationsMonitor\" member=\"result\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.lomiri.libertine.Service\" (uid=32011 pid=4437 comm=\"/usr/bin/python3 /usr/bin/libertined\" label=\"unconfined\")"
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: lastError - no arguments?
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: file:///opt/click.ubuntu.com/pure-maps.jonnius/3.4.1/share/pure-maps.jonnius/qml/MapErrorPage.qml:93:17: Unable to assign [undefined] to QString
lis 03 14:25:13 ubuntu-phablet aa-exec[5359]: [PERFORMANCE]: Last frame took 75 ms to render.
lis 03 14:25:14 ubuntu-phablet zeitgeist-fts[4952]: Unable to get info on application://lomiri-app-launch.desktop
lis 03 14:25:14 ubuntu-phablet zeitgeist-fts[4952]: Unable to get info on application://terminal.ubports_terminal.desktop
lis 03 14:25:15 ubuntu-phablet lomiri[4219]: [2025-11-03:14:25:15.269] void LocationWatcherPrivate::onPropertiesChanged(const QString&, const QVariantMap&, const QStringList&) QMap(("State", QVariant(QString, "enabled")))
lis 03 14:25:15 ubuntu-phablet aa-exec[5359]: ** Application is now inactive
lis 03 14:25:15 ubuntu-phablet maliit-server[4519]: inputMethod::reset()
lis 03 14:25:15 ubuntu-phablet maliit-server[4519]: in clear preedit.. clearing word engine
lis 03 14:25:15 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2474 1224 154 > to the app manager.
lis 03 14:25:15 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2335 1224 293 > to the app manager.
lis 03 14:25:15 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2212 1224 416 > to the app manager.
lis 03 14:25:15 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2104 1224 524 > to the app manager.
lis 03 14:25:15 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 2007 1224 621 > to the app manager.
lis 03 14:25:16 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1937 1224 691 > to the app manager.
lis 03 14:25:16 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1877 1224 751 > to the app manager.
lis 03 14:25:16 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1832 1224 796 > to the app manager.
lis 03 14:25:16 ubuntu-phablet aa-exec[4813]: QUnifiedTimer::stopAnimationDriver: driver is not running
lis 03 14:25:16 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1800 1224 828 > to the app manager.
lis 03 14:25:16 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1790 1224 838 > to the app manager.
lis 03 14:25:16 ubuntu-phablet maliit-server[4519]: keyboard is reporting <x y w h>: < 0 1790 1224 838 > to the app manager.
lis 03 14:25:17 ubuntu-phablet harbour-amazfishd[3451]: 2025-11-03 14:25:17.974 : "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
lis 03 14:25:17 ubuntu-phablet harbour-amazfishd[3451]: 2025-11-03 14:25:17.974 : void AbstractDevice::deviceError(const QString&) "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
lis 03 14:25:17 ubuntu-phablet harbour-amazfishd[3451]: 2025-11-03 14:25:17.974 : void AbstractDevice::setConnectionState(const QString&) Connection state: "disconnected"

I was confused by the error message, so I thought that offline navigation didn’t work at all. I tried to start the osm-scout.service manually. Later, I found that the osm-scout service seemed to be working properly and that it was activated by a socket as expected. It downloaded data from the local osm-scout and probably performed navigation, but the error message gave the impression that everything was broken.

jmlich avatar Nov 03 '25 13:11 jmlich

I don't know if it is the same Qt bug that we have in SFOS (qt 5.6). In offline mode, it is refusing to make connection and that kills MapboxGL. For SFOS, I have a special version of maplibre that is using curl lib to make connection instead of Qt. One option is to try such monster in UT.

rinigus avatar Nov 03 '25 18:11 rinigus

I can't seem to reproduce this issue. Can you try again with 3.4.2? Can you also try out the workaround described on the OSM Open Store page for updating the background service? https://open-store.io/app/osmscout-server.jonnius

jonnius avatar Dec 16 '25 08:12 jonnius