Problem with the xml parser while loading the imageset

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

User avatar
renchap
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Mar 06, 2005 11:22
Location: France
Contact:

Problem with the xml parser while loading the imageset

Postby renchap » Wed May 11, 2005 00:00

i have made a simple program to test cegui, and it crashes while loading the imageset :

Code: Select all

CEGUI::SchemeManager::getSingleton().loadScheme("../datafiles/schemes/TaharezLook.scheme");

I use the cvs datafiles folder without any change, and i have this debug log :
http://renchap.com/debug_log_cegui.png
from the CEGUI.log :

Code: Select all

10/05/2005 22:42:30 (InfL1)   ---- CEGUI System initialisation completed ----
10/05/2005 22:42:30 (InfL1)   Attempting to load Scheme from file '../datafiles/schemes/TaharezLook.scheme'.
10/05/2005 22:42:30 (InfL2)   Started creation of Scheme 'TaharezLook' via XML file.
10/05/2005 22:42:30 (InfL2)   Finished creation of Scheme 'TaharezLook' via XML file.
10/05/2005 22:42:30 (InfL2)   Loaded GUI scheme 'TaharezLook' from data in file '../datafiles/schemes/TaharezLook.scheme'.
10/05/2005 22:42:30 (InfL2)   ---- Begining resource loading for GUI scheme 'TaharezLook' ----
10/05/2005 22:42:30 (InfL1)   Attempting to create an Imageset from the information specified in file
'../datafiles/imagesets/TaharezLook.imageset'.
10/05/2005 22:42:30 (InfL2)   Started creation of Imageset 'TaharezLook' via XML file.

i dont understand what is wrong, if someone can helps me :)

User avatar
renchap
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Mar 06, 2005 11:22
Location: France
Contact:

Re: Problem with the xml parser while loading the imageset

Postby renchap » Tue May 17, 2005 20:51

nobody to help me ?

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: Problem with the xml parser while loading the imageset

Postby _mental_ » Wed May 18, 2005 02:33

What are the values of attrName and attrValue at the point when it crashes?

User avatar
renchap
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Mar 06, 2005 11:22
Location: France
Contact:

Re: Problem with the xml parser while loading the imageset

Postby renchap » Wed May 18, 2005 21:42

hum...
i have just added in CEGUIXMLAttributes.cpp, before d_attrs[attrName] = attrValue; :

Code: Select all

Logger::getSingleton().logEvent(attrName, CEGUI::Insane);
Logger::getSingleton().logEvent(attrValue, CEGUI::Insane);


and i have no longer the error...
but now i have this : http://renchap.com/debug_log_cegui2.png

and in the log :

Code: Select all

[...]
18/05/2005 21:28:00 (InfL2)   Started creation of Imageset 'TaharezLook' via XML file.
[...]
18/05/2005 21:28:00 (InfL3)   Name
18/05/2005 21:28:00 (InfL3)   TooltipMiddle
18/05/2005 21:28:00 (InfL3)   XPos
18/05/2005 21:28:00 (InfL3)   72
18/05/2005 21:28:00 (InfL3)   YPos
18/05/2005 21:28:00 (InfL3)   171
18/05/2005 21:28:00 (InfL3)   Width
18/05/2005 21:28:00 (InfL3)   6
18/05/2005 21:28:00 (InfL3)   Height
18/05/2005 21:28:00 (InfL3)   6
18/05/2005 21:28:00 (InfL2)   Finished creation of Imageset 'TaharezLook' via XML file.


i dont understand whats wrong with my code... i must be damned :/

thx for your help :)

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: Problem with the xml parser while loading the imageset

Postby _mental_ » Fri May 20, 2005 03:17

Sounds like you have an overrun somewhere. Have you tried cutting your code back to the essentials and see if you still have the problem.

Out of interest, does this work when using xerces rather than tinyxml?

User avatar
renchap
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Mar 06, 2005 11:22
Location: France
Contact:

Re: Problem with the xml parser while loading the imageset

Postby renchap » Fri May 20, 2005 10:01

my code is quite simple, i just want to make a little test with macosx :)
i have this in my cegui init function :

Code: Select all

void initCEGUI(){
//   using namespace CEGUI;
   CEGUI::Renderer* d_renderer;
   d_renderer = new CEGUI::OpenGLRenderer(0,SCREEN_WIDTH,SCREEN_HEIGHT);
   new CEGUI::System(d_renderer);
   // load in the scheme file, which auto-loads the TaharezLook imageset
   SDL_ShowCursor(SDL_DISABLE);
   SDL_EnableUNICODE(1);
   SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
   CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Insane);
   CEGUI::SchemeManager::getSingleton().loadScheme("../datafiles/schemes/TaharezLook.scheme");
[...]


all that is extracted from the wiki. I have patch my cegui source files as said here : http://www.cegui.org.uk/modules/newbb/v ... 1&start=10 to work with macosx tiger

and i cant compile with xercesc support, thats not included in the macosx project (and my tries to compile with xercesc support fails)

maybe i am the first to try to use cegui+opengl renderer with macosx, and there is a special thing to do ?

thx for your help :)

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: Problem with the xml parser while loading the imageset

Postby _mental_ » Mon May 30, 2005 04:28

Thanks for the patch. Could you post the entire source for your sample application and I'll do some tests and see if I can find out what's going on.

User avatar
renchap
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Mar 06, 2005 11:22
Location: France
Contact:

Re: Problem with the xml parser while loading the imageset

Postby renchap » Tue May 31, 2005 13:17

i have done some tests and the result is... that the TaharezLook.imageset in samples/datafiles/imageset is broken !
When i load the WindowsLook, there is no problem, but the same code with taharez causes an error.

I will give you my code when i am at home (this week end), but can you test the imageset ? i think thats not a macosx issue, but i want to be sure about this :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests