Skip to content

Crash (segfault) when boundingObject Group contains Solid with physics #6414

Open
@PeterJCLaw

Description

@PeterJCLaw

Describe the Bug

Launching webots R2023b with the following world results in some warnings and a segfault. This world is a cut-down. I hit this while developing the larger world, which doesn't normally have warnings but did in the failure mode.

The warnings in the original world before the cut-down was just:

Pose: A Pose node inside a 'boundingObject' can only contain one Shape or one Geometry node. The child node is ignored.

and then a line like:

/usr/local/bin/webots: line 105: 33888 Segmentation fault      (core dumped) "$webots_home/bin/webots-bin" "$@"

The warnings observed in the cut-down are different, so I'm not completely sure if the cause is the same.

Steps to Reproduce

$ webots --stdout --stderr --mode=pause $PWD/worlds/Arena.wbt

Arena.wbt:

#VRML_SIM R2022b utf8

WorldInfo {
  basicTimeStep 8
}
Viewpoint {}

Solid {
  name "outer"
  children [
    DEF BODY Group {
      children [
        Solid {
          name "inner"
          physics Physics {}
        }
      ]
    }
  ]
  boundingObject USE BODY
  physics Physics {}
}

Removing either physics node or the boundingObject avoids the crash.

Expected behavior

For other invalid worlds webots seems to emit warnings and refuse to run a simulation, but not crash. Matching that would be fine.

System

  • webots: R2023b, other versions untested
  • Operating System: Ubuntu 22.04.3 LTS
  • Graphics Card: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrashCause a crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions