[Crash] Minimal SDL+Cegui example app crashes

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

Radegast
Just popping in
Just popping in
Posts: 3
Joined: Thu Oct 09, 2014 13:34

[Crash] Minimal SDL+Cegui example app crashes

Postby Radegast » Thu Oct 09, 2014 13:43

https://github.com/AranHase/minimal_sdl ... r/main.cpp

I am trying to get the above minimal SDL+Cegui example working on OS X with OpenGL 3.2+ renderer using core profile, but it crashes on this line:

Code: Select all

CEGUI::SchemeManager::getSingleton().createFromFile( "OgreTray.scheme" );


GDB outputs this backtrace:

Code: Select all

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000006700000081
CEGUI::String::length (this=0x6700000081) at String.h:623
623         return d_cplength;
(gdb) bt
#0  CEGUI::String::length (this=0x6700000081) at String.h:623
#1  0x000000010000806d in CEGUI::StringFastLessCompare::operator() (this=0x10412c428, a=@0x6700000081, b=@0x7fff5fbfe868) at String.h:5583
#2  0x0000000100009674 in std::__1::__tree<std::__1::__value_type<CEGUI::String, CEGUI::Scheme*>, std::__1::__map_value_compare<CEGUI::String, std::__1::__value_type<CEGUI::String, CEGUI::Scheme*>, CEGUI::StringFastLessCompare, true>, std::__1::allocator<std::__1::__value_type<CEGUI::String, CEGUI::Scheme*> > >::__lower_bound<CEGUI::String> (this=0x10412c418, __v=@0x7fff5fbfe868, __root=0x6700000061, __result=0x10412c420) at map:460
#3  0x00000001000093b4 in std::__1::__tree<std::__1::__value_type<CEGUI::String, CEGUI::Scheme*>, std::__1::__map_value_compare<CEGUI::String, std::__1::__value_type<CEGUI::String, CEGUI::Scheme*>, CEGUI::StringFastLessCompare, true>, std::__1::allocator<std::__1::__value_type<CEGUI::String, CEGUI::Scheme*> > >::find<CEGUI::String> (this=0x10412c418, __v=@0x7fff5fbfe868) at __tree:2039
#4  0x0000000100005c3c in std::__1::map<CEGUI::String, CEGUI::Scheme*, CEGUI::StringFastLessCompare, std::__1::allocator<std::__1::pair<CEGUI::String const, CEGUI::Scheme*> > >::find () at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1/map:355
#5  0x0000000100005c3c in CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::isDefined (this=0x10412c340, object_name=@0x7fff5fbfe868) at NamedXMLResourceManager.h:355
#6  0x0000000100004ed7 in CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::doExistingObjectAction (this=0x10412c340, object_name={<CEGUI::AllocatedObject<CEGUI::String>> = {<No data fields>}, static npos = <optimized out>, d_cplength = 8, d_reserve = 32, d_encodedbuff = 0x0, d_encodeddatlen = 0, d_encodedbufflen = 0, d_quickbuff = {79, 103, 114, 101, 84, 114, 97, 121, 0, 32767, 0, 0, 1606413440, 32767, 0, 0, 43699, 1, 1606413400, 32767, 1606412560, 32767, 40092, 1, 43699, 1, 1606413400, 32767, 43699, 1, 1606413400, 32767}, d_buffer = 0x0}, object=0x1041346a0, action=CEGUI::XREA_RETURN) at NamedXMLResourceManager.h:388
#7  0x0000000100004e20 in CEGUI::NamedXMLResourceManager<CEGUI::Scheme, CEGUI::Scheme_xmlHandler>::createFromFile (this=0x10412c340, xml_filename=@0x7fff5fbfed08, resource_group=@0x7fff5fbfec58, action=CEGUI::XREA_RETURN) at NamedXMLResourceManager.h:285
#8  0x0000000100003c35 in main () at /Users/jansimek/Development/minimal_sdl_cegui/main.cpp:49


I am using the latest CEGUI 0.8.4
Last edited by Radegast on Thu Oct 09, 2014 16:44, edited 1 time in total.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Minimal SDL+Cegui example app crashes

Postby Ident » Thu Oct 09, 2014 16:09

CrazyEddie: "I don't like GUIs"

Radegast
Just popping in
Just popping in
Posts: 3
Joined: Thu Oct 09, 2014 13:34

Re: Minimal SDL+Cegui example app crashes

Postby Radegast » Thu Oct 09, 2014 16:43

Ouch, sorry. I didn't see any error in the log, so I didn't post it. Now I see it is mandatory.

