SFML 2.1 CEGUI 0.8.2

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

bany
Just popping in
Just popping in
Posts: 1
Joined: Thu Aug 08, 2013 17:23

SFML 2.1 CEGUI 0.8.2

Postby bany » Fri Aug 09, 2013 16:52

Hi, i'm new to cegui, and i have a problem with singleton.
I read that this error occur when singleton are not initialized or destroyed, but when i read the log, it look like every singleton are created and not destroyed.
Can someone help me ? (sorry for my bad english :s)

Error :
Assertion failed: !ms_Singleton, file C:\Users\Bany\Downloads\cegui-0.8.2\ceg
ui-0.8.2\cegui\include\CEGUI/Singleton.h, line 73


CEGUI.log

Code: Select all

09/08/2013 18:39:52 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
09/08/2013 18:39:52 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
09/08/2013 18:39:52 (Std)    +                          (http://www.cegui.org.uk/)                         +
09/08/2013 18:39:52 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

09/08/2013 18:39:52 (Std)    CEGUI::Logger singleton created. (006A8F48)
09/08/2013 18:39:52 (Std)    
09/08/2013 18:39:52 (Std)    ********************************************************************************
09/08/2013 18:39:52 (Std)    * Important:                                                                   *
09/08/2013 18:39:52 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
09/08/2013 18:39:52 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
09/08/2013 18:39:52 (Std)    *     support being given; please do not waste our time.                       *
09/08/2013 18:39:52 (Std)    ********************************************************************************
09/08/2013 18:39:52 (Std)    ********************************************************************************
09/08/2013 18:39:52 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
09/08/2013 18:39:52 (Std)    ********************************************************************************
09/08/2013 18:39:52 (Std)    ---- Version: 0.8.2 (Build: Aug  5 2013 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
09/08/2013 18:39:52 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
09/08/2013 18:39:52 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
09/08/2013 18:39:52 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
09/08/2013 18:39:52 (Std)    ---- Scripting module is: None ----
09/08/2013 18:39:52 (Std)    ********************************************************************************
09/08/2013 18:39:52 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
09/08/2013 18:39:52 (Std)    ********************************************************************************
09/08/2013 18:39:52 (Std)    
09/08/2013 18:39:52 (Std)    ---- Begining CEGUI System initialisation ----
09/08/2013 18:39:52 (Std)    [CEGUI::ImageManager] Singleton created (006A9358)
09/08/2013 18:39:52 (Std)    [CEGUI::ImageManager] Registered Image type: BasicImage
09/08/2013 18:39:52 (Std)    CEGUI::FontManager singleton created. (006AADF0)
09/08/2013 18:39:52 (Std)    CEGUI::WindowFactoryManager singleton created
09/08/2013 18:39:52 (Std)    CEGUI::WindowManager singleton created (006AC008)
09/08/2013 18:39:52 (Std)    CEGUI::SchemeManager singleton created. (006ACB08)
09/08/2013 18:39:52 (Std)    CEGUI::GlobalEventSet singleton created. (006ACE88)
09/08/2013 18:39:52 (Std)    CEGUI::AnimationManager singleton created (006AD0D0)
09/08/2013 18:39:52 (Std)    CEGUI::WidgetLookManager singleton created. (006ADE90)
09/08/2013 18:39:52 (Std)    CEGUI::WindowRendererManager singleton created (006AE268)
09/08/2013 18:39:52 (Std)    CEGUI::RenderEffectManager singleton created (006AE730)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'DefaultWindow' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'DefaultWindow' windows added. (05AA0AE8)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'DragContainer' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'DragContainer' windows added. (05AA0D48)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'ScrolledContainer' windows added. (05AA0F08)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'ClippedContainer' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'ClippedContainer' windows added. (05AA10C8)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (05AA1288)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (05AA1448)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (05AA1608)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (006AFA80)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (05AA1910)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (05AA1AD0)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (05AA1C90)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (05AA1E50)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (05AA2010)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (05AA21D0)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (05AA2418)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (05AA25D8)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (05AA2798)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (05AA2958)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (05AA2B18)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (05AA2CD8)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (05AA2F48)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (05AA3108)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (05AA32C8)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (05AA3488)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (05AA3648)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (05AA3808)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (05AA39C8)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (05AA3B88)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ToggleButton' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ToggleButton' windows added. (05AA3D48)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (05AA3FF0)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (05AA4250)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (05AA4410)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (05AA45D0)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'LayoutCell' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'LayoutCell' windows added. (05AA4790)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (05AA4950)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (05AA4BE0)
09/08/2013 18:39:52 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
09/08/2013 18:39:52 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (05AA4DA0)
09/08/2013 18:39:52 (Std)    CEGUI::System singleton created. (006A8B28)
09/08/2013 18:39:52 (Std)    ---- CEGUI System initialisation completed ----
09/08/2013 18:39:52 (Std)    


Code: Select all

bool GUIManager::Initialize(sf::RenderWindow* Win)
{
   mWindow = Win;
   try
   {
      mRenderer = &CEGUI::OpenGLRenderer::bootstrapSystem();
      mSystem = CEGUI::System::getSingletonPtr();
      mSystem->create(*mRenderer);
   
      mWindowManager = CEGUI::WindowManager::getSingletonPtr();
   }
   catch (CEGUI::Exception& e)
   {
      printf("CEGUI Error: %s\n", e.getMessage().c_str());
      return false;
   }
   return true;
}


The problem is at this line

Code: Select all

      mSystem->create(*mRenderer);


Thx for helping !

Archerry
Just popping in
Just popping in
Posts: 1
Joined: Fri Aug 16, 2013 21:24

Re: SFML 2.1 CEGUI 0.8.2

Postby Archerry » Fri Aug 16, 2013 21:28

Hi bany,

Have you tried progressing without calling mSystem->create()?

The boostrapSystem() call creates the system singleton, and that assertion is due to trying to create it again.

For more info on bootstrapSystem(), see:
http://www.cegui.org.uk/docs/current/cl ... a2fbb45681


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests