Skip to content
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

Segfault when accessing gripped entity #56

Closed
mniess opened this issue Jan 22, 2018 · 3 comments
Closed

Segfault when accessing gripped entity #56

mniess opened this issue Jan 22, 2018 · 3 comments
Assignees
Labels

Comments

@mniess
Copy link
Contributor

mniess commented Jan 22, 2018

I get a Segemantation fault, when accessing the EmbodiedEntity the gripper holds via the .GetGrippedEntity() function.
I forked the argos3-examples repository and implemented a loopfunction, that produces the segault with the gripper example.

Steps to reproduce:

  1. clone https://github.com/randusr/argos3-examples
  2. build & run gripper example
  3. press start in gui
  4. as soon as the robot grips the cylinder, the Segfault occurs
@ilpincy
Copy link
Owner

ilpincy commented Jan 23, 2018

Thanks for the bugreport! I'll have a look at it in the weekend.

@ilpincy
Copy link
Owner

ilpincy commented Jan 29, 2018

fix.txt
It's a bug in your code. Here the fix. I suggest you to learn how references work in C++, because the bug you had was due to that.

@ilpincy ilpincy closed this as completed Jan 29, 2018
@ilpincy ilpincy self-assigned this Jan 29, 2018
@mniess
Copy link
Contributor Author

mniess commented Jan 30, 2018

Thanks for looking through the code and the fix.
Sorry for bothering you with trivialities!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants