HTML with table causes StackOverflow

Hi GemBox Team,

currently I have some HTML files that cause my application to throw a StackOverflowException.
The application calls “DocumentModel.Load(inputPath).GetPaginator().Pages” using GemBox.Document version 35.0.1920-hotfix.

I tried to narrow it down to a HTML table with two rows, that seems to be causing the issue:

<html>
<body>
  <table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width="99%"
   style='width:99.0%;mso-cellspacing:0cm;border:none;border-bottom:solid white 4.5pt;
   mso-yfti-tbllook:1184;mso-padding-alt:1.5pt 1.5pt 1.5pt 1.5pt'
   id="tobit_repfor2" cols=2>
   <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
    <td colspan=2 style='border:none;background:white;padding:5.25pt 7.5pt 2.25pt 7.5pt'>
    <p class=MsoNormal><strong><span style='font-size:8.0pt;font-family:"Tahoma",sans-serif;
    mso-fareast-font-family:"Times New Roman";color:#404040'>Invoice
    Nr. 12345</span></strong><span style='font-size:8.0pt;font-family:"Tahoma",sans-serif;
    mso-fareast-font-family:"Times New Roman";color:#888888'>&nbsp;October 29
    2024, 15:40</span><span style='font-size:8.0pt;font-family:"Tahoma",sans-serif;
    mso-fareast-font-family:"Times New Roman";color:#404040'><o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:1'>
    <td width="1%" valign=top style='width:1.0%;border:none;background:white;
    padding:1.5pt 4.5pt 1.5pt 7.5pt'>
    <p class=MsoNormal><strong><span style='font-size:8.0pt;font-family:"Tahoma",sans-serif;
    mso-fareast-font-family:"Times New Roman";color:#222222'>Von</span></strong><span
    style='font-size:8.0pt;font-family:"Tahoma",sans-serif;mso-fareast-font-family:
    "Times New Roman";color:#222222'><o:p></o:p></span></p>
    </td>
    <td style='border:none;background:white;padding:1.5pt 1.5pt 1.5pt 1.5pt'>
    <p class=MsoNormal><span style='font-size:8.0pt;font-family:"Tahoma",sans-serif;
    mso-fareast-font-family:"Times New Roman";color:#222222'><a
    href="mailto:someone@company.com"><span style='color:#404040'>Some Text</span></a><o:p></o:p></span></p>
    </td>
   </tr>
  </table>

</body>
</html>

This error did not occur in the GemBox.Document version 35.0.1886.
Could you have a look at it?

Kind regards,
Sarah

Hi Sarah,

I was unable to reproduce this issue, I tried with both 35.0.1886 and 35.0.1920.
Can you please create a small Visual Studio project that reproduces your issue so we can investigate it?

Regards,
Mario

Hi Mario,

I’m sorry - due to my anonymization of the document I removed some German date strings, which caused the problem to disappear :sweat_smile:
This is my repro project, including the HTML file that should be causing the problems:

The faulty HTML should contain the texts “Ausgangsrechnung Nr. 12345” and “29. Oktober 2024, 15:40 Uhr” instead of my placeholders (see GemBoxPoc/crash.html).

Kind regards,
Sarah

Hi Sarah,

Please try again with this NuGet package:
Install-Package GemBox.Document -Version 35.0.1929-hotfix
Does this solve your issue?

Regards,
Mario

1 Like

Hi Mario,

thank you - it works!