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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PdfViewer crash on iOS with System.IndexOutOfRangeException: Index was outside the bounds of the array.

Thread ID:

Created:

Updated:

Platform:

Replies:

144831 May 24,2019 03:34 PM UTC May 29,2019 05:22 PM UTC Xamarin.Forms 3
loading
Tags: PdfViewer
Alexandr Mykhailov
Asked On May 24, 2019 03:36 PM UTC

Hello!

PdfViewer crash with "System.IndexOutOfRangeException: Index was outside the bounds of the array." when I trying to load some pdf files.
On Android it works fine.

Full stack:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Syncfusion.SfPdfViewer.XForms.iOS.ScrollViewEx.ScrollViewEx_ZoomingEnded (System.Object sender, UIKit.ZoomingEndedEventArgs args) [0x004ba] in <79871341ceba485799b3444e14c1d86b>:0 
  at UIKit.UIScrollView+_UIScrollViewDelegate.ZoomingEnded (UIKit.UIScrollView scrollView, UIKit.UIView withView, System.nfloat atScale) [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIScrollView.g.cs:1532 
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateCla
The app has been terminated.
ssName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at GettingStarted.iOS.Application.Main (System.String[] args) [0x00001] in D:\GettingStarted-81946798\GettingStarted\GettingStarted\GettingStarted.iOS\Main.cs:17 
2019-05-24 18:18:30.223 GettingStarted.iOS[592:168879] Unhandled managed exception:
Index was outside the bounds of the array. (System.IndexOutOfRangeException)
  at Syncfusion.SfPdfViewer.XForms.iOS.ScrollViewEx.ScrollViewEx_ZoomingEnded (System.Object sender, UIKit.ZoomingEndedEventArgs args) [0x004ba] in <79871341ceba485799b3444e14c1d86b>:0 
  at UIKit.UIScrollView+_UIScrollViewDelegate.ZoomingEnded (UIKit.UIScrollView scrollView, UIKit.UIView withView, System.nfloat atScale) [0x00012] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIScrollView.g.cs:1532 
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (Sy
stem.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at GettingStarted.iOS.Application.Main (System.String[] args) [0x00001] in D:\GettingStarted-81946798\GettingStarted\GettingStarted\GettingStarted.iOS\Main.cs:17

Alexandr Mykhailov
Replied On May 24, 2019 03:46 PM UTC

Sample project with pdf file (test.pdf) that reproduce exception is in attachments.

Attachment: GettingStarted_451f7558.zip

Sathish Sivakumar [Syncfusion]
Replied On May 27, 2019 10:03 AM UTC

Hi Alexandr,

Greetings from Syncfusion.

We are able to reproduce the issue “Application crashes with System.IndexOutOfRangeException while loading the specific PDF document” in our side. We have forwarded this issue to our development team for further analysis and we will update further details on 29th May 2019.

Regards,
Sathish




Sathish Sivakumar [Syncfusion]
Replied On May 29, 2019 05:22 PM UTC

Hi Alexandr, 

Thank you for your patience. 

We are confirmed that the issue Application crashes with System.IndexOutOfRangeException while loading the specific PDF document is a defect and logged a defect report for this issue. We will fix the issue and include the fix in our Essential Studio 2019 Volume 2 release which is expected to be rolled out by the end of June 2019.   

Thanks, 
Sathish 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon