Open ijnek opened 1 year ago
Hi @ijnek I have tried both fortress from source and binaries and am not able to reproduce the crash (I've tried launching ign gazebo -v 4
then adding the plugin manually and also ign gazebo -v 4 spherical_coordinates.sdf
). I suggest double checking your installation and make sure it's set up correctly. An option is to uninstall then reinstall fortress: https://gazebosim.org/docs/fortress/install_ubuntu
I just realized you're on jammy
not focal
, re-opening issue since this wasn't tested appropriately
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):
gz sim -v 4 -r spherical_coordinates.sdf
Nav Sat Map
from the plugin menudiff --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:
@jennuine I've tried your patch and I've got the same output, the GUI freezes. @iche033 5.15.11 looks like a commercial release. If it does solve the issue, what do you suggest to try it out?
You could try other map plugins that are listed in this page: https://doc.qt.io/qt-5/qtlocation-index.html#plugin-references-and-parameters
I don't know how well they work though.
the mapboxgl
plugin works for me. I created a PR: https://github.com/gazebosim/gz-gui/pull/520
Update: closed PR as it's not clear if we can use the mapboxgl
plugin and it still freezes. Gazebo users are free to sign up to map box's free tier account and get an access token to use.
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