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. Image for the cookie policy date

Exception when autoplay, autoloop are true and tapping the image

if my rotator defined as below and i have images inside rotator, while it is autoplaying and looping, if I tap an image, exception is thrown on android. I am using XF version 2.3.3.193 

SfRotator rotator = new SfRotator()
            {
                NavigationStripMode = NavigationStripMode.Dots,
                NavigationDelay = 2000,
                NavigationDirection = NavigationDirection.Horizontal,
                NavigationStripPosition = NavigationStripPosition.Bottom,
                EnableAutoPlay = true,
                EnableLooping = true,
                EnableSwiping = true,
                Margin = new Thickness(30, 10),
                VerticalOptions = LayoutOptions.Start,
                HorizontalOptions = LayoutOptions.Center,
                HeightRequest = Device.Idiom == TargetIdiom.Phone ? 300 : 500,
                WidthRequest = Device.Idiom == TargetIdiom.Phone ? 300 : 500

            };



An unhandled exception occured.

03-01 23:48:12.240 D/Mono    (15414): DllImport attempting to load: '/system/lib/liblog.so'.
03-01 23:48:12.240 D/Mono    (15414): DllImport loaded library '/system/lib/liblog.so'.
03-01 23:48:12.240 D/Mono    (15414): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
03-01 23:48:12.240 D/Mono    (15414): Searching for '__android_log_print'.
03-01 23:48:12.240 D/Mono    (15414): Probing '__android_log_print'.
03-01 23:48:12.240 D/Mono    (15414): Found as '__android_log_print'.
03-01 23:48:12.250 I/MonoDroid(15414): UNHANDLED EXCEPTION:
03-01 23:48:12.271 I/MonoDroid(15414): Java.Lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setX(float)' on a null object reference
03-01 23:48:12.272 I/MonoDroid(15414):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4009/f3074d2c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
03-01 23:48:12.272 I/MonoDroid(15414):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualBooleanMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x000a8] in /Users/builder/data/lanes/4009/9578cdcd/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:11732 
03-01 23:48:12.272 I/MonoDroid(15414):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0006b] in /Users/builder/data/lanes/4009/9578cdcd/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:67 
03-01 23:48:12.272 I/MonoDroid(15414):   at Android.Views.View.DispatchTouchEvent (Android.Views.MotionEvent e) [0x0002c] in /Users/builder/data/lanes/4009/9578cdcd/source/monodroid/src/Mono.Android/platforms/android-25/src/generated/Android.Views.View.cs:12643 
03-01 23:48:12.272 I/MonoDroid(15414):   at Xamarin.Forms.Platform.Android.PlatformRenderer.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00035] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\PlatformRenderer.cs:32 
03-01 23:48:12.272 I/MonoDroid(15414):   at Android.Views.View.n_DispatchTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x00011] in /Users/builder/data/lanes/4009/9578cdcd/source/monodroid/src/Mono.Android/platforms/android-25/src/generated/Android.Views.View.cs:12630 
03-01 23:48:12.272 I/MonoDroid(15414):   at (wrapper dynamic-method) System.Object:b6e73cbe-26fb-45e9-87a2-57a57513f3b5 (intptr,intptr,intptr)
03-01 23:48:12.272 I/MonoDroid(15414):   --- End of managed Java.Lang.NullPointerException stack trace ---
03-01 23:48:12.272 I/MonoDroid(15414): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setX(float)' on a null object reference
03-01 23:48:12.272 I/MonoDroid(15414):  at com.syncfusion.rotator.ImageHolder.touchAnimation(ImageHolder.java:199)
03-01 23:48:12.272 I/MonoDroid(15414):  at com.syncfusion.rotator.ImageHolder.onTouchEvent(ImageHolder.java:120)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.View.dispatchTouchEvent(View.java:9377)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2548)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2241)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.n_dispatchTouchEvent(Native Method)
03-01 23:48:12.272 I/MonoDroid(15414):  at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.dispatchTouchEvent(PlatformRenderer.java:55)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
03-01 23:48:12.272 I/MonoDroid(15414):  at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2410)
03-01 23:48:12.272 I/MonoDroid(15414):  at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1744)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.app.Activity.dispatchTouchEvent(Activity.java:2805)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
03-01 23:48:12.272 I/MonoDroid(15414):  at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2371)
03-01 23:48:12.272 I/MonoDroid(15414):  at android.view.View.dispatchPointerEvent(View.java:9597)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4234)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4100)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3646)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3699)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3665)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3791)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3673)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3848)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3646)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3699)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3665)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3673)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3646)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5926)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5900)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5861)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6029)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6000)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6052)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.Choreographer.doCallbacks(Choreographer.java:670)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.Choreographer.doFrame(Choreographer.java:600)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.os.Handler.handleCallback(Handler.java:739)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.os.Handler.dispatchMessage(Handler.java:95)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.os.Looper.loop(Looper.java:234)
03-01 23:48:12.273 I/MonoDroid(15414):  at android.app.ActivityThread.main(ActivityThread.java:5526)
03-01 23:48:12.273 I/MonoDroid(15414):  at java.lang.reflect.Method.invoke(Native Method)
03-01 23:48:12.273 I/MonoDroid(15414):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
03-01 23:48:12.273 I/MonoDroid(15414):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

 


1 Reply

RK Rathana Kumar Sekar Syncfusion Team March 2, 2017 01:04 PM UTC

Hi Emil, 
Thanks for you update. 
We have already provided fix for the reported issue in a support incident.Please log on to our support website to check for further updates. 
Regards,
Rathanakumar S.
 


Loader.
Up arrow icon