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 after calling WorldControl service over photo shoot plugin #2542

Open
gzfuzz opened this issue Aug 25, 2024 · 0 comments
Open

Crash after calling WorldControl service over photo shoot plugin #2542

gzfuzz opened this issue Aug 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gzfuzz
Copy link

gzfuzz commented Aug 25, 2024

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build?
    source build
    gz-sim version: d662000
    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 -r # which is actually gz-sim/examples/worlds/model_photo_shoot.sdf
  2. call /world/default/control, with
gz service --timeout 10000 -s /world/default/control --reptype gz.msgs.Boolean --reqtype gz.msgs.WorldControl --req '
reset {
  all: true
  time_only: 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 139537:
#31   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e24eda6, in std::enable_if<is_invocable_r_v<void, std::_Bind<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*(gz::sim::v8::systems::ModelPhotoShootPrivate*))()>&>, void>::type std::__invoke_r<void, std::_Bind<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*(gz::sim::v8::systems::ModelPhotoShootPrivate*))()>&>(std::_Bind<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*(gz::sim::v8::systems::ModelPhotoShootPrivate*))()>&)
#30   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e259a44, in void std::__invoke_impl<void, std::_Bind<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*(gz::sim::v8::systems::ModelPhotoShootPrivate*))()>&>(std::__invoke_other, std::_Bind<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*(gz::sim::v8::systems::ModelPhotoShootPrivate*))()>&)
#29   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e261ac4, in void std::_Bind<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*(gz::sim::v8::systems::ModelPhotoShootPrivate*))()>::operator()<, void>()
#28   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e270834, in void std::_Bind<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*(gz::sim::v8::systems::ModelPhotoShootPrivate*))()>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>)
#27   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e2776b3, in std::__invoke_result<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*&)(), gz::sim::v8::systems::ModelPhotoShootPrivate*&>::type std::__invoke<void (gz::sim::v8::systems::ModelPhotoShootPrivate::*&)(), gz::sim::v8::systems::ModelPhotoShootPrivate*&>(void (gz::sim::v8::systems::ModelPhotoShootPrivate::*&)(), gz::sim::v8::systems::ModelPhotoShootPrivate*&)
#26   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e27b8ad, in void std::__invoke_impl<void, void (gz::sim::v8::systems::ModelPhotoShootPrivate::*&)(), gz::sim::v8::systems::ModelPhotoShootPrivate*&>(std::__invoke_memfun_deref, void (gz::sim::v8::systems::ModelPhotoShootPrivate::*&)(), gz::sim::v8::systems::ModelPhotoShootPrivate*&)
#25   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e227c9a, in gz::sim::v8::systems::ModelPhotoShootPrivate::PerformPostRenderingOperations()
#24   Object "/data/play/robot/workspace/install/lib/gz-sim-8/plugins/libgz-sim-model-photo-shoot-system.so", at 0x7f372e22919b, in gz::sim::v8::systems::ModelPhotoShootPrivate::SavePicture(std::shared_ptr<gz::rendering::v8::Camera>, gz::math::v7::Pose3<double> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const
#23   Object "/data/play/robot/workspace/install/lib/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x7f372cd74066, in gz::rendering::v8::BaseCamera<gz::rendering::v8::Ogre2Sensor>::Capture(gz::rendering::v8::Image&)
#22   Object "/data/play/robot/workspace/install/lib/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x7f372cd73bf1, in gz::rendering::v8::BaseCamera<gz::rendering::v8::Ogre2Sensor>::Update()
#21   Object "/data/play/robot/workspace/install/lib/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x7f372cd99c6b, in gz::rendering::v8::Ogre2Camera::Render()
#20   Object "/data/play/robot/workspace/install/lib/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x7f372cf9d928, in gz::rendering::v8::Ogre2RenderTarget::Render()
#19   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7f3727e9b6b3, in Ogre::CompositorWorkspace::_update(bool)
#18   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7f3727e8d934, 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 0x7f3727ea5bf7, in Ogre::CompositorPassScene::execute(Ogre::Camera const*)
#16   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7f3727c12612, 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 0x7f3727da71e4, 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 0x7f3727d6b0ee, 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 0x7f3727d69d74, 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 0x7f372c2616a4, 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 0x7f36fe78a328, in Ogre::GLSLMonolithicProgramManager::getActiveMonolithicProgram()
#10   Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7f36fe78cada, in Ogre::GLSLMonolithicProgram::activate()
#9    Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7f36fe78c35d, in Ogre::GLSLMonolithicProgram::compileAndLink()
#8    Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7f36fe781697, in 
#7    Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/OGRE/RenderSystem_GL3Plus.so", at 0x7f36fe780296, in 
#6    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f376e6de4d7, in __cxa_throw
#5    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f376e6de276, in std::terminate()
#4    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f376e6de20b, in 
#3    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f376e6d2b9d, in 
#2    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f37729637f2, in abort
#1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f377297d475, in raise
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f37729d19fc, in pthread_kill
Aborted (Signal sent by tkill() 139455 1000)
@gzfuzz gzfuzz added the bug Something isn't working label Aug 25, 2024
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
Status: Inbox
Development

No branches or pull requests

1 participant