Thread: [Doxygen-users] infinite loop from Doxygen-generated .tex
Brought to you by:
dimitri
From: Georg-Johann L. <av...@gj...> - 2024-06-02 17:58:04
|
Hi, I am having considerable problems with Doxygen v1.9.1 In one of the (many) .dox files, there is this table an the end of this mail. It generates HTML okay, but the PDF header is broken. But the very problem is that somehow, this generates tex code that will enter an infinite loop in a later table, and then the PDF generation aborts. Image of HTML table: https://i.sstatic.net/l7owTt9F.png Image of PDF table: https://i.sstatic.net/LJcecbdr.png This looks like a genuine Doxygen issue in some of its LaTeX environments, and perhaps the code below is enough to reproduce the issue. I cross-checked the col/row counts several times and cannot find a problem in the source. Regards, Johann <table> <caption>Output Sections and Memory Regions</caption> <tr> <th rowspan="2">Output<br>Section <th rowspan="2">Purpose <th colspan="2">Memory Region </tr> <tr> <th>LMA <th>VMA </tr> <tr> <td><tt>\ref sec_dot_text ".text"</tt> <td>Executable code, data in progmem <td colspan="2"><center>text</center> </tr> <tr> <td><tt>\ref sec_dot_data ".data"</tt> <td>Non-zero data in static storage <td>text <td>data </tr> <tr> <td><tt>\ref sec_dot_bss ".bss"</tt> <td>Zero data in static storage <td>--- <td>data </tr> <tr> <td><tt>\ref sec_dot_noinit ".noinit"</tt> <td>Non-initialized data in static storage <td>--- <td>data </tr> <tr> <td><tt>\ref sec_dot_rodata ".rodata"</tt><sup>1</sup> <td>Read-only data in static storage <td>text <td>LMA + offset<sup>3</sup> </tr> <tr> <td><tt>\ref sec_dot_rodata ".rodata"</tt><sup>2</sup> <td>Read-only data in static storage <td>0x8000 * <code>__flmap</code><sup>4</sup> <td>rodata </tr> <tr> <td><tt>\ref sec_dot_eeprom ".eeprom"</tt> <td>Data in EEPROM <td rowspan="5">Note<sup>5</sup> <td>eeprom </tr> <tr> <td><tt>\ref sec_dot_fuse ".fuse"</tt> <td>Fuse bytes <td>fuse </tr> <tr> <td><tt>\ref sec_dot_fuse ".lock"</tt> <td>Lock bytes <td>lock </tr> <tr> <td><tt>\ref sec_dot_fuse ".signature"</tt> <td>Signature bytes <td>signature </tr> <tr> <td> <td>User signature bytes <td>user_signatures </tr> </table> |
From: Peter S. <pe...@gm...> - 2024-06-03 17:10:39
|
Hi, Johann ever tried to "close" your HTML tags, i.e. <TH> by </TH> and <TD> by </TD>? Sometimes I noticed problems with generated documentation disappearing when balancing HTML tags. Good luck Peter Am 02.06.2024 um 19:39 schrieb Georg-Johann Lay: > Hi, I am having considerable problems with Doxygen v1.9.1 > > In one of the (many) .dox files, there is this table an the > end of this mail. It generates HTML okay, but the PDF header > is broken. > > But the very problem is that somehow, this generates tex code > that will enter an infinite loop in a later table, and then > the PDF generation aborts. > > > Image of HTML table: https://i.sstatic.net/l7owTt9F.png > > Image of PDF table: https://i.sstatic.net/LJcecbdr.png > > This looks like a genuine Doxygen issue in some of its > LaTeX environments, and perhaps the code below is enough > to reproduce the issue. I cross-checked the col/row counts > several times and cannot find a problem in the source. > > Regards, > > Johann > > > > <table> > <caption>Output Sections and Memory Regions</caption> > <tr> > <th rowspan="2">Output<br>Section > <th rowspan="2">Purpose > <th colspan="2">Memory Region > </tr> > <tr> > <th>LMA > <th>VMA > </tr> > <tr> > <td><tt>\ref sec_dot_text ".text"</tt> > <td>Executable code, data in progmem > <td colspan="2"><center>text</center> > </tr> > <tr> > <td><tt>\ref sec_dot_data ".data"</tt> > <td>Non-zero data in static storage > <td>text > <td>data > </tr> > <tr> > <td><tt>\ref sec_dot_bss ".bss"</tt> > <td>Zero data in static storage > <td>--- > <td>data > </tr> > <tr> > <td><tt>\ref sec_dot_noinit ".noinit"</tt> > <td>Non-initialized data in static storage > <td>--- > <td>data > </tr> > <tr> > <td><tt>\ref sec_dot_rodata ".rodata"</tt><sup>1</sup> > <td>Read-only data in static storage > <td>text > <td>LMA + offset<sup>3</sup> > </tr> > <tr> > <td><tt>\ref sec_dot_rodata ".rodata"</tt><sup>2</sup> > <td>Read-only data in static storage > <td>0x8000 * <code>__flmap</code><sup>4</sup> > <td>rodata > </tr> > <tr> > <td><tt>\ref sec_dot_eeprom ".eeprom"</tt> > <td>Data in EEPROM > <td rowspan="5">Note<sup>5</sup> > <td>eeprom > </tr> > <tr> > <td><tt>\ref sec_dot_fuse ".fuse"</tt> > <td>Fuse bytes > <td>fuse > </tr> > <tr> > <td><tt>\ref sec_dot_fuse ".lock"</tt> > <td>Lock bytes > <td>lock > </tr> > <tr> > <td><tt>\ref sec_dot_fuse ".signature"</tt> > <td>Signature bytes > <td>signature > </tr> > <tr> > <td> > <td>User signature bytes > <td>user_signatures > </tr> > </table> > > > > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users |
From: Georg-Johann L. <av...@gj...> - 2024-06-03 19:29:38
|
Am 03.06.24 um 19:10 schrieb Peter Schöll: > Hi, Johann > > ever tried to "close" your HTML tags, i.e. <TH> by </TH> and <TD> by </TD>? > Sometimes I noticed problems with generated documentation disappearing > when balancing HTML tags. > > Good luck > Peter No effect. And is I understand, that are actually Doxygen tags. The Doxygen-generated HTML has balanced tags, so Doxygen can handle that and understands it correctly. I even tried v1.12 from current master, and it still generates broken .tex files (amongst many other issues that make v1.12 and also v1.11 unusable). The current issue seems to be related to wrong rowspan / colspan handling. Johann |