Declined
Last Updated: 25 May 2016 09:40 by ADMIN
Mohamad
Created on: 27 Jan 2016 21:40
Category: PdfViewer
Type: Bug Report
0
PdfViewer throw an unhandled exception while loading a document
1- the load of a document take a while to load (if successed).
2- An unhandled exception thrown while loading a document (Out of memory or Invalid parameter)

the file that i'm trying to load is attached and created using Telerik Document Processing Library.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   at System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height)
   at System.Drawing.Bitmap..ctor(Image original)
   at Telerik.WinControls.PdfViewer.PdfElementsRenderer.RenderImage(ImageSource source, ResourceKey key, BackgroundWorker cancellationToken)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawImage(Image image, Graphics graphics)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContentElement(IContentElement contentElement, Graphics graphics)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContainer(Container container, Graphics graphics)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContentElement(IContentElement contentElement, Graphics graphics)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContainer(Container container, Graphics graphics)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContentElement(IContentElement contentElement, Graphics graphics)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawPage(ContentCollection content, Graphics graphics, Matrix pageTransform)
   at Telerik.WinControls.UI.FixedPagePreRenderer.rendererWorker_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Thank you
Attached Files:
4 comments
ADMIN
Ralitsa
Posted on: 25 May 2016 09:40
Hi Robert, 

I performed few tests with our latest version R2 2016 (2016.2.503) and I was able to navigate between pages using PageUp/PageDown keys and methods without any exception.  

Could you specify which version of Telerik UI for Winforms you use in your project? If you use different pdf file from the attached one, it would be really appreciate if you send it back to us, so we can continue investigating the experienced issue. I suggest you to open a new support thread, if the file contains confidential information in order to avoid sharing in public Feedback Portal.   
Robert Gray
Posted on: 20 May 2016 16:11
I can confirm that we're getting the same error (happened at least a dozen times before I managed to discover this page). Same stack trace, which makes me wonder *why* there's a BackgroundWorker doing something in the UI.

I have managed to reproduce this quasi-reliably by displaying a multi-page document page by page, slowly. At some point the process crashes.

We are loading the document using the LoadDocument(path) method and then navigating using the PageUp() / PageDown() methods.
ADMIN
Stefan
Posted on: 09 Feb 2016 12:10
I am going to decline this item as not reproducible.

Feel free to post here or contact our support team in order to continue the discussion.
ADMIN
Stefan
Posted on: 28 Jan 2016 14:46
Hi Mohamad,

Using our latest version and couple previous versions I was able to successfully load the file in RadPdfViewer (see attached video). Would you please specify which version are you using and also what steps do I need to take in order to reproduce the observed exception?
Attached Files: