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

Crash when removing model with LogicalAudioSensorPlugin #2464

Closed
gzfuzz opened this issue Jul 8, 2024 · 1 comment
Closed

Crash when removing model with LogicalAudioSensorPlugin #2464

gzfuzz opened this issue Jul 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gzfuzz
Copy link

gzfuzz commented Jul 8, 2024

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build?
    source build
    gz-sim version: 5641ef2
    built with
    gcc version: 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
    build options: -DCMAKE_BUILD_TYPE=Coverage

Description

  • Expected behavior: Gazebo doesn't crash
  • Actual behavior: Gazebo crashes

Steps to reproduce

  1. gz sim a.txt
  2. gz service --timeout 10000 -s /world/world_0/remove --reptype gz.msgs.Boolean --reqtype gz.msgs.Entity --req 'id: 4'

Manually remove the model from GUI could also reproduce the crash

Output

Stack trace (most recent call last):
31   Object "gz sim server", at 0x56552e3911c4, in _start
30   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f698bc34e3f, in __libc_start_main
29   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f698bc34d8f, in
28   Object "gz sim server", at 0x56552e39117e, in
27   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698bedce19, in ruby_run_node
26   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698bed9317, in
25   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c06e33c, in rb_vm_exec
24   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c068cc6, in
23   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c065ff5, in
22   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c063c64, in
21   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698bfafa4e, in
20   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698beda9ac, in rb_protect
19   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c072c91, in rb_yield
18   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c06e33c, in rb_vm_exec
17   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c068cc6, in
16   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c065ff5, in
15   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c063c64, in
14   Object "/usr/lib/x86_64-linux-gnu/ruby/3.0.0/fiddle.so", at 0x7f6987c1144b, in
13   Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f698c0310b8, in rb_nogvl
12   Object "/usr/lib/x86_64-linux-gnu/ruby/3.0.0/fiddle.so", at 0x7f6987c10d6b, in
11   Object "/lib/x86_64-linux-gnu/libffi.so.8", at 0x7f6987c02492, in
10   Object "/lib/x86_64-linux-gnu/libffi.so.8", at 0x7f6987c05e2d, in
9    Object "/data/play/robot/workspace/install/lib/libgz-sim8-gz.so.8.5.0", at 0x7f6986f59d7d, in runServer
8    Object "/home/ren/play/robot/workspace/install/lib/libgz-sim8.so.8", at 0x7f6985669fee, in gz::sim::v8::Server::Run(bool, unsigned long, bool)
7    Object "/home/ren/play/robot/workspace/install/lib/libgz-sim8.so.8", at 0x7f6985695a63, in
6    Object "/home/ren/play/robot/workspace/install/lib/libgz-sim8.so.8", at 0x7f69856c6740, in gz::sim::v8::SimulationRunner::Run(unsigned long)
5    Object "/home/ren/play/robot/workspace/install/lib/libgz-sim8.so.8", at 0x7f69856c755e, in gz::sim::v8::SimulationRunner::Step(gz::sim::v8::UpdateInfo const&)
4    Object "/home/ren/play/robot/workspace/install/lib/libgz-sim8.so.8", at 0x7f69856c38e6, in gz::sim::v8::SimulationRunner::UpdateSystems()
3    Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-logicalaudiosensorplugin-system.so", at 0x7f6964673deb, in gz::sim::v8::systems::LogicalAudioSensorPlugin::PreUpdate(gz::sim::v8::UpdateInfo const&, gz::sim::v8::EntityComponentManager&)
2    Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-logicalaudiosensorplugin-system.so", at 0x7f696467bc53, in gz::sim::v8::systems::LogicalAudioSensorPluginPrivate::DurationExceeded(gz::sim::v8::UpdateInfo const&, gz::sim::v8::logical_audio::SourcePlayInfo const&)
1    Object "/home/ren/play/robot/workspace/install/lib/libgz-sim8.so.8", at 0x7f69856fde64, in std::common_type<std::chrono::duration<long, std::ratio<1l, 1000000000l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >::type std::chrono::operator-<long, std::ratio<1l, 1000000000l>, long, std::ratio<1l, 1000000000l> >(std::chrono::duration<long, std::ratio<1l, 1000000000l> > const&, std::chrono::duration<long, std::ratio<1l, 1000000000l> > const&)
0    Object "/data/play/robot/workspace/install/lib/libgz-sim8-gz.so.8.5.0", at 0x7f6986f83ce2, in std::chrono::duration<long, std::ratio<1l, 1000000000l> >::duration(std::chrono::duration<long, std::ratio<1l, 1000000000l> > const&)
Segmentation fault (Address not mapped to object [0x18])
@gzfuzz gzfuzz added the bug Something isn't working label Jul 8, 2024
@gzfuzz gzfuzz changed the title Crash when remove model with gz::sim::systems::LogicalAudioSensorPlugin Crash when removing model with LogicalAudioSensorPlugin Jul 8, 2024
@arjo129
Copy link
Contributor

arjo129 commented Jul 19, 2024

#2232 Has been merged, that resolves this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants