Fetch the repository succeeded.
This action will force synchronization from src-openEuler/rviz, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
From 93ac44b26babb298046694efe78f8f986f7219e9 Mon Sep 17 00:00:00 2001
From: Stefan Fabian <github@stefanfabian.me>
Date: Thu, 25 May 2023 14:41:08 +0200
Subject: [PATCH] MapDisplay: Fix crash after map update (#1793)
---
src/rviz/default_plugin/map_display.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/rviz/default_plugin/map_display.cpp b/src/rviz/default_plugin/map_display.cpp
index 3d0841ad91..a7802e4861 100644
--- a/src/rviz/default_plugin/map_display.cpp
+++ b/src/rviz/default_plugin/map_display.cpp
@@ -221,7 +221,10 @@ void Swatch::updateData()
MapDisplay::MapDisplay() : Display(), loaded_(false), resolution_(0.0f), width_(0), height_(0)
{
- connect(this, SIGNAL(mapUpdated()), this, SLOT(showMap()));
+ // HACK: Using a direct connection triggers a segfault on NVIDIA hardware (#1793) when rendering
+ // *and* having performed a depth rendering before (e.g. due to raycasting for selections)
+ // A queued connection delays the update of renderables after the current VisualizationManager::onUpdate() call
+ connect(this, SIGNAL(mapUpdated()), this, SLOT(showMap()), Qt::QueuedConnection);
topic_property_ = new RosTopicProperty(
"Topic", "", QString::fromStdString(ros::message_traits::datatype<nav_msgs::OccupancyGrid>()),
"nav_msgs::OccupancyGrid topic to subscribe to.", this, SLOT(updateTopic()));
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。