-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open Nav Sat Map plugin (crashes) #482
Comments
Hi @ijnek I have tried both fortress from source and binaries and am not able to reproduce the crash (I've tried launching |
I just realized you're on |
I can confirm, I have the same issue with navsatmap gui plugin with same config (gazebo Fortress and Ubuntu 22.04) |
Any news about this bug? |
There's some discussion here about a change in map providers which might be causing the issue. I tried playing with the configuration options mentioned there and in https://forum.sailfishos.org/t/using-qml-map-osm-not-working/7261 with no luck |
I was able to get a little further with the below patch but the GUI will eventually freeze. Unfortunately, I don't have time to continue looking at this but here are the steps in case anyone does (On Jammy, using Gazebo Garden):
diff --git a/src/plugins/navsat_map/NavSatMap.qml b/src/plugins/navsat_map/NavSatMap.qml
index 3e7659b2..3145e1ed 100644
--- a/src/plugins/navsat_map/NavSatMap.qml
+++ b/src/plugins/navsat_map/NavSatMap.qml
@@ -18,8 +18,8 @@ import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.1
-import QtLocation 5.6
-import QtPositioning 5.6
+import QtLocation 5.15
+import QtPositioning 5.15
Item {
id: navSatMap
@@ -92,6 +92,16 @@ Item {
Plugin {
id: mapPlugin
name: "osm"
+
+ PluginParameter {
+ name: "osm.mapping.providersrepository.disabled"
+ value: "true"
+ }
+
+ PluginParameter {
+ name: "osm.mapping.providersrepository.address"
+ value: "http://maps-redirect.qt.io/osm/5.6/"
+ }
}
Map {
@@ -159,7 +169,7 @@ Item {
Connections {
target: NavSatMap
- onNewMessage: {
+ function onNewMessage(_latitudeDeg, _longitudeDeg) {
latitude = _latitudeDeg
longitude = _longitudeDeg
} The following warning may be related: [GUI] [Wrn] [Application.cc:845] [QT] QObject::connect(QQuickWindow, QDeclarativeGeoMap): invalid nullptr parameter |
possibly related Qt issues:
|
You could try other map plugins that are listed in this page: I don't know how well they work though. |
the Update: closed PR as it's not clear if we can use the |
I'm on humble + garden (7.6) and just adding the navsat plugin in an empty scene creates a crash. |
Environment
Description
Steps to reproduce
ign gazebo -v 4
Output
The text was updated successfully, but these errors were encountered: