-
Notifications
You must be signed in to change notification settings - Fork 99
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
Local Simulation Consistent SegFault #936
Comments
What command did you use to launch? |
ign launch -v 4 competition.ign circuit:=cave worldName:=simple_cave_03 durationSec:=3600 robotName1:=X1 robotConfig1:=CORO_ALLIE_SENSOR_CONFIG_2 |
I am unable to reproduce this issue. Can you make sure you have updated your local install of the simulator? |
I've done all 3 steps now and it is still not working. Curiously though the "sudo apt-get update && sudo apt-get upgrade ignition-dome" command updated packages that a generic system wide package update did not (though apparently not enough or the right ones to make it work). Our IT staff finds this highly unusual and is wondering if something is wrong on the package maintainer side of things that is preventing a normal update? |
we got this segfault too |
in a docker image based on the official image |
Cloudsim can reproduce this issue! All our weekend simulations ended shortly after scoring has started! This is the end of
|
Too bad that #919 is not deployed yet - or is it? If so, where would be the actual stdout? |
New docker images have been released, see https://github.com/osrf/subt/wiki/release_notes#2021-06-01. Can you give these a try? The docker images and catkin workspace methods work for me. |
Exactly the same segfault. It might be triggered by a specific robot type or world. We have UAV-only cloudsim sims running in cave 05 normally. I got segfault with these parameters:
|
Ahh, got it with a debug build:
Poor Marmotte is missing in
So it's probably time to revise the list of robots. |
Easiest way to trigger this locally - spawn a Marmotte and call |
Just hit this too in a local run using the docker containers, looks like the same stack trace:
My launch command was:
Edit: I have not updated to the brand new docker containers, will try those Edit 2: |
This for loop looks very suspicious: subt/subt_ign/src/GameLogicPlugin.cc Lines 1400 to 1420 in a22a4c3
|
Ahh, it seems we're mixing two issues here. My issue is probably caused by Marmotte not being on the robot list, as I segfault at |
You might not believe this (not sure if I do either), but it appears at least the error I'm hitting is caused by the Recent base images updated |
@malcolmst I assume the changes you describe are in solution containers... how could they affect the simulation container? or do you run the simulator from the same code as your solution container? |
Some combination of pulling the latest subt changes and switching to gcc 8.4.0 has fixed this for me. |
@peci1 yeah for doing a quick local test sometimes I just run it in the single solution container |
Closing since I believe this issue is now resolved. |
I updated packages, updated the subt repo, rebooted, and completely rebuilt my catkin workspace this morning. I now consistently get this error when the robot enters the tunnel upon the scoring start condition:
Stack trace (most recent call last) in thread 9011:
#10 Object "", at 0xffffffffffffffff, in
#9 Source "/build/glibc-S9d2JN/glibc-2.27/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in [0x7fbdde07b71e]
#8 Source "/build/glibc-S9d2JN/glibc-2.27/nptl/pthread_create.c", line 463, in start_thread [0x7fbdddd426da]
#7 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fbddaa696de, in std::error_code::default_error_condition() const
#6 Object "/usr/lib/x86_64-linux-gnu/libignition-gazebo4.so.4", at 0x7fbdd9686209, in GetRecordPluginElem(sdf::v10::Root&)
#5 Object "/usr/lib/x86_64-linux-gnu/libignition-gazebo4.so.4", at 0x7fbdd9690dea, in ignition::gazebo::v4::SimulationRunner::Run(unsigned long)
#4 Object "/usr/lib/x86_64-linux-gnu/libignition-gazebo4.so.4", at 0x7fbdd96906e6, in ignition::gazebo::v4::SimulationRunner::Step(ignition::gazebo::v4::UpdateInfo const&)
#3 Object "/usr/lib/x86_64-linux-gnu/libignition-gazebo4.so.4", at 0x7fbdd968ac51, in ignition::gazebo::v4::SimulationRunner::UpdateSystems()
#2 Source "/home/rwsawtel/Desktop/Projects/SubT/Ignition/catkin_workspace/src/subt/subt_ign/src/GameLogicPlugin.cc", line 1163, in subt::GameLogicPlugin::PreUpdate(ignition::gazebo::v4::UpdateInfo const&, ignition::gazebo::v4::EntityComponentManager&) [0x7fbda83c86ff]
1160: for (auto &ke : this->dataPtr->keInfo)
1161: {
1162: ignition::gazebo::Link link(ke.second.link);
>1163: if (std::nullopt != link.WorldKineticEnergy(_ecm))
1164: {
1165: double currKineticEnergy = *link.WorldKineticEnergy(_ecm);
#1 Object "/usr/lib/x86_64-linux-gnu/libignition-gazebo4.so.4", at 0x7fbdd9638f6d, in ignition::gazebo::v4::Link::WorldKineticEnergy(ignition::gazebo::v4::EntityComponentManager const&) const
#0 Object "/usr/lib/x86_64-linux-gnu/libignition-gazebo4.so.4", at 0x7fbdd95ec953, in ignition::gazebo::v4::EntityComponentManager::ComponentImplementation(unsigned long, unsigned long) const
Segmentation fault (Signal sent by the kernel [(nil)])
Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered: