CEGUI 0.50b Segfault on loadWindowLayout

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

JohnArgentieri
Just popping in
Just popping in
Posts: 15
Joined: Tue Jan 09, 2007 16:14

CEGUI 0.50b Segfault on loadWindowLayout

Postby JohnArgentieri » Thu Jan 08, 2009 16:39

Folks,

Does anyone know why CEGUI might segfault when loadWindowLayout is called, in the method getTextExtent? I am having this issue on RHEL 3u6 when working with release libraries which are dynamically linked. All the CEGUI .so's are in my LD_LIBRARY_PATH, and I'm using SILLY 0.1.0 and Xerces 2.7.

Many thanks,
John

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

Postby CrazyEddie » Thu Jan 08, 2009 19:59

Hi,

I'm not aware of any known issues, but I could make a guess though, and suggest that perhaps you need to load / set a default font first?

CE.

JohnArgentieri
Just popping in
Just popping in
Posts: 15
Joined: Tue Jan 09, 2007 16:14

Postby JohnArgentieri » Thu Jan 08, 2009 22:29

C.E.,

I did this after setting all the resource group / directories:

CEGUI::FontManager::getSingleton().createFont( "Trebuchet.font" )

The log says that it successfully loaded 577 glyphs. But, when it reads the XML and tries to assign names to the window elements, it segfaults at getTextExtent. It's possible that a colleague passed down a frankensteined build to me, so I am trying this again from scratch and will let you know how it goes.

Thanks!
John

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

Postby CrazyEddie » Fri Jan 09, 2009 09:41

Hi,

If you still get the issue from the clean code base, can you post the backtrace from where it segs, that will hopefully help me better understand the bigger picture.

CE.

JohnArgentieri
Just popping in
Just popping in
Posts: 15
Joined: Tue Jan 09, 2007 16:14

Postby JohnArgentieri » Tue Jan 13, 2009 16:09

C.E.,

It happenned again. I've been unsuccessful at determining what is going wrong here...

