Page 1 of 1
System ctor throws exception
Posted: Thu May 10, 2007 21:37
by Tobse
I tried to use cegui 0.5.0b with ogre 1.4.0. The following code throws an exception in the CEGUI::System ctor:
Code: Select all
// Set up GUI system
_guiRenderer = new CEGUI::OgreCEGUIRenderer(_window, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, _sceneMgr);
_guiSystem = new CEGUI::System(_guiRenderer);
The exception message is:
Code: Select all
WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'Falagard/Button' Window objects is not registered with the system.
I don't know what to do.
Any hints?
System: gentoo amd64
Posted: Fri May 11, 2007 13:11
by Pompei2
Do you have the newest datafiles ? Are you sure that they are used ?
Posted: Sun May 13, 2007 19:55
by Tobse
Yes, I think so. Would the CEGUI.log help?
Posted: Thu May 17, 2007 13:27
by Pompei2
If there are some errors in it, definitely
if there are some warnings, maybe. else I don't think so.
What scheme/skin are you using ?
edit:
seems to be the same problem
Posted: Tue May 22, 2007 20:55
by Tobse
Here are lines from the log:
Code: Select all
16/05/2007 01:38:56 (InfL1) Attempting to load Scheme from file 'TaharezLookSkin.scheme'.
16/05/2007 01:38:56 (InfL2) Started creation of Scheme 'TaharezLookSkin' via XML file.
16/05/2007 01:38:56 (Error) Scheme::xmlHandler::startElement - Unexpected data was found while parsing the Scheme file: 'xWindowRendererSet' is unknown.
16/05/2007 01:38:56 (InfL2) Finished creation of Scheme 'TaharezLookSkin' via XML file.
16/05/2007 01:38:56 (InfL2) Loaded GUI scheme 'TaharezLookSkin' from data in file 'TaharezLookSkin.scheme'.
16/05/2007 01:38:56 (InfL2) ---- Begining resource loading for GUI scheme 'TaharezLookSkin' ----
...
Code: Select all
16/05/2007 01:38:56 (InfL1) Creating falagard mapping for type 'TaharezLook/Button' using base type 'Falagard/Button', window renderer '' and Look'N'Feel 'TaharezLook/Button'.
...
Code: Select all
16/05/2007 01:38:56 (Error) Exception: WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'Falagard/Button' Window objects is not registered with the system.
16/05/2007 01:39:03 (InfL2) Window 'Sheet' has been added to dead pool.
I cannot see a problem here!?!
Posted: Tue May 22, 2007 20:57
by Pompei2
I see one ! In fact, I see two

the two error messages. They also throw exceptions, if you don't catch them your application seems to "crash".
Posted: Tue May 22, 2007 21:21
by Tobse

Ok, the error messages are there, but my question is, why the exception is thrown? I catch it, so the application runs, but without gui.
Because the exception is thrown in the constructor of System, the error cannot be in the source code. So there must be an error in the configuration files. How can I figure out, where the error could be?
Posted: Wed May 23, 2007 16:32
by Pompei2
Your datafiles seem to be wrong, indeed. Reload the files from internet, especially the .scheme and .looknfeel files seem to make problems.