Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf Constructor null reference exception when merging images Options
Grant Hawkes
Posted: Tuesday, September 14, 2021 4:26:31 PM
Rank: Member
Groups: Member

Joined: 4/27/2018
Posts: 17
Hello,

Occasionally our calls to the EO.PDF.PdfDocument(Stream stream) constructor will throw a null reference error. This does not happen in every call. It only seems to happen when images are being merged into the PDF stream. Not every image triggers this error. Currently we do not have a sample image we can share due to PII restrictions.

Stack trace:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=EO.Pdf
StackTrace:
at EO.Internal.nmba.hoxn(PdfDocumentSecurity cwr)
at EO.Internal.nmba.rxxw(Boolean cwo, Boolean cwp, PdfDocumentSecurity cwq)
at EO.Internal.nmap.xhkq(Stream csb, Boolean csc, Boolean csd)
at EO.Internal.nmap..ctor(Stream cro, PdfDocumentSecurity crp, Boolean crq, Boolean crr)
at EO.Internal.nmap..ctor(Stream crs, PdfDocumentSecurity crt)
at EO.Pdf.PdfDocument..ctor(Stream stream)
at [Our code redacted]

Current version: 20.3.63

Google Chrome is able to render the input stream for the EO.Pdf constructor as a PDF document.

Thank you
Grant Hawkes
Posted: Tuesday, September 14, 2021 6:21:46 PM
Rank: Member
Groups: Member

Joined: 4/27/2018
Posts: 17
Our development team was able to reproduce the error without using PII data and images. Is there a way I can securely upload these files for the EO team?

Thank you
eo_support
Posted: Wednesday, September 15, 2021 9:58:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

You can select Support -> Contact Us from our main menu to upload the file securely to our server.

Thanks!
Grant Hawkes
Posted: Wednesday, September 15, 2021 1:38:10 PM
Rank: Member
Groups: Member

Joined: 4/27/2018
Posts: 17
Test files have been uploaded.

Thank you
eo_support
Posted: Thursday, September 16, 2021 2:42:35 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We have looked into the file. The root of the problem is in this file there is a chunk of corrupted data. We will change our code to skip this chunk of data in our next build so that it will still be able to read the file without crashing with an exception.

Thanks!
Grant Hawkes
Posted: Thursday, September 16, 2021 4:01:37 PM
Rank: Member
Groups: Member

Joined: 4/27/2018
Posts: 17
That is great news, thank you. How we will know when the next version is released? Will we be able to pull it from nuget?
eo_support
Posted: Friday, September 17, 2021 1:47:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Yes. We will reply here again when the new build is available. You will be able to pull it from nuget.
eo_support
Posted: Monday, September 20, 2021 11:09:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

This is just to let you know that we have posted a new build that should resolve this issue. You can either download the new build from our download page or pull it from nuget.

Thanks!
Grant Hawkes
Posted: Monday, September 20, 2021 4:37:01 PM
Rank: Member
Groups: Member

Joined: 4/27/2018
Posts: 17
Thank you, we have downloaded the latest version (21.2.47) and testing is going well on our end. We have not been able to reproduce the issue so far.
eo_support
Posted: Tuesday, September 21, 2021 1:51:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Great. Thanks for confirming!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.