Page 1 of 1

delete CEGUI::System::getSingletonPtr(); crash

Posted: Sun Sep 06, 2009 12:29
by yamashi
Hello !

I ve got CEGUI working fine except when I close the application, I clean up my ressources but when it comes to CEGUI, it crashes on :

Code: Select all

delete CEGUI::System::getSingletonPtr();

I check to see if the Singleton isn't NULL and it's not...
I really don't see what I can do.
Info : I am using the Irrlicht Renderer.
It only occurs in debug...

Here is the log :
06/09/2009 14:27:13 (Std) ---- Begining CEGUI System destruction ----
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Tree' windows removed. (623F0B78)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Thumb' windows removed. (623F0858)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Slider' windows removed. (623F05D8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Editbox' windows removed. (623EFBD8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Listbox' windows removed. (623EFEF8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Menubar' windows removed. (623F0038)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Spinner' windows removed. (623F0678)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Tooltip' windows removed. (623F0998)
06/09/2009 14:27:13 (Std) WindowFactory for 'DefaultWindow' windows removed. (623EF778)
06/09/2009 14:27:13 (Std) WindowFactory for 'DragContainer' windows removed. (623EF818)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Checkbox' windows removed. (623EF9F8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Combobox' windows removed. (623EFB38)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/GroupBox' windows removed. (623F0AD8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/MenuItem' windows removed. (623EFF98)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Titlebar' windows removed. (623F08F8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/ItemEntry' windows removed. (623EFD18)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/PopupMenu' windows removed. (623F0218)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/Scrollbar' windows removed. (623F0538)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/TabButton' windows removed. (623F0718)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/ListHeader' windows removed. (623EFDB8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/PushButton' windows removed. (623F0358)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/TabControl' windows removed. (623F07B8)
06/09/2009 14:27:13 (Std) WindowFactory for 'ClippedContainer' windows removed. (623EF958)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/FrameWindow' windows removed. (623EFC78)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/ItemListbox' windows removed. (623F0A38)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/ProgressBar' windows removed. (623F02B8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/RadioButton' windows removed. (623F03F8)
06/09/2009 14:27:13 (Std) WindowFactory for 'ScrolledContainer' windows removed. (623EF8B8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/ComboDropList' windows removed. (623EFA98)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows removed. (623F0498)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows removed. (623F00D8)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows removed. (623F0178)
06/09/2009 14:27:13 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows removed. (623EFE58)
06/09/2009 14:27:13 (Std) ---- Begining cleanup of GUI Scheme system ----
06/09/2009 14:27:13 (Std) Scheme 'TaharezLookWidgets' has been unloaded via the SchemeManager. (04808520)
06/09/2009 14:27:13 (Std) CEGUI::SchemeManager singleton destroyed. (0029CC70)
06/09/2009 14:27:13 (Std) CEGUI::WindowManager singleton destroyed (0029F8D8)
06/09/2009 14:27:13 (Std) CEGUI::WindowFactoryManager singleton destroyed
06/09/2009 14:27:13 (Std) CEGUI::WidgetLookManager singleton destroyed. (0055C7A0)
06/09/2009 14:27:13 (Std) CEGUI::WindowRendererManager singleton destroyed (0055C8C0)
06/09/2009 14:27:13 (Std) ---- Begining cleanup of Font system ----
06/09/2009 14:27:13 (Std) Font 'DejaVuSans-10' has been destroyed. (0055FD20)
06/09/2009 14:27:13 (Std) CEGUI::FontManager singleton destroyed. (0029AF08)
06/09/2009 14:27:13 (Std) CEGUI::MouseCursor singleton destroyed. (0055C640)
06/09/2009 14:27:13 (Std) ---- Begining cleanup of Imageset system ----
06/09/2009 14:27:13 (Std) CEGUI::ImagesetManager singleton destroyed (00551F58)
06/09/2009 14:27:13 (Std) CEGUI::GlobalEventSet singleton destroyed. (005512B8)
06/09/2009 14:27:13 (Std) CEGUI::System singleton destroyed. (02221C30)
06/09/2009 14:27:13 (Std) ---- CEGUI System destruction completed ----
06/09/2009 14:27:13 (Std) CEGUI::Logger singleton destroyed. (00559140)


Ty !

Re: delete CEGUI::System::getSingletonPtr(); crash

Posted: Mon Sep 07, 2009 08:50
by CrazyEddie
Hi,

When you say 'crash', what does that mean precisely? Access violation / segafult or some other system exception? Perhaps a CEGUI::Exception? Maybe an assertion failure, or STL runtime check failure?

Can you please post the specific nature of the crash, a debug backtrace or callstack, and also confirm which compiler this is using, which system you're running on, whether you're linking statically or dynamically to CEGUI, whether you're linking the correct libs (like the _d version in debug mode) and no others (such as both debug and release versions).

Thanks,

CE.

Re: delete CEGUI::System::getSingletonPtr(); crash

Posted: Tue Sep 08, 2009 16:11
by Jamarr
You should make the "newtopic" button open a "new topic wizard" that gives the user a questionair...<list of items>: "is this about a crash" (if yes) "..." etc :wink:

Re: delete CEGUI::System::getSingletonPtr(); crash

Posted: Wed Sep 09, 2009 08:34
by CrazyEddie
You think it would help? :lol: