Segfault in System::create on OS X

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

rtk6
Just popping in
Just popping in
Posts: 3
Joined: Tue Nov 13, 2012 07:22

Segfault in System::create on OS X

Postby rtk6 » Sat Nov 24, 2012 18:50

I've been trying to get CEGUI working in an app being developed on both OS X and Windows but there seems to be heap corruption or some other bug manifesting as a segmentation fault (EXC_BAD_ACCESS) on OS X. The CEGUI SampleFramework runs and the app that is crashing is doing mostly the same thing as the SampleFramework up to calling System::create() (It sets up GLFW and creates an OpenGL3 Renderer, the only thing done different is it doesn't have the renderer selector). It couldn't be caused by the program since it doesn't do much before setting up CEGUI. This build of CEGUI is based on the latest pull from the repository (Can't use 7.7 since it doesn't have the OGL3 Renderer).

Any ideas what's going on?

Code: Select all

Thread 1, Queue : com.apple.main-thread
#0   0x00000001001c1d89 in CEGUI::MouseCursor::MouseCursor() at CEGUI/cegui/src/MouseCursor.cpp:65
#1   0x00000001001c1cc5 in CEGUI::MouseCursor::MouseCursor() at CEGUI/cegui/src/MouseCursor.cpp:83
#2   0x00000001001a6081 in CEGUI::GUIContext::GUIContext(CEGUI::RenderTarget&) at CEGUI/cegui/src/GUIContext.cpp:100
#3   0x00000001001a5ffd in CEGUI::GUIContext::GUIContext(CEGUI::RenderTarget&) at CEGUI/cegui/src/GUIContext.cpp:101
#4   0x00000001001f9dcc in CEGUI::System::createGUIContext(CEGUI::RenderTarget&) at CEGUI/cegui/src/System.cpp:983
#5   0x00000001001f8570 in CEGUI::System::System(CEGUI::Renderer&, CEGUI::ResourceProvider*, CEGUI::XMLParser*, CEGUI::ImageCodec*, CEGUI::ScriptModule*, CEGUI::String const&, CEGUI::String const&) at CEGUI/cegui/src/System.cpp:212
#6   0x00000001001f7eae in CEGUI::System::System(CEGUI::Renderer&, CEGUI::ResourceProvider*, CEGUI::XMLParser*, CEGUI::ImageCodec*, CEGUI::ScriptModule*, CEGUI::String const&, CEGUI::String const&) at CEGUI/cegui/src/System.cpp:238
#7   0x00000001001fc69b in CEGUI::System::create(CEGUI::Renderer&, CEGUI::ResourceProvider*, CEGUI::XMLParser*, CEGUI::ImageCodec*, CEGUI::ScriptModule*, CEGUI::String const&, CEGUI::String const&, int) at CEGUI/cegui/src/System.cpp:889

Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests