[2.1] segmentation fault on shutdown in datablock destroy

Problems building or running the engine, queries about how to use features etc.
Post Reply
Boost113
Kobold
Posts: 35
Joined: Sun Sep 08, 2013 6:39 pm
x 5

[2.1] segmentation fault on shutdown in datablock destroy

Post by Boost113 » Thu Oct 25, 2018 6:04 pm

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
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 4138
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 268
Contact:

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

Post by dark_sylinc » Sun Oct 28, 2018 3:20 pm

Fixed yesterday.

Apologies for the inconvenience.

Cheers
Matias
0 x

Boost113
Kobold
Posts: 35
Joined: Sun Sep 08, 2013 6:39 pm
x 5

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

Post by Boost113 » Thu Nov 01, 2018 5:33 pm

Thanks
0 x

Post Reply