Bug #9041 2006-10-08 03:14

julienlecomte

TinyXML / blocking startup

I've tried out the Oct-07 build, and I now get some TinyXML error:

<<

This application encountered an error at sdk\configmanager.cpp, on line 130.

The error message is:

TinyXML error:

Error reading end tag.

C::B version rev. 3030 (gcc 3.4.5 ...)

>>

At the same time of the crash, which is always at startup of C::B, i've got a message that the project or workspace can't be loaded ("Windows cannot find '...filename...'. Make sure you typed ...")

I don't get this extra message if just opening C::B executable (but C::B still crashes with XML error), I only get it if opening project or workspace by double click in explorer.

I can solve the problem only by deleting my "default.conf" file located in %USER%\Application Data\codeblocks (and thus lose all preferences).

Category
Application::Crash
Group
 
Status
Closed
Close date
2006-10-09 17:11
Assigned to
 
julienlecomte 2006-10-08 03:43

I've located the XML crash in "<replace_options><LAST><str>"

C::B crashes if the XML tag for "str" contains less-greater signs. (duh !)

In otherwords, if the last search/replace was for something like "#include <foobar.h>", then C::B will crash upon next startup.

To reproduce:

- create a new project

- add a new file to project

- run "replace" and enter a search string containing less-greater symbols ( < or > )

- close C::B

- re-open C::B and watch it crash.

artoj 2006-10-08 10:09

Revision 3004 (2006-10-03 nightly) does not have this problem; it encodes the less-greater signs correctly.

From revision 3009 and up there were several patches to TinyXML which are the probable cause of this issue.

thomasdenk 2006-10-09 17:11

This bug is now fixed in HEAD.

Thank you for reporting it.