This is a migrated thread and some comments may be shown as answers.

Scrolling causes crash

4 Answers 43 Views
PdfViewer
This is a migrated thread and some comments may be shown as answers.
Arjun
Top achievements
Rank 1
Arjun asked on 31 Jan 2020, 12:55 AM

I'm using the pdf viewer in a xamarin solution, which includes a UWP application. A pdf can be displayed no problem on the UWP app, however as soon as a mouse scroll is done (to try and scroll down in the pdf, for example), the application crashes without any error message or other signs for what went wrong. Breakpoints and debugging mode in visual studio haven't helped identify the issue. 

Is this a known problem with the pdf viewer component? Any advice on a resolution would be much appreciated.

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 31 Jan 2020, 08:13 AM

Hi Arjun,

We are not aware of such an issue with RadPdfViewer control, so I would need your further assistance in investigating the reasons behind.

Would it be possible to send me the pdf file you've experienced the exception with? Also what approach are you using to load the document?

You would need to open a support ticket and zip and attach the file there.

Thanks in advance for your cooperation.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Fabrice
Top achievements
Rank 1
answered on 04 Mar 2020, 10:58 AM

Hi,

I'd got same crash.

Exception in xaml.g.i.cs :

{"Value does not fall within the expected range."}

"System.ArgumentException: Unsupported touch action type.\r\nParameter name: actionType\r\n   at Telerik.XamarinForms.SkiaSharp.Interaction.SkiaViewInteractionAdapter.Convert(SKTouchAction actionType)\r\n   at Telerik.XamarinForms.SkiaSharp.Interaction.SkiaViewInteractionAdapter.OnTouch(SKTouchEventArgs e)\r\n   at Telerik.XamarinForms.SkiaSharp.Interaction.SkiaViewInteractionAdapter.GlView_Touch(Object sender, SKTouchEventArgs e)\r\n   at SkiaSharp.Views.Forms.SKGLView.OnTouch(SKTouchEventArgs e)\r\n   at SkiaSharp.Vie"

The cause was a dependency to skiasharp in another package. I excluded it and it worked.

0
Prashant
Top achievements
Rank 1
answered on 12 Nov 2020, 10:22 PM
Could you elaborate more on how you fixed it. I am facing the same problem and would like to figure out what dependency is causing the issue.
0
Yana
Telerik team
answered on 16 Nov 2020, 12:29 PM

Hello Prashant,

In general, a reference of SkiaSharp library (SkiaSharp and SkiaSharp.Views.Forms nuget packages)  is needed for RadPdfViewer (as well as some other controls from the Telerik UI for Xamarin suite) to render correctly.

I guess you need to check the other nuget packages in the solution and verify whether there isn't another reference to SkiaSharp of different version. 

If this does not help, please open a support ticket and send us a sample repro app, so we can investigate the error.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PdfViewer
Asked by
Arjun
Top achievements
Rank 1
Answers by
Yana
Telerik team
Fabrice
Top achievements
Rank 1
Prashant
Top achievements
Rank 1
Share this question
or