Skip to content

Crashed after remove entities contained plugin gz-sim-model-photo-shoot-system #2866

@liyitao-code

Description

@liyitao-code

Environment

  • OS Version: Ubuntu 24.04
  • Source or binary build?
    Source build, use gz-sim9 version:d83d135
    Built with gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.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 -r
  2. remove the model contained plugin gz-sim-model-photo-shoot-system
gz service --timeout 500 -s /world/default/control/state --reptype gz.msgs.Boolean --reqtype gz.msgs.WorldControlState --req 'header {
  stamp {
    sec: 3599433813
    nsec: 18865
  }
}
world_control {
  header {
    stamp {
      sec: 77357323
      nsec: -13286
    }
  }
  step: true
  multi_step: 130955107
  reset {
    header {
      stamp {
        sec: 1636967941
        nsec: 57911
      }
    }
    all: true
  }
  seed: 1318899285
  run_to_sim_time {
    sec: -1723929622
    nsec: 48950
  }
}
state {
  header {
    stamp {
      sec: -4156396495
      nsec: -38770
    }
    data {
      key: "er"
      value: "g"
      value: "gj"
    }
  }
  entities {
    id: 6077989754095068354
    components {
      type: 9790877888301679057
      component: "ap"
    }
    components {
      type: 17511037419969409591
      component: "cs"
      remove: true
    }
    remove: true
  }
}'

Output

terminate called after throwing an instance of 'Ogre::RenderingAPIException'
  what():  OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 100000004PixelShader_ps failed to compile. See compile log above for details. in GLSLShader::compile at ./RenderSystems/GL3Plus/src/GLSL/OgreGLSLShader.cpp (line 361)
Stack trace (most recent call last) in thread 261461:
#31   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed554de13, in 
#30   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed55571d6, in 
#29   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed555e56e, in 
#28   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed5568f40, in 
#27   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed556ed99, in 
#26   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed557371b, in 
#25   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed5529c4b, in 
#24   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-sim-9/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7a6ed552b172, in 
#23   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-rendering-9/engine-plugins/libgz-rendering-ogre2.so", at 0x7a6eced059b2, in 
#22   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-rendering-9/engine-plugins/libgz-rendering-ogre2.so", at 0x7a6eced05459, in 
#21   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-rendering-9/engine-plugins/libgz-rendering-ogre2.so", at 0x7a6eced2aa07, in gz::rendering::v9::Ogre2Camera::Render()
#20   Object "/home/liyitao/workspace/gz_lastest/install/lib/gz-rendering-9/engine-plugins/libgz-rendering-ogre2.so", at 0x7a6ecef11e20, in gz::rendering::v9::Ogre2RenderTarget::Render()
#19   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7a6ece427f33, in Ogre::CompositorWorkspace::_update(bool)
#18   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7a6ece419e85, in Ogre::CompositorNode::_update(Ogre::Camera const*, Ogre::SceneManager*)
#17   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7a6ece433f58, in Ogre::CompositorPassScene::execute(Ogre::Camera const*)
#16   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7a6ece185bdb, in Ogre::Camera::_renderScenePhase02(Ogre::Camera const*, unsigned char, unsigned char, bool)
#15   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7a6ece325b1b, in Ogre::SceneManager::_renderPhase02(Ogre::Camera*, Ogre::Camera const*, unsigned char, unsigned char, bool)
#14   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7a6ece2edd24, in Ogre::RenderQueue::render(Ogre::RenderSystem*, unsigned char, unsigned char, bool, bool)
#13   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7a6ece2ec7bf, in Ogre::RenderQueue::renderGL3(Ogre::RenderSystem*, bool, bool, Ogre::HlmsCache*, Ogre::RenderQueue::RenderQueueGroup const&, Ogre::IndirectBufferPacked*, unsigned char*, unsigned char*)
#12   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextHlmsPbs.so.2.3.1", at 0x7a6ed5449d8d, in Ogre::HlmsPbs::createShaderCacheEntry(unsigned int, Ogre::HlmsCache const&, unsigned int, Ogre::QueuedRenderable const&)
#11   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7a6ecde4c6e0, in Ogre::GLSLMonolithicProgramManager::getActiveMonolithicProgram()
#10   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7a6ecde5138d, in Ogre::GLSLMonolithicProgram::activate()
#9    Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7a6ecde50cd5, in Ogre::GLSLMonolithicProgram::compileAndLink()
#8    Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7a6ecde578fd, in Ogre::GLSLShader::compile(bool)
#7    Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7a6ecde41306, in 
#6    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7a6f192bb390, in __cxa_throw
#5    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7a6f192a5a54, in std::terminate()
#4    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7a6f192bb0d9, in 
#3    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7a6f192a5ff4, in 
#2    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7a6f1e4288fe, in abort
#1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7a6f1e44527d, in gsignal
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7a6f1e49eb2c, in pthread_kill
Aborted (Signal sent by tkill() 261371 1000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions