Page 1 of 1

GdViewer hangs when displaying certain PDFs using DisplayFromByteArray

Posted: Mon Nov 29, 2021 9:36 pm
by lctxm
GdPicture.Net 14 Version 14.1.0.113

We can display most PDFs just fine using the same code, but a small number of PDFs cause the viewer to enter a tight loop (pegging a CPU and hanging the application). The files that show this behaviour are valid PDF files that open just fine in Adobe Acrobat Reader.

I can reproduce it with a two-line WPF app:

Code: Select all

            var bytes = File.ReadAllBytes("bad.pdf");
            gdv.DisplayFromByteArray(bytes);
Any idea how to further analyze this?

Re: GdViewer hangs when displaying certain PDFs using DisplayFromByteArray

Posted: Tue Nov 30, 2021 3:56 pm
by Hugo
Hi there,

Thanks for your feedback.

Would you be able to confirm this can be reproduced in our latest version please? V14.1.140
https://www.gdpicture.com/download-gdpicture/

If this issue can still be reproduced could you provide me with a code project isolating this issue please? This should also include the PDF files you are using as input files to get this issue.
If this is confidential you can contact us here:
https://orpalis.zendesk.com/hc/en-us/requests/new

Regards,

Re: GdViewer hangs when displaying certain PDFs using DisplayFromByteArray

Posted: Tue Nov 30, 2021 7:46 pm
by lctxm
Thanks. 14.1.140 does not show the same issue.