Assertion 'ms_Singleton' failed

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

iamhero
Just popping in
Just popping in
Posts: 2
Joined: Sun Feb 24, 2013 21:48

Assertion 'ms_Singleton' failed

Postby iamhero » Sun Feb 24, 2013 21:54

Hello, I am new to cegui. So far I've managed to integrate it to Ogre3d. Right now I have this line of code in the Ogre3d tutorialApplication::createScene() function

CEGUI::OgreRenderer& mRenderer = CEGUI::OgreRenderer::bootstrapSystem();

I am using code::blocks 10.05 on ubuntu 12.04 to run my code and when i do i get this error - Program recevide a SIGABRT error. and the app crashes.
Is there anyway to solve this problem?
Here's my cegui.log

Code: Select all

24/02/2013 16:40:42 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
24/02/2013 16:40:42 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
24/02/2013 16:40:42 (Std)    +                          (http://www.cegui.org.uk/)                         +
24/02/2013 16:40:42 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

24/02/2013 16:40:42 (Std)    CEGUI::Logger singleton created. (0x9050848)
24/02/2013 16:40:42 (Std)    
24/02/2013 16:40:42 (Std)    ********************************************************************************
24/02/2013 16:40:42 (Std)    * Important:                                                                   *
24/02/2013 16:40:42 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
24/02/2013 16:40:42 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
24/02/2013 16:40:42 (Std)    *     support being given; please do not waste our time.                       *
24/02/2013 16:40:42 (Std)    ********************************************************************************
24/02/2013 16:40:42 (Std)    ********************************************************************************
24/02/2013 16:40:42 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
24/02/2013 16:40:42 (Std)    ********************************************************************************
24/02/2013 16:40:42 (Std)    ---- Version 0.7.9 (Build: Feb 18 2013 GNU/Linux g++ 4.6.3 32 bit) ----
24/02/2013 16:40:42 (Std)    ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
24/02/2013 16:40:42 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
24/02/2013 16:40:42 (Std)    ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
24/02/2013 16:40:42 (Std)    ---- Scripting module is: None ----
24/02/2013 16:40:42 (Std)    ********************************************************************************
24/02/2013 16:40:42 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
24/02/2013 16:40:42 (Std)    ********************************************************************************
24/02/2013 16:40:42 (Std)    
24/02/2013 16:40:42 (Std)    ---- Begining CEGUI System initialisation ----
24/02/2013 16:40:42 (Std)    CEGUI::ImagesetManager singleton created (0x9052348)
24/02/2013 16:40:42 (Std)    CEGUI::FontManager singleton created. (0x9050a30)
24/02/2013 16:40:42 (Std)    CEGUI::WindowFactoryManager singleton created
24/02/2013 16:40:42 (Std)    CEGUI::WindowManager singleton created (0x9050c00)
24/02/2013 16:40:42 (Std)    CEGUI::SchemeManager singleton created. (0x9040cf8)
Last edited by iamhero on Mon Feb 25, 2013 00:23, edited 1 time in total.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: sigabrt error help on CEGUI 0.7.9

Postby Kulik » Sun Feb 24, 2013 21:57

DEBUG!

These kinds of issues are trivial to solve, the debugger will tell you exactly where the problem is. 100% reproducible crashes are a piece of cake.

cgdb / gdb and valgrind are your friends, use them!

PS: I am not being a jerk, I don't have enough info to have any idea where the problem is.

iamhero
Just popping in
Just popping in
Posts: 2
Joined: Sun Feb 24, 2013 21:48

Assertion 'ms_Singleton' failed

Postby iamhero » Mon Feb 25, 2013 00:23

I went ahead and used the gdb debugger as suggested about and nailed down my error to
an Assertion "ms_Sibgleton" failed

I tried to locate any dll files but have none, even after building from source.
Is there anything i could've missed ?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Assertion 'ms_Singleton' failed

Postby CrazyEddie » Mon Feb 25, 2013 09:44

You need to develop skills to think and analyse these kinds of issues. We understand that at this point in time all you want is to make the damn thing work! But please be aware that CEGUI itself does work, and the fact that it's not working for you means that you have done something wrong or that there is something about your particular set up that is making it fail. So, to repeat, you need to be able to think and analyse these issues with a clear mind and use an approach that will lead to success.

Some of the things said so far leads me to believe that you have very little development experience or at the very least, you're something of a newcomer to linux - of course, these are not inherently bad things, but they're important to consider from our perspective, since we tend to target CEGUI at those with a certain level of experience and therefore assume users actually have that level of experience (even though our own experience should likely tell us otherwise :)).

So anyway, when dealing with any kind of 'crash' or assertion like this - or indeed any issue where you are asking help from people who have no information at all to work with - you need to provide enough context, and that means a backtrace from the debugger that includes symbols and perhaps any other diagnostic information that could be useful - yes, I know that someone with little experience will not know what information could be useful, so in this case, I suggest to include all possible information! So, in addition to the backtrace, you might include the output from ldd to show which libraries are being linked at runtime and so on.

CE.

User avatar
kornerr
Not too shy to talk
Not too shy to talk
Posts: 41
Joined: Tue Apr 11, 2006 10:07
Location: Russia, Siberia, Kemerovo
Contact:

Re: Assertion 'ms_Singleton' failed

Postby kornerr » Mon Feb 25, 2013 15:55

Depending on who says he needs ms_Singleton, you need to create that class. Looks like CEGUI is missing some Ogre related class, because ms_Singleton is a static variable in Ogre::Singleton.
I advise you to read Ogre Basic Tutorial 7 which describes Ogre CEGUI integration.
Open Source all the way, baby ;)
Opensource Game Studio

User avatar
kornerr
Not too shy to talk
Not too shy to talk
Posts: 41
Joined: Tue Apr 11, 2006 10:07
Location: Russia, Siberia, Kemerovo
Contact:

Re: Assertion 'ms_Singleton' failed

Postby kornerr » Mon Feb 25, 2013 16:18

I have been corrected that CEGUI uses ms_Singleton static variables for Singletons too.
So you have to instantiate some more singletons.
Still, read Ogre Basic Tutorial 7. It has complete example.
Open Source all the way, baby ;)
Opensource Game Studio


Return to “Help”

Who is online

Users browsing this forum: No registered users and 16 guests