[SOLVED] Crash in CEGUIDataContainer

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

Excizted
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Tue Feb 23, 2010 22:16

[SOLVED] Crash in CEGUIDataContainer

Postby Excizted » Sun Jul 04, 2010 12:57

Hello,

I have already read this thread throughly: viewtopic.php?f=2&t=363

My issue is the same.

Code: Select all

void RawDataContainer::release(void)
{
    if(mData)
    {
        delete [] mData; // crashes here
        mData = 0;
    }
}


I have just checked that all Ogre parts/dependencies are Multi Threaded DLL's, aswell as CEGUI my engine and my game.
Of course I don't know about the precompiled dependency package for CEGUI, but I suppose it is ok.

Only thing I touched when building was disabling all parsers but TinyXMl, disable all renderer but Ogre and disable LUA module.
- I just realised that makes me free from any of the DLL's in the dependency package.

I don't understand why they should be on different heaps. I can even see the value of mData in the debugger.

It is not my code in general there is an issue with, as it has been working over a long time on Linux, rather than Windows which is making the current trouble.

Please help me out! :D

Thank you so much!

Regards,

'cizted.
Last edited by Excizted on Fri Jul 09, 2010 11:44, edited 1 time in total.

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

Re: Crash in CEGUIDataContainer

Postby CrazyEddie » Tue Jul 06, 2010 18:10

The thing about the cross-heap issues is that, generally, it only affects Windows; the fact that things have been working fine on linux is no surprise to me ;)

Please post the log, the exact error message and a debug call stack / backtrace. :cry: my keep having to ask for this info is really getting old now.

CE.

Excizted
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Tue Feb 23, 2010 22:16

Re: Crash in CEGUIDataContainer

Postby Excizted » Tue Jul 06, 2010 22:04

CrazyEddie wrote:The thing about the cross-heap issues is that, generally, it only affects Windows; the fact that things have been working fine on linux is no surprise to me ;)

Please post the log, the exact error message and a debug call stack / backtrace. :cry: my keep having to ask for this info is really getting old now.

CE.


Haha I'm so sorry, I didn't consider doing this as, as I saw it, it is identical to the thread I posted.
But yeah - you should get yourself a bot asking for those things, if new threads don't seem to contain them! xD People (yeah me too) will never learn.

Your kindness to people that forgets those things surprises me though, really thumbs up to you :) I don't think I could do that, so you're a great guy!! 8)

Log:

Code: Select all

