Opened 12 years ago

Closed 7 years ago

#2058 closed defect (worksforme)

Error: failed to read the XML file eventTests.sample2_info.xml

Reported by: Lennart Ochel Owned by: somebody
Priority: high Milestone:
Component: Run-time Version: trunk
Keywords: Cc: Martin Sjölund, Willi Braun, Jens Frenkel

Description

I get following assert for various simulations - but just if I also pass -lv=LOG_STATS:

assert            | assert  | simulation/simulation_info_xml.c: Error: failed to read the XML file eventTests.sample2_info.xml: not well-formed (invalid token) at line 21

This is the specified line

      <info file="<interactive>" lineStart="5" lineEnd="5" colStart="5" colEnd="14"/>

Change History (12)

comment:1 by Martin Sjölund, 12 years ago

Try the following patch:

  • Compiler/Template/SimCodeDump.tpl

     
    345345::=
    346346  match info
    347347  case info as INFO(__) then
    348   '<info file="<%info.fileName%>" lineStart="<%info.lineNumberStart%>" lineEnd="<%info.lineNumberEnd%>" colStart="<%info.columnNumberStart%>" colEnd="<%info.columnNumberEnd%>"/>'
     348  '<info file="<%escapeModelicaStringToXmlString(info.fileName)%>" lineStart="<%info.lineNumberStart%>" lineEnd="<%info.lineNumberEnd%>" colStart="<%info.columnNumberStart%>" colEnd="<%info.columnNumberEnd%>"/>'
    349349end dumpInfo;
    350350
    351351template printExpStrEscaped(Exp exp)

comment:2 by Lennart Ochel, 12 years ago

new assertion:

assert            | assert  | simulation/simulation_info_xml.c: Info XML eventTests.sample2_info.xml got equation with index 5, expected 6

comment:3 by Martin Sjölund, 12 years ago

Then fix the ordering :) BackEnd/SimCodeUtil.mo or if you can tell from the xml which SES_XXX generated children in the wrong order, fix SimCodeDump.tpl

comment:4 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:5 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:6 by Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:7 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:8 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:10 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:11 by Martin Sjölund, 8 years ago

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:12 by Martin Sjölund, 7 years ago

Milestone: 1.12.0
Resolution: worksforme
Status: newclosed

This was fixed some time ago when we switched over to json instead of xml for the info-file...

Note: See TracTickets for help on using tickets.