Closed omichel closed 4 years ago
In fact the crash occurs with any world, by double-clicking on any node of the scene tree.
I did a very strange finding. The crash was introduced when adding the QString mUrdfPrefix;
private member in the WbNode.hpp. If I comment out this member, the crash doesn't happen any more...
Strangely, this fixes the crash:
--- a/src/webots/vrml/WbNode.hpp
+++ b/src/webots/vrml/WbNode.hpp
@@ -331,10 +331,9 @@ private slots:
private:
WbNode &operator=(const WbNode &); // non copyable
- QString mUrdfPrefix;
-
// for all nodes
WbNode *mParent;
+ QString mUrdfPrefix;
WbNodeModel *mModel;
int mUniqueId;
I am puzzled...
:astonished:
mUrdfPrefix
is not initialized in the constructor, but I doubt this is the cause.
I tried to initialize it in the constructor, this doesn't change anything.
Fixed in #1824.
On Windows, on the
develop
branch, if you open the turtlebot3 (projects/robots/robotis/turtlebot/worlds/turtlebot3_burger.wbt) and double-click on the TurtleBot3Burger node in the scene tree, Webots crashes with the following stack: