[Ogre 2.0] Help, app crashed!

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
ZhenMan
Gnoblar
Posts: 11
Joined: Mon Jan 06, 2014 4:35 pm

[Ogre 2.0] Help, app crashed!

Post by ZhenMan »

my app crashed, this is call stack:

Code: Select all

vector<>::~vector()  (ArrayMemoryManager::mAvailableSlots)
ArrayMemoryManager::~ArrayMemoryManager()
ObjectDataArrayMemoryManager::~ObjectDataArrayMemoryManager()
OgreMain_d.dll!Ogre::ObjectMemoryManager::growToDepth()
OgreMain_d.dll!Ogre::ObjectMemoryManager::objectCreated()
OgreMain_d.dll!Ogre::MovableObject::MovableObject()
ParticleUniverse_d.dll!ParticleUniverse::ParticleSystem::ParticleSystem()
ParticleUniverse_d.dll!ParticleUniverse::ParticleSystemManager::createParticleSystemTemplate()
ParticleUniverse_d.dll!ParticleUniverse::SystemTranslator::translate()
OgreMain_d.dll!Ogre::ScriptCompiler::compile()
OgreMain_d.dll!Ogre::ScriptCompiler::compile()
OgreMain_d.dll!Ogre::ScriptCompilerManager::parseScript()
OgreMain_d.dll!Ogre::ResourceGroupManager::parseResourceGroupScripts() 
OgreMain_d.dll!Ogre::ResourceGroupManager::initialiseAllResourceGroups()
the crash point at the destructor of ArrayMemoryManager::mAvailableSlots.
please help me, this problem trapped me 4days :D
User avatar
Jayray
Greenskin
Posts: 115
Joined: Sun Sep 09, 2012 5:29 pm
Location: Strasbourg, France
x 9

Re: [Ogre 2.0] Help, app crashed!

Post by Jayray »

Can you give us more details?
When does this crash happen? On init? When calling "startRendering" or "renderOneFrame"?
ZhenMan
Gnoblar
Posts: 11
Joined: Mon Jan 06, 2014 4:35 pm

Re: [Ogre 2.0] Help, app crashed!

Post by ZhenMan »

thank your reply.
it is on init. Once start app, init all resource group, crash.
this happen when portint ogre form 1.9 to 2.0. :wink:
User avatar
Jayray
Greenskin
Posts: 115
Joined: Sun Sep 09, 2012 5:29 pm
Location: Strasbourg, France
x 9

Re: [Ogre 2.0] Help, app crashed!

Post by Jayray »

Some of your scripts may be incompatible with Ogre 2.0.
What are the last logs in your ogre.log file? I think I had some issues too because some material scripts were not compatible with Ogre 2.0, but the messages in the ogre.log file were quite explicit, so I have been able to migrate the material scripts.

Besides, on Ogre 2.1, I have a crash on the D3D11 render system when the material scripts are loaded (out of memory for textures apparently...).
I have not figured out how to solve this yet, so I use the OpenGL 3+ render system for now.
But this is on Ogre 2.1, not on Ogre 2.0...

Anyway, 3 suggestions:
- Take a loot at your ogre.log file to see if there is a relevant log.
- Try with a different render system
- Try commenting all your resources folders. Then, uncomment the folders one by one to try to find out which one causes the issue.

I hope this will help :roll:
ZhenMan
Gnoblar
Posts: 11
Joined: Mon Jan 06, 2014 4:35 pm

Re: [Ogre 2.0] Help, app crashed!

Post by ZhenMan »

thank you Jayray :)

I write one line test code:

{
ParticleUniverse::ParticleSystem *ps = ParticleUniverse::ParticleSystemManager::getSingleton().
createParticleSystemTemplate("testPsTemplate", "General");
}

it crashes every time.(debug assertiont raised:_pLastBlock == pHead )
I don't know why, maybe this is the ParticleUniverse's(proted to ogre 2.0) problem.
User avatar
Zonder
Ogre Magi
Posts: 1168
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 73

Re: [Ogre 2.0] Help, app crashed!

Post by Zonder »

ZhenMan wrote:thank you Jayray :)

I write one line test code:

{
ParticleUniverse::ParticleSystem *ps = ParticleUniverse::ParticleSystemManager::getSingleton().
createParticleSystemTemplate("testPsTemplate", "General");
}

it crashes every time.(debug assertiont raised:_pLastBlock == pHead )
I don't know why, maybe this is the ParticleUniverse's(proted to ogre 2.0) problem.
http://ogre3d.org/forums/viewtopic.php?f=25&t=82012 check over the thread it does mention some issues with partical universe that are still left. Maybe try one of the working templates that worked on there to ensure it's not your template.
There are 10 types of people in the world: Those who understand binary, and those who don't...
ZhenMan
Gnoblar
Posts: 11
Joined: Mon Jan 06, 2014 4:35 pm

Re: [Ogre 2.0] Help, app crashed!

Post by ZhenMan »

Thank you Zonder.

I make the mistake.There are 2 versions of ParticleUniverse, that ported to ogre 2.0. one created by c6burns, other done by al2950.
The previous one I tried firstly, crashed. and the last one correctly.
Post Reply