Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Oct 16, 2015 12:28 pm

Hello,

I'm getting a StackOverflowException when converting a docx file (that was generated by Spire) to PDF, when using Spire.Doc version 5.1.6.4035.

I've created a minimalistic example that reproduces the error:
fails in pdf.zip


Basically it is a tiny bit of text that is forced into a narrow cell of a table.

After a while, the exception occurs during the document.SaveToFile call:
An unhandled exception of type 'System.StackOverflowException' occurred in Spire.Doc.dll


Code: Select all
using Spire.Doc;
using System.Diagnostics;

Document document = new Document(@"C:\Users\user\Desktop\fails in pdf.docx");
document.SaveToFile(@"..\..\pdffail.pdf", FileFormat.PDF);
document.Close();
Process.Start(@"..\..\pdffail.pdf");


What can I do to avoid this exception?
Thank you

robinvos
 
Posts: 22
Joined: Thu Oct 08, 2015 8:43 am

Mon Oct 19, 2015 2:23 am

Hi,

Thanks for your inquiry.
Please use the latest version(Spire.Doc Pack(hot fix) Version:5.5.112)and which works for your document.
Downloading link is http://www.e-iceblue.com/Download/downl ... t-now.html.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 20, 2015 8:56 am

Hi,

Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 20, 2015 3:18 pm

Hello,

I've updated to the latest version and this has resolved some issues. However, the StackOverflowException still occurs with this document:

fails in pdf2.zip


If only it was another kind of exception, that could be caught. This one will bring down our server...

Thank you

robinvos
 
Posts: 22
Joined: Thu Oct 08, 2015 8:43 am

Wed Oct 21, 2015 2:59 am

Hi,

Thanks for your feedback.
Sorry for the new issue, I have posted it to our dev team. We will inform you when it is fixed.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Fri Nov 13, 2015 3:59 pm

Hello,

Are there any updates on this issue? We are considering to upgrade our license to be able to use the hotfix for this issue once it is available.

Thank you

robinvos
 
Posts: 22
Joined: Thu Oct 08, 2015 8:43 am

Mon Nov 16, 2015 2:22 am

Hi,

Thanks for your inquiry.
Our dev team is working your issue. We will do our best to resolve them soon. When it is resolved , we will tell you at once.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Wed Dec 02, 2015 8:08 am

Hi,

Thanks for waiting.
The issue has been resolved. Welcome to download and test Spire.Doc Pack(hot fix) Version:5.5.183.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Mon Dec 14, 2015 8:14 am

Hello,

It seems the issue has been resolved, I will let you know if we run into the problem again.

Thank you

robinvos
 
Posts: 22
Joined: Thu Oct 08, 2015 8:43 am

Mon Dec 14, 2015 8:23 am

Hi,

Thanks for your feedback.
Welcome to write to us again for further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc