Groot icon indicating copy to clipboard operation
Groot copied to clipboard

Crash when edit a node.

Open JaimeLai opened this issue 5 years ago • 11 comments

Hi, I am a novice using Behavior tree. And I found a big issues when using Groot. When I right-click to edit a node I wrote, the program will crash. By the way, the version of the Groot and the depended BehaviorTree.cpp is troublesome to match when I compile with source code.

JaimeLai avatar Sep 25 '20 06:09 JaimeLai

Hi,

please provide a way to reproduce this error on my side.

facontidavide avatar Sep 25 '20 07:09 facontidavide

Hi,

please provide a way to reproduce this error on my side.

image As you can see, after adding a control node named "1" and when I want to edit it, the program will crash.

JaimeLai avatar Sep 25 '20 09:09 JaimeLai

Hi, please provide a way to reproduce this error on my side.

image As you can see, after adding a control node named "1" and when I want to edit it, the program will crash.

The original code is download here. image The version of the depended BehaviorTree.cpp is 3.0.9.

JaimeLai avatar Sep 25 '20 09:09 JaimeLai

Can you please use the latest versionof BehaviorTree.cpp instead? I will also update the submodule

facontidavide avatar Sep 25 '20 10:09 facontidavide

Thanks. I will check this out. To start, I probably need to update the git submodule to latest BehaviorTree.CPP

You're welcome. I have try the latest one. But it reported the following issues.

Can you please use the latest versionof BehaviorTree.cpp instead? I will also update the submodule

I have try it. But it reported like that: image I am trying copy DecoratorSubtreeNode.cpp to it and see what will happen.

JaimeLai avatar Sep 25 '20 10:09 JaimeLai

This code is old, it is not the latest version on Master branch:

https://github.com/BehaviorTree/Groot/blob/master/bt_editor/bt_editor_base.cpp#L195

Please follow the instructions in the README to download from git, including the submodule

facontidavide avatar Sep 25 '20 10:09 facontidavide

instructions

I have try to follow the README to download from git at the beginning, but the program will also crash. I will try it again after you updating the submodule. Thank you very much.

JaimeLai avatar Sep 25 '20 11:09 JaimeLai

https://github.com/BehaviorTree/Groot/commit/65d92659cbf952013f83f764c960b13cf9beb657

It doesn't crash on my PC :(

facontidavide avatar Sep 25 '20 12:09 facontidavide

65d9265

It doesn't crash on my PC :(

It's strange...Could you please tell me the commit-id of Groot and depend/BehaviorTree.cpp?

JaimeLai avatar Sep 25 '20 13:09 JaimeLai

Groot: 65d92659cbf952013f83f764c960b13cf9beb657 depend/BehaviorTree.cpp: 3b30d6a4552e7dc6fd58d8f67dfc1228ddcf7f91

facontidavide avatar Sep 25 '20 13:09 facontidavide

Groot: 65d9265 depend/BehaviorTree.cpp: 3b30d6a4552e7dc6fd58d8f67dfc1228ddcf7f91

image It still crash..I use gdb to debug and this is the results.

JaimeLai avatar Sep 25 '20 13:09 JaimeLai