The first problem is quite common among the beginners. But when I search the forum for any useful help, I found that the cause of the problem seems not the same.
When I build the CEGUISample.sln in premake on version of 0.7.6, most of them seem okay. I successfully compile the samples in debug\debug_static\release\release_static mode and run them, but when I finish compiling samples in releasewithsymbols mode(I found that I can only debug the sample in this mode) and run it, it crashes. The problem seems common:
Assertion failed, ms_Singleton, file D:\..\..\..\include\ceguisingleton.h, line79.
And I set the breakpoint, I found the actually crash happen at
Logger::getSingleton().logEvent("XercesParser::initialiseSchema - Attempting to load schema from file '" + schemaName + "'.");
at line 223 of CEGUIXercesParser.cpp.
I haven't do any customized configuration, I just build the CEGUI, build the CEGUIsample, compile it in releasewithsymbols mode, and it crashed.
The second problem is with my own app.
I use the sample framework in my app. I copy the project structure and develop my own app.
It was all okay until recently. But after I do some changes(I forget what change I have done ), app crashed at
wnd->subscribeEvent(Window::EventDragDropItemDropped,Event::Subscriber(&Dater::handle_ItemDropped, this));
wnd is a window, and Dater is my app inherit CEGuiSample, handle_ItemDropped is a private function in class Dater.
And the problem is Unhandled exception at 0x002e1e8f in Dater.exe: 0xC0000005: Access violation reading location 0xbaadf015 when I run it in releasewithsymbols mode(other configuration is OKAY). And if I comment out this line, the similar problem occurs in another subscribeEvent sentence.
These two problem all occur in releasewithsymbols mode, and they confuse me a lot.
Appreciate for any help.
Two problems with Sample and my own app
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 9
- Joined: Sun Mar 11, 2012 18:14
-
- Quite a regular
- Posts: 46
- Joined: Fri Mar 19, 2010 05:31
Re: Two problems with Sample and my own app
I don't know what is wrong but I suggest that you edit the config.lua to change the settings and then rebuild the project and examples. It might not help, but its worth a try, and you really should pay attention to what is in config.lua anyways.
-
- Just popping in
- Posts: 9
- Joined: Sun Mar 11, 2012 18:14
Re: Two problems with Sample and my own app
After set some breakpoints and have some try, I have just found that the sentence leading to the error of the any sample(such as Sample6):
I just set the breakpoints at this line, the early serval getSingleton method is just correct, and I add a watch point at ms_Singleton, the value of it is correct(not 0x00000000) and unchanged during the early serval getSingleton method.But after the method is called by
The value of ms_Singleton changed to 0x00000000, and of course the app crashed.
CEGUI.log followed.
So what's the problem.
Code: Select all
System& System::getSingleton(void)
{
return Singleton<System>::getSingleton();
}
I just set the breakpoints at this line, the early serval getSingleton method is just correct, and I add a watch point at ms_Singleton, the value of it is correct(not 0x00000000) and unchanged during the early serval getSingleton method.But after the method is called by
Code: Select all
TinyXMLDocument::TinyXMLDocument(XMLHandler& handler, const String& filename, const String& /*schemaName*/, const String& resourceGroup)
{
/*...*/
System::getSingleton().getResourceProvider()->loadRawDataContainer(filename, rawXMLData, resourceGroup);
/*...*/
}
The value of ms_Singleton changed to 0x00000000, and of course the app crashed.
CEGUI.log followed.
Code: Select all
19/04/2012 18:53:13 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
19/04/2012 18:53:13 (Std) + Crazy Eddie's GUI System - Event log +
19/04/2012 18:53:13 (Std) + (http://www.cegui.org.uk/) +
19/04/2012 18:53:13 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
19/04/2012 18:53:13 (Std) CEGUI::Logger singleton created. (0056E160)
19/04/2012 18:53:13 (Std)
19/04/2012 18:53:13 (Std) ********************************************************************************
19/04/2012 18:53:13 (Std) * Important: *
19/04/2012 18:53:13 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
19/04/2012 18:53:13 (Std) * of this log file indicated below. Failure to do this will result in no *
19/04/2012 18:53:13 (Std) * support being given; please do not waste our time. *
19/04/2012 18:53:13 (Std) ********************************************************************************
19/04/2012 18:53:13 (Std) ********************************************************************************
19/04/2012 18:53:13 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
19/04/2012 18:53:13 (Std) ********************************************************************************
19/04/2012 18:53:13 (Std) ---- Version 0.7.6 (Build: Apr 19 2012 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
19/04/2012 18:53:13 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
19/04/2012 18:53:13 (Std) ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
19/04/2012 18:53:13 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
19/04/2012 18:53:13 (Std) ---- Scripting module is: None ----
19/04/2012 18:53:13 (Std) ********************************************************************************
19/04/2012 18:53:13 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
19/04/2012 18:53:13 (Std) ********************************************************************************
19/04/2012 18:53:13 (Std)
19/04/2012 18:53:13 (Std) ---- Begining CEGUI System initialisation ----
19/04/2012 18:53:13 (Std) CEGUI::ImagesetManager singleton created (0056E048)
19/04/2012 18:53:13 (Std) CEGUI::FontManager singleton created. (0056E538)
19/04/2012 18:53:13 (Std) CEGUI::WindowFactoryManager singleton created
19/04/2012 18:53:13 (Std) CEGUI::WindowManager singleton created (0057B5C8)
19/04/2012 18:53:13 (Std) CEGUI::SchemeManager singleton created. (00589D30)
19/04/2012 18:53:13 (Std) CEGUI::MouseCursor singleton created. (0056E8F8)
19/04/2012 18:53:13 (Std) CEGUI::GlobalEventSet singleton created. (0057E830)
19/04/2012 18:53:13 (Std) CEGUI::AnimationManager singleton created (00575498)
19/04/2012 18:53:13 (Std) CEGUI::WidgetLookManager singleton created. (0058B670)
19/04/2012 18:53:13 (Std) CEGUI::WindowRendererManager singleton created (0058B938)
19/04/2012 18:53:13 (Std) CEGUI::RenderEffectManager singleton created (0058BAB8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'DefaultWindow' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'DefaultWindow' windows added. (0058BCF0)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'DragContainer' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'DragContainer' windows added. (0058BEF0)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'ScrolledContainer' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'ScrolledContainer' windows added. (0058C0F8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'ClippedContainer' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'ClippedContainer' windows added. (0058C300)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Checkbox' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (0058C510)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/PushButton' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (0058C728)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/RadioButton' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (0058C8E8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Combobox' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (0058CB08)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/ComboDropList' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (0058CCC8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Editbox' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (0058CE88)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/FrameWindow' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (0058D0B8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/ItemEntry' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (0058D278)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Listbox' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (0058D438)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/ListHeader' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (0058D5F8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (0058DCE0)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Menubar' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (0058DB30)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/PopupMenu' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (0058DC08)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/MenuItem' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (0058DEA0)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/MultiColumnList' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (0058DF78)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0058E138)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/ProgressBar' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (0058E3A8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/ScrollablePane' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (0058E608)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Scrollbar' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (0058E7C8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Slider' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Slider' windows added. (0058E988)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Spinner' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (0058EB48)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/TabButton' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (0058ED08)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/TabControl' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (0058EEC8)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Thumb' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (0058F088)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Titlebar' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (0058F248)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Tooltip' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (0058F4F0)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/ItemListbox' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (0058F6B0)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/GroupBox' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (0058F870)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'CEGUI/Tree' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'CEGUI/Tree' windows added. (0058FA30)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'HorizontalLayoutContainer' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'HorizontalLayoutContainer' windows added. (0058FBF0)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'VerticalLayoutContainer' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'VerticalLayoutContainer' windows added. (0058FE80)
19/04/2012 18:53:13 (Std) Created WindowFactory for 'GridLayoutContainer' windows.
19/04/2012 18:53:13 (Std) WindowFactory for 'GridLayoutContainer' windows added. (00590040)
19/04/2012 18:53:13 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
19/04/2012 18:53:13 (Std) CEGUI::System singleton created. (0056DCB0)
19/04/2012 18:53:13 (Std) ---- CEGUI System initialisation completed ----
19/04/2012 18:53:13 (Std)
19/04/2012 18:53:13 (Std) Attempting to create Imageset 'cegui_logo' using image file 'logo.png'.
So what's the problem.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Two problems with Sample and my own app
Which premake did you use to generate the solutions? There were two issues we had with stock premake, one was related to premake always defining _DEBUG incorrectly when symbols were enabled, and the other was (I think) related to a regular 'release' build having its output overwrite the results of the 'release with symbols' build. These were the reasons we made a customised premake. Perhaps you are affected?
CE
CE
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: Google [Bot] and 4 guests