Code: Select all

09/10/2014 15:39:56 (Std)    ---- Version: 0.8.4 (Build: Sep  5 2014 Apple Mac g++ 4.8.2 64 bit) ----
09/10/2014 15:39:56 (Std)    ---- Renderer module is: CEGUI::OpenGL3Renderer - Official OpenGL 3.2 core based renderer module.  TextureTarget support enabled via FBO OGL 3.2 core implementation. ----
09/10/2014 15:39:56 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
09/10/2014 15:39:56 (Std)    ---- Image Codec module is: FreeImageCodec - FreeImage based image codec ----
09/10/2014 15:39:56 (Std)    ---- Scripting module is: None ----
09/10/2014 15:39:56 (Std)    ********************************************************************************
09/10/2014 15:39:56 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
09/10/2014 15:39:56 (Std)    ********************************************************************************
09/10/2014 15:39:56 (Std)
09/10/2014 15:39:56 (Std)    ---- Begining CEGUI System initialisation ----
09/10/2014 15:39:56 (Std)    [CEGUI::ImageManager] Singleton created (0x10412bda0)
09/10/2014 15:39:56 (Std)    [CEGUI::ImageManager] Registered Image type: BasicImage
09/10/2014 15:39:56 (Std)    CEGUI::FontManager singleton created. (0x10412c000)
09/10/2014 15:39:56 (Std)    CEGUI::WindowFactoryManager singleton created
09/10/2014 15:39:56 (Std)    CEGUI::WindowManager singleton created (0x10412c2c0)
09/10/2014 15:39:56 (Std)    CEGUI::SchemeManager singleton created. (0x10412c340)
09/10/2014 15:39:56 (Std)    CEGUI::GlobalEventSet singleton created. (0x10412be20)
09/10/2014 15:39:56 (Std)    CEGUI::AnimationManager singleton created (0x10412c470)
09/10/2014 15:39:56 (Std)    CEGUI::WidgetLookManager singleton created. (0x10412cbd0)
09/10/2014 15:39:56 (Std)    CEGUI::WindowRendererManager singleton created (0x10412c5e0)
09/10/2014 15:39:56 (Std)    CEGUI::RenderEffectManager singleton created (0x10412d3a0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'DefaultWindow' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'DefaultWindow' windows added. (0x10412ebe0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'DragContainer' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'DragContainer' windows added. (0x10412eec0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'ScrolledContainer' windows added. (0x10412f060)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'ClippedContainer' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'ClippedContainer' windows added. (0x10412f120)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (0x10412f3a0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (0x10412f540)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (0x10412f600)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (0x10412f7a0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (0x10412f9d0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (0x10412fb70)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (0x10412fda0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (0x1041300d0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (0x104130270)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (0x104130410)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (0x1041304d0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (0x104130760)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (0x104130900)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (0x104130ba0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0x104130c60)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (0x104130e10)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (0x104130fc0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (0x104131160)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (0x1041313e0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (0x104131650)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (0x104131580)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (0x1041318d0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (0x104131a70)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (0x104131c10)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ToggleButton' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ToggleButton' windows added. (0x104131db0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (0x104131e70)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (0x1041320f0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (0x1041321b0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (0x104132430)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'LayoutCell' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'LayoutCell' windows added. (0x1041325d0)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (0x104132690)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (0x104132750)
09/10/2014 15:39:56 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
09/10/2014 15:39:56 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (0x104132b30)
09/10/2014 15:39:56 (Std)    CEGUI::System singleton created. (0x1042207d0)
09/10/2014 15:39:56 (Std)    ---- CEGUI System initialisation completed ----
09/10/2014 15:39:56 (Std)
09/10/2014 15:39:56 (Std)    Started creation of Scheme from XML specification:
09/10/2014 15:39:56 (Std)    ---- CEGUI GUIScheme name: OgreTray

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby Ident » Thu Oct 09, 2014 16:52

NOW i can see that it crashes at OgreTray scheme loading. That's rather odd. Is there any chance you accidentally mixed debug with release or vice versa? I dont know how things on Macs work but that is a common issue for Windows users who have weird bugs as yours.

Other than that I need more info on your calstack. Can you tell why it crashes from the debugging? Give us some more info if you can. As far as I see you did everything right
CrazyEddie: "I don't like GUIs"

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby lucebac » Thu Oct 09, 2014 18:48

Although it is for SDL2 but it should work with SDL (with small modifications, of course).
https://bitbucket.org/lucebac/cegui/src ... s/SDL2.cpp

Radegast
Just popping in
Just popping in
Posts: 3
Joined: Thu Oct 09, 2014 13:34

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby Radegast » Thu Oct 09, 2014 23:03

Ident wrote:As far as I see you did everything right

I just tried compiling the example under Arch linux and it runs flawlessly. I think this should be reported as a bug in Cegui on OS X.

lucebac: same crash on OS X

Code: Select all

10/10/2014 01:07:11 (Std)    ---- Version: 0.8.4 (Build: Sep  5 2014 Apple Mac g++ 4.8.2 64 bit) ----
10/10/2014 01:07:11 (Std)    ---- Renderer module is: CEGUI::OpenGL3Renderer - Official OpenGL 3.2 core based renderer module.  TextureTarget support enabled via FBO OGL 3.2 core implementation. ----
10/10/2014 01:07:11 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
10/10/2014 01:07:11 (Std)    ---- Image Codec module is: FreeImageCodec - FreeImage based image codec ----
10/10/2014 01:07:11 (Std)    ---- Scripting module is: None ----
10/10/2014 01:07:11 (Std)    ********************************************************************************
10/10/2014 01:07:11 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
10/10/2014 01:07:11 (Std)    ********************************************************************************
10/10/2014 01:07:11 (Std)
10/10/2014 01:07:11 (Std)    ---- Begining CEGUI System initialisation ----
10/10/2014 01:07:11 (Std)    [CEGUI::ImageManager] Singleton created (0x10303b910)
10/10/2014 01:07:11 (Std)    [CEGUI::ImageManager] Registered Image type: BasicImage
10/10/2014 01:07:11 (Std)    CEGUI::FontManager singleton created. (0x10303bb70)
10/10/2014 01:07:11 (Std)    CEGUI::WindowFactoryManager singleton created
10/10/2014 01:07:11 (Std)    CEGUI::WindowManager singleton created (0x10303be30)
10/10/2014 01:07:11 (Std)    CEGUI::SchemeManager singleton created. (0x10303beb0)
10/10/2014 01:07:11 (Std)    CEGUI::GlobalEventSet singleton created. (0x10303b990)
10/10/2014 01:07:11 (Std)    CEGUI::AnimationManager singleton created (0x10303bfe0)
10/10/2014 01:07:11 (Std)    CEGUI::WidgetLookManager singleton created. (0x10303c740)
10/10/2014 01:07:11 (Std)    CEGUI::WindowRendererManager singleton created (0x10303c150)
10/10/2014 01:07:11 (Std)    CEGUI::RenderEffectManager singleton created (0x10303cf10)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'DefaultWindow' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'DefaultWindow' windows added. (0x10303e7b0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'DragContainer' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'DragContainer' windows added. (0x10303ea90)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'ScrolledContainer' windows added. (0x10303ece0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'ClippedContainer' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'ClippedContainer' windows added. (0x10303eda0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (0x10303f020)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (0x10303f1c0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (0x10303f280)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (0x10303f500)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (0x10303f5c0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (0x10303f840)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (0x10303f900)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (0x10303fc30)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (0x10303fdd0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (0x10303ff70)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (0x103040030)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (0x1030402c0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (0x103040460)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (0x103040700)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0x1030407c0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (0x103040970)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (0x103040b20)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (0x103040cc0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (0x103040f40)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (0x1030411b0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (0x1030410e0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (0x103041430)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (0x1030415d0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (0x103041770)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ToggleButton' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ToggleButton' windows added. (0x103041910)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (0x1030419d0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (0x103041c50)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (0x103041d10)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (0x103041f90)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'LayoutCell' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'LayoutCell' windows added. (0x103042130)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (0x1030421f0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (0x1030426a0)
10/10/2014 01:07:11 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
10/10/2014 01:07:11 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (0x1030422b0)
10/10/2014 01:07:11 (Std)    CEGUI::System singleton created. (0x100b31420)
10/10/2014 01:07:11 (Std)    ---- CEGUI System initialisation completed ----
10/10/2014 01:07:11 (Std)

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby Ident » Fri Oct 10, 2014 04:56

We can't resolve the bug if you dont give us more information. Use your IDE's debugger and tell us why it crashes, what the state of the variables are etc.
CrazyEddie: "I don't like GUIs"

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

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby Kulik » Fri Oct 10, 2014 08:35

Use valgrind and gdb, give us the output. Even better would be if you gave us a patch :-)

CodingTailor
Just popping in
Just popping in
Posts: 7
Joined: Fri Oct 02, 2015 13:50

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby CodingTailor » Fri Oct 02, 2015 13:55

Has this issue been resolved? I am having the exact same trouble running a simple sample... There really is not much (any) debug info stated by xCode on this crash. I am not familiar with valgrind and gdb (yet)...

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby Ident » Fri Oct 02, 2015 14:16

You will have to get familiar with your tools otherwise we cannot help. We are basically blind to what is happening on your side. Provide us with info and we help if we can.
CrazyEddie: "I don't like GUIs"

CodingTailor
Just popping in
Just popping in
Posts: 7
Joined: Fri Oct 02, 2015 13:50

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby CodingTailor » Wed Oct 07, 2015 10:18

Ok, so for completeness - and as it should be - this is the CEGUI.log:

Code: Select all

07/10/2015 11:25:01 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
07/10/2015 11:25:01 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
07/10/2015 11:25:01 (Std)    +                          (http://www.cegui.org.uk/)                         +
07/10/2015 11:25:01 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

07/10/2015 11:25:01 (Std)    CEGUI::Logger singleton created. (0x106808800)
07/10/2015 11:25:01 (Std)    
07/10/2015 11:25:01 (Std)    ********************************************************************************
07/10/2015 11:25:01 (Std)    * Important:                                                                   *
07/10/2015 11:25:01 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
07/10/2015 11:25:01 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
07/10/2015 11:25:01 (Std)    *     support being given; please do not waste our time.                       *
07/10/2015 11:25:01 (Std)    ********************************************************************************
07/10/2015 11:25:01 (Std)    ********************************************************************************
07/10/2015 11:25:01 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
07/10/2015 11:25:01 (Std)    ********************************************************************************
07/10/2015 11:25:01 (Std)    ---- Version: 0.8.4 (Build: Oct  2 2015 Debug Apple Mac g++ 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40) 64 bit) ----
07/10/2015 11:25:01 (Std)    ---- Renderer module is: CEGUI::OpenGL3Renderer - Official OpenGL 3.2 core based renderer module.  TextureTarget support enabled via FBO OGL 3.2 core implementation. ----
07/10/2015 11:25:01 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
07/10/2015 11:25:01 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
07/10/2015 11:25:01 (Std)    ---- Scripting module is: None ----
07/10/2015 11:25:01 (Std)    ********************************************************************************
07/10/2015 11:25:01 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
07/10/2015 11:25:01 (Std)    ********************************************************************************
07/10/2015 11:25:01 (Std)    
07/10/2015 11:25:01 (Std)    ---- Begining CEGUI System initialisation ----
07/10/2015 11:25:01 (Std)    [CEGUI::ImageManager] Singleton created (0x101012be0)
07/10/2015 11:25:01 (Std)    [CEGUI::ImageManager] Registered Image type: BasicImage
07/10/2015 11:25:01 (Std)    CEGUI::FontManager singleton created. (0x10102b730)
07/10/2015 11:25:01 (Std)    CEGUI::WindowFactoryManager singleton created
07/10/2015 11:25:01 (Std)    CEGUI::WindowManager singleton created (0x10102b8e0)
07/10/2015 11:25:01 (Std)    CEGUI::SchemeManager singleton created. (0x10102bbf0)
07/10/2015 11:25:01 (Std)    CEGUI::GlobalEventSet singleton created. (0x10102b270)
07/10/2015 11:25:01 (Std)    CEGUI::AnimationManager singleton created (0x10102b960)
07/10/2015 11:25:01 (Std)    CEGUI::WidgetLookManager singleton created. (0x1010271a0)
07/10/2015 11:25:01 (Std)    CEGUI::WindowRendererManager singleton created (0x101029b60)
07/10/2015 11:25:01 (Std)    CEGUI::RenderEffectManager singleton created (0x10102cb00)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'DefaultWindow' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'DefaultWindow' windows added. (0x10102e4b0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'DragContainer' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'DragContainer' windows added. (0x10102e790)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'ScrolledContainer' windows added. (0x10102e9e0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'ClippedContainer' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'ClippedContainer' windows added. (0x10102eaa0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (0x10102ed20)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (0x10102eec0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (0x10102ef80)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (0x10102f200)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (0x10102f2c0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (0x10102f540)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (0x10102f600)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (0x10102f930)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (0x10102fad0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (0x10102fc70)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (0x10102fd30)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (0x10102ffc0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (0x101030160)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (0x101030400)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0x1010304c0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (0x101030670)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (0x101030820)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (0x1010309c0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (0x101030c40)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (0x101030eb0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (0x101030de0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (0x101031130)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (0x1010312d0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (0x101031470)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ToggleButton' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ToggleButton' windows added. (0x101031610)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (0x1010316d0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (0x101031950)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (0x101031a10)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (0x101031c90)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'LayoutCell' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'LayoutCell' windows added. (0x101031e30)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (0x101031ef0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (0x1010323b0)
07/10/2015 11:25:01 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
07/10/2015 11:25:01 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (0x101031fb0)
07/10/2015 11:25:01 (Std)    CEGUI::System singleton created. (0x10a11a0d0)
07/10/2015 11:25:01 (Std)    ---- CEGUI System initialisation completed ----
07/10/2015 11:25:01 (Std)    
07/10/2015 11:25:01 (Std)    Started creation of Scheme from XML specification:
07/10/2015 11:25:01 (Std)    ---- CEGUI GUIScheme name: TaharezLook


As far as I can tell this is similar to the original poster of the issue, but of course I might be missing something...

I run my (simple) application in debug mode in Xcode 5 (on Mac OS X 10.8 ), using CEGUI's dynamic (dependency) libraries (also built in debug mode). Xcode provides the following debug info once the application crashes at runtime:

Image

And another screenshot at a different point in the stack, which shows the SchemeManager:

Image

I will try and get to the bottom of this, but in the meantime if anyone notices something suspicious in the above info, please let me know!

CodingTailor
Just popping in
Just popping in
Posts: 7
Joined: Fri Oct 02, 2015 13:50

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby CodingTailor » Thu Oct 08, 2015 14:20

My first efforts in solving this issue are having mixed results so far. I started off by looking into the build settings used by CEGUI and comparing them to the one's of my own app. I noticed the the Base SDK used by CEGUI was set to:

Code: Select all

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk (SDK not found)


Especially the last part looked suspicious, so I changed it to my own app's setting:

Code: Select all

Latest OS X (OS X 10.9)


This seemed to have some effect! (As a side note, issue http://cegui.org.uk/forum/viewtopic.php?t=6829 disappeared too.) My app started correctly, but... now crashed with a similar error code (

Code: Select all

EXC_BAD_ACCESS
) once I hovered my mouse over a CEGUI object...

Now, while further digging around, I bumped onto the sample framework included by CEGUI and had a look at that one. And apparently it is causing a very similar issue: the samples load and work fine when using OpenGL Renderer, but cannot even load (and crash) when using OpenGL 3 Renderer... with the exact same error code (

Code: Select all

EXC_BAD_ACCESS
) and at the exact same callstack as my own app! See the screenshot:

Image

So even though it feels like we made some progress in unraveling this issue, I am not sure we got any closer to the solution. Maybe the fact that the point of crash changes by changing the build settings of the dynamic libraries, plus the similar issue in the sample framework, will trigger someone to point me in the right direction...

Any suggestion/help is appreciated!

CodingTailor
Just popping in
Just popping in
Posts: 7
Joined: Fri Oct 02, 2015 13:50

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby CodingTailor » Sun Oct 11, 2015 21:54

Another update in my effort to solve this issue. Based on the the EXC_BAD_ACCESS in my previous screenshot, it does not seem right that if data is equal to 0 (basically a null pointer), dataSize is not equal to 0. Therefore I reasoned that line 197 in GL3GeometryBuffer.cpp should possibly be:

Code: Select all

GLsizei dataSize = vertexCount * sizeof(GLVertex);

instead of:

Code: Select all

GLsizei dataSize = d_bufferSize * sizeof(GLVertex);


This seems to solve the issue for now...

Could anyone confirm this indeed is a bug in the code? And why then does it seem to work on other (non-OS X) platforms?

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby YaronCT » Mon Oct 12, 2015 09:18

CodingTailor: Thanx for investigating the issue. However, you would have spared yourself time if u had first tried the Mercurial version of the "v0-8" branch, which contains the latest bug fixes (and bugs...), and, specifically, the solution you're suggesting. My suggestion to u is: when u find a bug, always check first the Mercurial version.

CodingTailor
Just popping in
Just popping in
Posts: 7
Joined: Fri Oct 02, 2015 13:50

Re: [Crash] Minimal SDL+Cegui example app crashes

Postby CodingTailor » Mon Oct 12, 2015 13:48

Ok. Thanks for pointing out! The Mercurial version still crashes on my Mac OS X, but at least I can confidently fix my previous bug manually in the release version.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 19 guests