System ctor throws exception

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

Tobse
Just popping in
Just popping in
Posts: 4
Joined: Thu Apr 26, 2007 20:48

System ctor throws exception

Postby Tobse » Thu May 10, 2007 21:37

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

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Fri May 11, 2007 13:11

Do you have the newest datafiles ? Are you sure that they are used ?

Tobse
Just popping in
Just popping in
Posts: 4
Joined: Thu Apr 26, 2007 20:48

Postby Tobse » Sun May 13, 2007 19:55

Yes, I think so. Would the CEGUI.log help?

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Thu May 17, 2007 13:27

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

Tobse
Just popping in
Just popping in
Posts: 4
Joined: Thu Apr 26, 2007 20:48

Postby Tobse » Tue May 22, 2007 20:55

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!?!

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Tue May 22, 2007 20:57

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".

Tobse
Just popping in
Just popping in
Posts: 4
Joined: Thu Apr 26, 2007 20:48

Postby Tobse » Tue May 22, 2007 21:21

:) 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?

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Wed May 23, 2007 16:32

Your datafiles seem to be wrong, indeed. Reload the files from internet, especially the .scheme and .looknfeel files seem to make problems.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 27 guests