We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

StackOverflow with PdfDocumentAnalyzer

Hello,

I'm using the sample code from https://www.syncfusion.com/blogs/post/how-to-find-corrupted-pdf-files-in-c-sharp.aspx, and with some PDFs that seem to open normally, rather than analyzing them at the "SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax()" line, instead the program crashes with 

"An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll"

Wrapping everything in try-catch does not eat this exception and it's not recoverable.

The PDFs that cause it seem to be consistent, and I can read them in a PDF reader so I don't *think* they're malformed?

Has anyone else seen this?

8 Replies

SL Sowmiya Loganathan Syncfusion Team November 1, 2019 01:13 PM UTC

Hi Derek 

Thank you for contacting Syncfusion support.  

We have checked the reported issue and suspect that this to be a document specific issue. Could you please share us the PDF document which throws the exception “An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll”. It will helpful for us analyze further and provide the precise solution on this.  
 
Regards, 
Sowmiya Loganathan 



DE Derek November 1, 2019 09:15 PM UTC

Sure; they're not PDFs for me to share publicly though, is there a drop point where I can put them for your support folks to see?


DE Derek November 2, 2019 04:09 PM UTC

Actually this file should be a good example.

Attachment: LPCXpresso_User_Guide_633103f9.zip


SL Sowmiya Loganathan Syncfusion Team November 4, 2019 11:58 AM UTC

Hi Derek, 

Thank you for the document.  

We were able to reproduce the reported issue and suspect that this to be a defect. Currently we are validating the same and we will update the further details by 6th November, 2019.  

Regards, 
Sowmiya Loganathan 



SL Sowmiya Loganathan Syncfusion Team November 7, 2019 12:15 PM UTC

Hi Derek, 

We confirmed that the issue with “StackOverflow exception occurs while finding the corrupted PDF document with SyntaxAnalyzerResult” is a defect and we have logged a defect report. The patch for this issue is estimated to available by 14th November, 2019.  

Regards, 
Sowmiya Loganathan 



SL Sowmiya Loganathan Syncfusion Team November 14, 2019 01:58 PM UTC

Hi Derek, 
 
The reported issue has been fixed and the patch for this fix can be downloaded from the following location.     
  
Recommended approach - exe will perform automatic configuration    
Please find the patch setup from below location:    
  
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment    
Please find the patch assemblies alone from below location:    
 
   
Assembly Version: 17.3.0.26 
   
Installation Directions :     
This patch should replace the files “Syncfusion.Pdf.Base.dll” under the following folder.    
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\ 
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\17.3.0.26\precompiledassemblies\17.3.0.14\ 
  
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.    
   
Disclaimer :     
Please note that we have created this patch for version 17.3.0.26 specifically to resolve the following issue(s) reported in this/the Incident(s). 148726  
  
If you have received other patches for the same version for other products, please apply all patches in the order received.    
  
This fix will be included in our 2019 Volume 4 release which will be available by December 2019 tentatively.   
 
Regards, 
Sowmiya Loganathan 
 




DE Derek November 17, 2019 01:33 AM UTC

I get error "You are not authorized to download this patch" with all three links.  Is there a secret to it?


SL Sowmiya Loganathan Syncfusion Team November 18, 2019 01:50 PM UTC

  
Hi Derek,  
  
Sorry for the inconvenience caused. We have regenerate the patch and which can be downloaded from below link,  
   
Recommended approach - exe will perform automatic configuration     
Please find the patch setup from below location:     
 
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment     
Please find the patch assemblies alone from below location:     
    
Assembly Version: 17.3.0.26  
    
Installation Directions :      
This patch should replace the files “Syncfusion.Pdf.Base.dll” under the following folder.     
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\  
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\17.3.0.26\precompiledassemblies\17.3.0.14\  
   
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.     
    
Disclaimer :      
Please note that we have created this patch for version 17.3.0.26 specifically to resolve the following issue(s) reported in this/the Incident(s). 148726   
   
If you have received other patches for the same version for other products, please apply all patches in the order received.     
   
This fix will be included in our 2019 Volume 4 release which will be available by December 2019 tentatively.    
  
Regards,  
Sowmiya Loganathan  
 


Loader.
Live Chat Icon For mobile
Up arrow icon