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

Null Ref Error IOrderedTraversalController.UpdateTraversalOrder

5 Answers 21 Views
SideDrawer
This is a migrated thread and some comments may be shown as answers.
IanV
Top achievements
Rank 1
Veteran
IanV asked on 11 Jul 2019, 03:51 PM

We are unable to reproduce this crash, but our App.Center Analytics is reporting this error from some, but not all, of our customers

Version 2019.2.708

Crash::

 

System.NullReferenceException: Object reference not set to an instance of an object

 

IOrderedTraversalController.UpdateTraversalOrder ()
VisualElementRenderer`1[TElement].UpdateParentPageTraversalOrder ()
VisualElementRenderer`1[TElement].OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e)
(wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
BindableObject.OnPropertyChanged (System.String propertyName)
Element.OnPropertyChanged (System.String propertyName)
Element.set_Parent (Xamarin.Forms.Element value)
RadViewContainer.DetachInnerView ()
RadViewContainer.set_View (Xamarin.Forms.View value)
SideDrawerRenderer.RetireViewContainer (Telerik.XamarinForms.Common.Android.RadViewContainer viewContainer)
SideDrawerRenderer.RetireMainContent ()
SideDrawerRenderer.RetireViewContainers ()
SideDrawerRenderer.OnElementDetached (Telerik.XamarinForms.Primitives.RadSideDrawer oldElement)
AndroidRendererBase`2[S,T].Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
PageRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
FragmentContainer.OnDestroyView ()
Fragment.n_OnDestroyView (System.IntPtr jnienv, System.IntPtr native__this)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.74(intptr,intptr)

 

5 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 16 Jul 2019, 10:01 AM
Hi Ian,

Thank you for the provided details.

It seems that the fix for the issue Crash when upgrading to Xamarin.Forms 4.0 does not cover all scenarios. Could you please elaborate more when the exception observes - for example, while navigating back from page that contains the RadSideDrawer control. 
 
We have similar crash with the RadListView control here is the link: 

https://feedback.telerik.com/xamarin/1418464-listview-android-nullreferenceexception-is-thrown-when-navigating-back-and-using-xamarin-forms-4-0-or-higher

I am looking forward to your reply.

Regards,
Didi
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
IanV
Top achievements
Rank 1
Veteran
answered on 16 Jul 2019, 05:12 PM
As we mentioned in the original post we can't reproduce it, but we just get a lot of Microsoft App Center reports of this crash from our Android users.
0
Didi
Telerik team
answered on 17 Jul 2019, 07:58 AM
Hello Ian,

I have tried different scenarios to reproduce the issue but on my side the SideDrawer works as expected. 

Next steps:

As I could not reproduce the issue I will need more information on the exact setup you have.

- How the SideDrawer is defined? Is it positioned inside a navigation page?
- is there a RadListView control inside the Drawer content or main content?
- the full stack trace of the exception.
- the project where the issue could be reproduced. I would like to ask you to open a support ticket and attach the project there because in the forum only image attachments are allowed.

Thank you in advance. 

Regards,
Didi
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
Afi
Top achievements
Rank 1
answered on 20 Jan 2020, 02:21 PM

Hi Didi & IanV

We're also getting this crash report from App Center (only in Android happend in the last 7 days to 15 different users out of ~200 active users on 15 distinct devices)

We are not using SideDrawer

Telerik version: v2019.3.1004

Xamarin.Forms 4.2.0

CellContainerBase.Dispose (System.Boolean disposing)
System.NullReferenceException: Object reference not set to an instance of an object

Stack traces
IOrderedTraversalController.UpdateTraversalOrder ()
VisualElementRenderer`1[TElement].UpdateParentPageTraversalOrder ()
VisualElementRenderer`1[TElement].OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e)
(wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
BindableObject.OnPropertyChanged (System.String propertyName)
Element.OnPropertyChanged (System.String propertyName)
Element.set_Parent (Xamarin.Forms.Element value)
Element.OnChildRemoved (Xamarin.Forms.Element child)
ViewCell.set_View (Xamarin.Forms.View value)
CellContainerBase.Dispose (System.Boolean disposing)
Object.Dispose ()
FormsListViewDataSourceAdapterBase.ClearCachedViews ()
RadListViewDataSourceAdapter.ClearCachedViews ()
RadListViewDataSourceAdapter.Dispose (System.Boolean disposing)
Object.Dispose ()
ListViewRenderer.OnElementDetached (Telerik.XamarinForms.DataControls.RadListView oldElement)
AndroidRendererBase`2[S,T].Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Platform+DefaultRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
PageRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
FragmentContainer.OnDestroyView ()
Fragment.n_OnDestroyView (System.IntPtr jnienv, System.IntPtr native__this)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.41(intptr,intptr)

 

Thanks in advance

Roei

0
Didi
Telerik team
answered on 22 Jan 2020, 12:25 PM

Hi Afi,

Thank you for the provided details.

Regarding to the nullreference exception we have a bug report logged in our feedback portal: 

https://feedback.telerik.com/xamarin/1418464-android-nullreferenceexception-is-thrown-when-navigating-back-and-using-xamarin-forms-4-1

The issue was reproduced with ListView, SlideView, SideDrawer and DataGrid controls. I have noticed from the crash you have provided - the exception is for the listview control.

We have added an update in the feedback item regarding this crash. I have pasted the update info in this forum thread:

UPDATE:
The issue is confirmed to be in Xamarin.Forms framework. A fix is already provided. The Xamarin.Forms 4.3 version will contain the fix.

Could you please update the Xamarin.Forms version to 4.3 or higher and check whether this solves the issue.

Give the suggestion a try and let me know how it goes.

Regards,
Didi
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
Tags
SideDrawer
Asked by
IanV
Top achievements
Rank 1
Veteran
Answers by
Didi
Telerik team
IanV
Top achievements
Rank 1
Veteran
Afi
Top achievements
Rank 1
Share this question
or