04/07/2010 13:05:41 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
04/07/2010 13:05:41 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
04/07/2010 13:05:41 (Std)    +                          (http://www.cegui.org.uk/)                         +
04/07/2010 13:05:41 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

04/07/2010 13:05:41 (Std)    CEGUI::Logger singleton created. (0309E740)
04/07/2010 13:05:41 (Std)    
04/07/2010 13:05:41 (Std)    ********************************************************************************
04/07/2010 13:05:41 (Std)    * Important:                                                                   *
04/07/2010 13:05:41 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
04/07/2010 13:05:41 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
04/07/2010 13:05:41 (Std)    *     support being given; please do not waste our time.                       *
04/07/2010 13:05:41 (Std)    ********************************************************************************
04/07/2010 13:05:41 (Std)    ********************************************************************************
04/07/2010 13:05:41 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
04/07/2010 13:05:41 (Std)    ********************************************************************************
04/07/2010 13:05:41 (Std)    ---- Version 0.7.1 (Build: Jul  3 2010 Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
04/07/2010 13:05:41 (Std)    ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
04/07/2010 13:05:41 (Std)    ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
04/07/2010 13:05:41 (Std)    ---- Image Codec module is: TGAImageCodec - Official TGA image codec ----
04/07/2010 13:05:41 (Std)    ---- Scripting module is: None ----
04/07/2010 13:05:41 (Std)    ********************************************************************************
04/07/2010 13:05:41 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
04/07/2010 13:05:41 (Std)    ********************************************************************************
04/07/2010 13:05:41 (Std)    
04/07/2010 13:05:41 (Std)    ---- Begining CEGUI System initialisation ----
04/07/2010 13:05:41 (Std)    CEGUI::ImagesetManager singleton created (030A00F8)
04/07/2010 13:05:41 (Std)    CEGUI::FontManager singleton created. (0309F970)
04/07/2010 13:05:41 (Std)    CEGUI::WindowFactoryManager singleton created
04/07/2010 13:05:41 (Std)    CEGUI::WindowManager singleton created (0320ACD8)
04/07/2010 13:05:41 (Std)    CEGUI::SchemeManager singleton created. (0309F088)
04/07/2010 13:05:41 (Std)    CEGUI::MouseCursor singleton created. (03090860)
04/07/2010 13:05:41 (Std)    CEGUI::GlobalEventSet singleton created. (0320A4A0)
04/07/2010 13:05:41 (Std)    CEGUI::WidgetLookManager singleton created. (0308DBD0)
04/07/2010 13:05:41 (Std)    CEGUI::WindowRendererManager singleton created (0308DC18)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'DefaultWindow' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'DefaultWindow' windows added. (030A1498)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'DragContainer' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'DragContainer' windows added. (030A1560)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'ScrolledContainer' windows added. (030A1628)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'ClippedContainer' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'ClippedContainer' windows added. (030A16F0)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (030A17B8)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (030A1880)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (030A1948)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (030A1A10)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (030A1AD8)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (030A1C68)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (030A1BA0)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (030A1D30)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (030A1DF8)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (030A1EC0)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (030A1F88)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (030A2050)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (030A2118)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (030A21E0)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (030A22A8)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (030A2370)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (030A2438)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (030A2500)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (030A25C8)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (030A2690)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (030A2758)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (030A2820)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (030A28E8)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (030A29B0)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (030A2B40)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (030A2A78)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (030A2C08)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (030A2CD0)
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (030A2D98)
04/07/2010 13:05:41 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
04/07/2010 13:05:41 (Std)    CEGUI::System singleton created. (0309E350)
04/07/2010 13:05:41 (Std)    ---- CEGUI System initialisation completed ----
04/07/2010 13:05:41 (Std)    
04/07/2010 13:05:41 (Std)    Created WindowFactory for 'ImageWindow' windows.
04/07/2010 13:05:41 (Std)    WindowFactory for 'ImageWindow' windows added. (01331E58)
04/07/2010 13:05:41 (Std)    Attempting to create FreeType font 'Sans-8' using font file 'FreeSans.ttf'.
04/07/2010 13:05:41 (Std)    Attempting to create FreeType font 'Sans-10' using font file 'FreeSans.ttf'.
04/07/2010 13:05:42 (Std)    Attempting to create FreeType font 'Sans-12' using font file 'FreeSans.ttf'.
04/07/2010 13:05:42 (Std)    Attempting to create FreeType font 'Mono-8' using font file 'FreeMono.ttf'.
04/07/2010 13:05:42 (Std)    Attempting to create FreeType font 'Mono-10' using font file 'FreeMono.ttf'.
04/07/2010 13:05:42 (Std)    Attempting to create FreeType font 'Mono-12' using font file 'FreeMono.ttf'.
04/07/2010 13:05:42 (Std)    Started creation of Scheme from XML specification:
04/07/2010 13:05:42 (Std)    ---- CEGUI GUIScheme name: MyGUIScheme


MSVC++ Friendly Popup telling me what could be told in one line (Segmentation Fault):

Code: Select all

Windows has triggered a breakpoint in MyGame.exe.

This may be due to a corruption of the heap, which indicates a bug in MyGame.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while MyGame.exe has focus.

The output window may have more diagnostic information.


CEGUI Related part of Call Stack:

Code: Select all

>   CEGUITinyXMLParser_d.dll!CEGUI::TinyXMLDocument::TinyXMLDocument(CEGUI::XMLHandler & handler, const CEGUI::String & filename, const CEGUI::String & __formal, const CEGUI::String & resourceGroup)  Line 110 + 0x1e bytes   C++
    CEGUITinyXMLParser_d.dll!CEGUI::TinyXMLParser::parseXMLFile(CEGUI::XMLHandler & handler, const CEGUI::String & filename, const CEGUI::String & schemaName, const CEGUI::String & resourceGroup)  Line 163   C++
    CEGUIBase_d.dll!CEGUI::Scheme_xmlHandler::Scheme_xmlHandler(const CEGUI::String & filename, const CEGUI::String & resource_group)  Line 70 + 0x6c bytes   C++
    CEGUIBase_d.dll!CEGUI::NamedXMLResourceManager<CEGUI::Scheme,CEGUI::Scheme_xmlHandler>::create(const CEGUI::String & xml_filename, const CEGUI::String & resource_group, CEGUI::XMLResourceExistsAction action)  Line 214 + 0x10 bytes   C++




Hmm not sure if this means anything; I compiled CEGUI in MSVC++ 9 Express, but everything else in MSVC++ 10 Express.

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

Re: Crash in CEGUIDataContainer

Postby CrazyEddie » Thu Jul 08, 2010 08:53

Excizted wrote:Hmm not sure if this means anything; I compiled CEGUI in MSVC++ 9 Express, but everything else in MSVC++ 10 Express.

Yes, this means everything! This will be the cause of the issue. The VC9 parts will be using a heap from msvcp9.dll while the VC10 parts will be using a heap from msvcp10.dll (or whatever they're called, you get the picture, though).

CE.

Excizted
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Tue Feb 23, 2010 22:16

Re: Crash in CEGUIDataContainer

Postby Excizted » Fri Jul 09, 2010 11:44

Ah man, didn't knew that :D
Thank you so much, glad I mentioned it, otherwise we would be debugging nothing now :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests