Page 1 of 1
Problem with the xml parser while loading the imageset
Posted: Wed May 11, 2005 00:00
by renchap
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

Re: Problem with the xml parser while loading the imageset
Posted: Tue May 17, 2005 20:51
by renchap
nobody to help me ?
Re: Problem with the xml parser while loading the imageset
Posted: Wed May 18, 2005 02:33
by _mental_
What are the values of attrName and attrValue at the point when it crashes?
Re: Problem with the xml parser while loading the imageset
Posted: Wed May 18, 2005 21:42
by renchap
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.pngand 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

Re: Problem with the xml parser while loading the imageset
Posted: Fri May 20, 2005 03:17
by _mental_
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?
Re: Problem with the xml parser while loading the imageset
Posted: Fri May 20, 2005 10:01
by renchap
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

Re: Problem with the xml parser while loading the imageset
Posted: Mon May 30, 2005 04:28
by _mental_
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.
Re: Problem with the xml parser while loading the imageset
Posted: Tue May 31, 2005 13:17
by renchap
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
