Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Custom Renderer / Debug Issues

$
0
0

I have had two issues which occurred while building a custom renderer.

I built a simple demo app. with a custom renderer, to try out a cross platform swipe view.

The code works in Xamarin.Forms 1.3.1.6296, and the latest 1.4.3.6358-pre1 and 1.4.3.6358-pre2.

In 1.4.2.639 (the current latest stable) I get:

[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.NullReferenceException: Object reference not set to an instance of an object
[MonoDroid] at Xamarin.Forms.Platform.Android.Platform.GetRenderer (Xamarin.Forms.BindableObject)
[MonoDroid] at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (int,Android.Views.View,Android.Views.ViewGroup)
[MonoDroid] at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (intptr,intptr,int,intptr,intptr) [0x0001a] in /Users/builder/data/lanes/1353/86274adf/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.Widget.BaseAdapter.cs:460
[MonoDroid] at (wrapper dynamic-method) object.5f584e2f-21c4-40fe-9ab8-be4c498f1721 (intptr,intptr,int,intptr,intptr)

Which is apparently a bug in the current version of Xamarin, at least according to this: https://forums.xamarin.com/discussion/40236/how-does-android-viewcellrenderer-work-i-get-crashes-trying-to-reuse-views

Can I confirm that this is in fact a bug ? I can't find anything here: https://bugzilla.xamarin.com/buglist.cgi?quicksearch=1.4.2.6359

The second issue is that moving my main project to Pre 1 / Pre 2 breaks the Debugger.

E.g Debugger.Break() breaks at a random point elsewhere in code. Placing debug points results in either hollow donuts or full breakpoints which are never hit. I have tried cleaning and restarting, but that does not fix the issue. Moving to any older version than pre1 fixes the issue.

Has anyone else experienced this Debugger issue?

I have uploaded a small sample project to demo the first bug, but the second is not occurring in this project, only in our main solution with Pre 1 and Pre2.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>