#0 CEGUI::Font::getTextExtent (this=0xb6cfdfd0, text=@0xbfff9f40, x_scale=1)
at ../include/CEGUIImage.h:107
#1 0x02dd2335 in CEGUI::Font::getFormattedTextExtent (this=0xb6cfdfd0,
text=@0xb69a3c38, format_area=@0xbfffa0b0, fmt=LeftAligned, x_scale=1)
at CEGUIFont.cpp:555
#2 0x039ccc58 in CEGUI::FalagardStaticText::getDocumentSize (this=0xb69a5de0,
renderArea=@0xbfffa0b0) at ../../../include/CEGUIWindow.h:603
#3 0x039ccec6 in CEGUI::FalagardStaticText::configureScrollbars (
this=0xb69a5de0) at FalStaticText.cpp:301
#4 0x039cd0ed in CEGUI::FalagardStaticText::onTextChanged (this=0xb69a5de0,
e=@0xbfffa210) at FalStaticText.cpp:350
#5 0x039cf55e in CEGUI::MemberFunctionSlot<CEGUI::FalagardStaticText>::operator() (this=0xbfff9d64, args=@0xbfffa210)
at ../../../include/CEGUIMemberFunctionSlot.h:55
#6 0x02dcc1b8 in CEGUI::Event::operator() (this=0x90695c4, args=@0xbfffa210)
at ../include/CEGUISubscriberSlot.h:81
#7 0x02dcd43c in CEGUI::EventSet::fireEvent_impl (this=0xb69a3c00,
name=@0x2f4f1c0, args=@0xbfffa210) at CEGUIEventSet.cpp:228
#8 0x02dcd34c in CEGUI::EventSet::fireEvent (this=0xb69a3c00,
name=@0x2f4f1c0, args=@0xbfffa210, eventNamespace=@0x2f4abc0)
at CEGUIEventSet.cpp:170
#9 0x02e1806a in CEGUI::Window::onTextChanged (this=0xb69a3c00, e=@0xbfffa210)
at CEGUIWindow.cpp:2579
#10 0x02e13070 in CEGUI::Window::setText (this=0xb69a3bf0, text=@0xbfffa560)
at CEGUIWindow.cpp:894
#11 0x02e2ec0e in CEGUI::WindowProperties::Text::set (this=0x2f4bf20,
receiver=0xb69a3bf0, value=@0xbfffa560) at CEGUIWindowProperties.cpp:116
#12 0x02df068d in CEGUI::PropertySet::setProperty (this=0xb69a3bf0,
name=@0xbfffa600, value=@0xbfffa560)
at /usr/include/c++/3.2.3/bits/stl_tree.h:202
#13 0x02ddf4ef in CEGUI::GUILayout_xmlHandler::elementPropertyStart (
this=0xbfffb0e0, attributes=@0xbfffa900)
at CEGUIGUILayout_xmlHandler.cpp:306
#14 0x02dde18a in CEGUI::GUILayout_xmlHandler::elementStart (this=0xbfffb0e0,
element=@0xbfffa860, attributes=@0xbfffa900)
at CEGUIGUILayout_xmlHandler.cpp:81
#15 0x07f2db73 in CEGUI::XercesHandler::startElement (this=0xbfffafa0,
uri=0xb6dc31a8, localname=0xb6cac2e8, qname=0xb6cac2e8, attrs=@0xb6db8118)
at CEGUIXercesParser.cpp:313
#16 0x006a7118 in xercesc_2_7::SAX2XMLReaderImpl::startElement ()
from /data/S2FocusBuild/SimTools/Lib/libxerces-c.so.27
#17 0x006755b1 in xercesc_2_7::IGXMLScanner::scanStartTagNS ()
from /data/S2FocusBuild/SimTools/Lib/libxerces-c.so.27
#18 0x00671fbc in xercesc_2_7::IGXMLScanner::scanContent ()
from /data/S2FocusBuild/SimTools/Lib/libxerces-c.so.27
#19 0x00670b65 in xercesc_2_7::IGXMLScanner::scanDocument ()
from /data/S2FocusBuild/SimTools/Lib/libxerces-c.so.27
#20 0x006a6645 in xercesc_2_7::SAX2XMLReaderImpl::parse ()
from /data/S2FocusBuild/SimTools/Lib/libxerces-c.so.27
#21 0x07f2d7ce in CEGUI::XercesParser::doParse (parser=0xb6db80f0,
xmlFilename=@0xbfffb480, resourceGroup=@0x2f50cc0)
at CEGUIXercesParser.cpp:279
#22 0x07f2c119 in CEGUI::XercesParser::parseXMLFile (this=0x8fa3058,
handler=@0xbfffb0e0, filename=@0xbfffb480, schemaName=@0xbfffb370,
resourceGroup=@0x2f50cc0) at CEGUIXercesParser.cpp:74
#23 0x02e2c7ae in CEGUI::WindowManager::loadWindowLayout (this=0x8fa31b0,
filename=@0xbfffb480, name_prefix=@0x0, resourceGroup=@0xbfffb5c0,
callback=0, userdata=0x0) at ../include/CEGUISystem.h:514

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

Postby CrazyEddie » Wed Jan 14, 2009 21:08

Hi John,

Sorry for the slight delay in getting back to you - I've been a busy boy ;)

I've browsed the svn logs with regards to the font classes, and there are some bugs fixed which may be affecting you, though I can't be certain (main freetype based font log is here if you want to look).

Do you get the same issue when using a different font? And also with different text strings (I know this one might be hard to test).

Does the issue occur on a minimal example - i.e. just one window?

Did you / are you able to test on a different system, and are the results the same?

Sorry for all the questions and lack of answers, but at the moment I do not have any concrete answers (other than it might be related to one of those fixed issues).

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests