- Home
- Forum
- Xamarin.Forms
- PdfViewer crash on iOS with System.IndexOutOfRangeException: Index was outside the bounds of the array.
PdfViewer crash on iOS with System.IndexOutOfRangeException: Index was outside the bounds of the array.
Hello!
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
SIGN IN To post a reply.
3 Replies
AM
Alexandr Mykhailov
May 24, 2019 03:46 PM UTC
Sample project with pdf file (test.pdf) that reproduce exception is in attachments.
Attachment: GettingStarted_451f7558.zip
Attachment: GettingStarted_451f7558.zip
SS
Sathish Sivakumar
Syncfusion Team
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
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
SS
Sathish Sivakumar
Syncfusion Team
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
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
AM Alexandr Mykhailov
- May 24, 2019 03:34 PM UTC
- May 29, 2019 05:22 PM UTC