CEGUI 0.8 RenderedStringComponent and TaharezLook

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

User avatar
dermont
Quite a regular
Quite a regular
Posts: 75
Joined: Mon Aug 29, 2005 16:15

CEGUI 0.8 RenderedStringComponent and TaharezLook

Postby dermont » Fri Jul 22, 2011 19:09

After updating to the latest version of CEGUI 0.8 all my programs that use only the WindowsLook imageset appear to crash with the following TaharezLook/GenericBrush error:

Code: Select all

terminate called after throwing an instance of 'CEGUI::UnknownObjectException'
  what():  CEGUI::UnknownObjectException in file /media/sda8/Libraries/CEGUI/cegui_mk2/cegui/src/CEGUIImageManager.cpp(249) : [ImageManager] Image not defined: TaharezLook/GenericBrush
[New Thread 0xb5ba9b70 (LWP 14844)]


This is the backtrace, the CEGUI log doesn't show anything relevant apart from the above error:

Code: Select all

Program received signal SIGABRT, Aborted.
0x0012e416 in __kernel_vsyscall ()
(gdb) bt
#0  0x0012e416 in __kernel_vsyscall ()
#1  0x014cfe71 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x014d334e in abort () at abort.c:92
#3  0x014260b5 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/i386-linux-gnu/libstdc++.so.6
#4  0x01423fa5 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#5  0x01423fe2 in std::terminate() ()
   from /usr/lib/i386-linux-gnu/libstdc++.so.6
#6  0x0142414e in __cxa_throw () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#7  0x0035b822 in CEGUI::ImageManager::get(CEGUI::String const&) const ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#8  0x003b792d in CEGUI::RenderedStringComponent::RenderedStringComponent() ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#9  0x003f46de in CEGUI::RenderedStringTextComponent::RenderedStringTextComponent(CEGUI::String const&, CEGUI::String const&) ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#10 0x003b3e19 in CEGUI::BasicRenderedStringParser::appendRenderedText(CEGUI::RenderedString&, CEGUI::String const&) const ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#11 0x003b3c95 in CEGUI::BasicRenderedStringParser::parse(CEGUI::String const&, CEGUI::Font*, CEGUI::ColourRect const*) ()
---Type <return> to continue, or q <return> to quit---
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#12 0x00390bb3 in CEGUI::Window::getRenderedString() const ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#13 0x00384d5f in CEGUI::Window::bufferGeometry(CEGUI::RenderingContext const&)
    ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#14 0x00384ccc in CEGUI::Window::drawSelf(CEGUI::RenderingContext const&) ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#15 0x00384c17 in CEGUI::Window::render() ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#16 0x00384c49 in CEGUI::Window::render() ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#17 0x003c7d14 in CEGUI::System::renderGUI() ()
   from /media/sda8/Libraries/CEGUI/sdk/default/lib/CEGUI-0.8/libCEGUIBase.so.2
#18 0x08054ed3 in drawFrame ()
    at /media/sda8/Libraries/CEGUI/CEGUIGST/Demos/CEGUI/OpenGLGStreamerCEGUI2/OpenGLSimple.cpp:556
#19 0x006a2c1e in ?? () from /usr/lib/libglut.so.3
#20 0x006a6590 in fgEnumWindows () from /usr/lib/libglut.so.3
#21 0x006a302e in glutMainLoopEvent () from /usr/lib/libglut.so.3
#22 0x006a3935 in glutMainLoop () from /usr/lib/libglut.so.3
---Type <return> to continue, or q <return> to quit---
#23 0x08054b27 in main (argc=1, argv=0xbffff364)
    at /media/sda8/Libraries/CEGUI/CEGUIGST/Demos/CEGUI/OpenGLGStreamerCEGUI2/OpenGLSimple.cpp:599


This is where it crashes:

Code: Select all

RenderedStringComponent::RenderedStringComponent() :
    d_padding(0, 0, 0, 0),
    d_verticalFormatting(VF_BOTTOM_ALIGNED),
    d_aspectLock(false),
//    d_selectionImage(0)
*******    d_selectionImage(&ImageManager::getSingleton().get("TaharezLook/GenericBrush"))
*********
{
}


If I create the TaharezLook scheme then everything runs fine.

Code: Select all

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


Is loading TaharezLook now mandatory? I didn't encounter this with earlier versions of 0.8.

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

Re: CEGUI 0.8 RenderedStringComponent and TaharezLook

Postby Kulik » Fri Jul 22, 2011 19:46

This is definitely a bug, thanks for spotting it. I think CrazyEddie left it there when he was debugging the new rich text selection feature. I will confirm this with him and get rid of it as soon as possible :-)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 3 guests