Page 1 of 1

[2.1] segmentation fault on shutdown in datablock destroy

Posted: Thu Oct 25, 2018 6:04 pm
by Boost113
Ogre Version: latest 2.1 branch commit f2916a26ff9b
Operating System: Linux
Render System: OpenGL3+

After I pulled in latest changes (I'm pretty sure any small changes I made to my program are probably not the cause) I'm getting segmentation fault when I close my program:

Code: Select all

Thread 1 "Thrive" received signal SIGSEGV, Segmentation fault.
Ogre::HlmsManager::_datablockDestroyed (this=0x0, name=...) at /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/OgreMain/src/OgreHlmsManager.cpp:494
So it looks like after HlmsManager is set to nullptr a method is called on it.

Full callstack:

Code: Select all

0  in Ogre::HlmsManager::_datablockDestroyed of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/OgreMain/src/OgreHlmsManager.cpp:494
1  in Ogre::Hlms::_destroyAllDatablocks of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/OgreMain/src/OgreHlms.cpp:1701
2  in Ogre::Hlms::~Hlms of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/OgreMain/src/OgreHlms.cpp:278
3  in Ogre::HlmsPbs::~HlmsPbs of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/Components/Hlms/Pbs/src/OgreHlmsPbs.cpp:249
4  in Ogre::HlmsManager::~HlmsManager of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/OgreMain/src/OgreHlmsManager.cpp:118
5  in Ogre::HlmsManager::~HlmsManager of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/OgreMain/src/OgreHlmsManager.cpp:100
6  in Ogre::Root::~Root() of /home/hhyyrylainen/Projects/Leviathan/ThirdParty/ogre/OgreMain/src/OgreRoot.cpp:376
7  in std::default_delete<Ogre::Root>::operator() of /home/hhyyrylainen/Projects/Leviathan/Engine/Rendering/Graphics.cpp:96
8  in std::unique_ptr<Ogre::Root, std::default_delete<Ogre::Root> >::reset of /usr/include/c++/8/bits/unique_ptr.h:382
9  in Leviathan::Graphics::Release of /home/hhyyrylainen/Projects/Leviathan/Engine/Rendering/Graphics.cpp:96
10 in Leviathan::Engine::Release(bool) of /home/hhyyrylainen/Projects/Leviathan/Engine/Engine.cpp:632
11 in Leviathan::LeviathanApplication::Release() of /home/hhyyrylainen/Projects/Leviathan/Engine/Application/Application.cpp:63
12 in Leviathan::LeviathanApplication::RunMessageLoop() of /home/hhyyrylainen/Projects/Leviathan/Engine/Application/Application.cpp:157
13 in main of /home/hhyyrylainen/Projects/thrive/src/main.cpp:219
14 in __libc_start_main of /lib64/libc.so.6
15 in _start of /home/hhyyrylainen/Projects/thrive/src/main.cpp:172
I'm not certain but I think this is the commit that started causing this issue: https://bitbucket.org/sinbad/ogre/commi ... 09e0d1f74d

Re: [2.1] segmentation fault on shutdown in datablock destroy

Posted: Sun Oct 28, 2018 3:20 pm
by dark_sylinc
Fixed yesterday.

Apologies for the inconvenience.

Cheers
Matias

Re: [2.1] segmentation fault on shutdown in datablock destroy

Posted: Thu Nov 01, 2018 5:33 pm
by Boost113
Thanks