Bug 49069 - Java.Lang.ArrayIndexOutOfBoundsException when rendering long Label on Android
Summary: Java.Lang.ArrayIndexOutOfBoundsException when rendering long Label on Android
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.2
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Rui Marinho
URL:
Depends on:
Blocks:
 
Reported: 2016-12-06 10:39 UTC by John Hardman
Modified: 2017-07-27 04:41 UTC (History)
6 users (show)

Tags: Android LabelRenderer ViewRenderer ArrayIndexOutOfBoundsException Label ac
Is this bug a regression?: ---
Last known good build:


Attachments
Zip file containing solution that demonstrates problem (295.10 KB, application/zip)
2016-12-06 10:44 UTC, John Hardman
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description John Hardman 2016-12-06 10:39:52 UTC
The attached solution contains a very simple app, that displays a Label on a ContentPage. On a specific Android device, this throws the exception shown below (from within the standard Label/View renderer), but on other Android devices and other platforms works fine.

The device details are as follows:
[0:]     Device firmware version = Release 5.1, Security Patch 2016-03-01, Sdk 22
[0:]     Device hardware version = qcom
[0:]     Device manufacturer = motorola
[0:]     Device name = XT1021
[0:]     Device model = motorola XT1021
[0:]     User interface idiom = Phone
[0:]     Device total memory (bytes) = 958705664
[0:]     Current directory = /
[0:]     Operating system version = Android - Unix 3.4.42.70
[0:]     System version = 4.0.50524.0
[0:]     Processor count = 2
[0:]     Is multitasking supported = Yes

The exception is:

12-06 10:24:44.648 I/MonoDroid(26521): UNHANDLED EXCEPTION:
12-06 10:24:44.691 I/MonoDroid(26521): Java.Lang.ArrayIndexOutOfBoundsException: length=117; index=-1
12-06 10:24:44.691 I/MonoDroid(26521):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3511/77cb8568/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
12-06 10:24:44.691 I/MonoDroid(26521):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x000a7] in /Users/builder/data/lanes/3511/ce955cc0/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:12083 
12-06 10:24:44.691 I/MonoDroid(26521):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00022] in /Users/builder/data/lanes/3511/ce955cc0/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:41 
12-06 10:24:44.691 I/MonoDroid(26521):   at Android.Views.View.Measure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x0002a] in /Users/builder/data/lanes/3511/ce955cc0/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Views.View.cs:13953 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.Platform.Android.ViewRenderer`2[TView,TNativeView].GetDesiredSize (System.Int32 widthConstraint, System.Int32 heightConstraint) [0x00032] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\ViewRenderer.cs:66 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.Platform.Android.LabelRenderer.GetDesiredSize (System.Int32 widthConstraint, System.Int32 heightConstraint) [0x000f8] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Renderers\LabelRenderer.cs:60 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.Platform.Android.AppCompat.Platform.Xamarin.Forms.IPlatform.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x0008e] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:183 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x0002d] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:624 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:593 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00053] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:469 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) [0x00054] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:527 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.StackLayout.CalculateNaiveLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, Xamarin.Forms.StackOrientation orientation, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint) [0x000a8] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\StackLayout.cs:150 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.StackLayout.CalculateLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint, System.Boolean processExpanders) [0x00058] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\StackLayout.cs:110 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.StackLayout.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00019] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\StackLayout.cs:67 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:593 
12-06 10:24:44.691 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00053] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:469 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Layout.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Layout.cs:110 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) [0x00054] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:527 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.ScrollView.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0006d] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\ScrollView.cs:172 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x000c7] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Layout.cs:229 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Layout.cs:194 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:629 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:773 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:157 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:511 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x0016b] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Layout.cs:148 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x00111] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Page.cs:179 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000d0] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Page.cs:252 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Page.cs:233 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:629 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:773 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:157 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:511 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x0000a] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Layout.cs:120 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x00111] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Page.cs:179 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000d0] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Page.cs:252 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\Page.cs:233 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:629 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:773 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:157 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Core\VisualElement.cs:511 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Platform.Android.AppCompat.Platform.LayoutRootPage (Xamarin.Forms.Page page, System.Int32 width, System.Int32 height) [0x0005d] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:279 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Platform.Android.AppCompat.Platform.Xamarin.Forms.Platform.Android.IPlatformLayout.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00003] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:196 
12-06 10:24:44.692 I/MonoDroid(26521):   at Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x0000e] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\PlatformRenderer.cs:73 
12-06 10:24:44.692 I/MonoDroid(26521):   at Android.Views.ViewGroup.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00009] in /Users/builder/data/lanes/3511/ce955cc0/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Views.ViewGroup.cs:3427 
12-06 10:24:44.692 I/MonoDroid(26521):   at (wrapper dynamic-method) System.Object:b9b0da01-6467-491d-ad3d-1fd6153a7a09 (intptr,intptr,bool,int,int,int,int)
12-06 10:24:44.692 I/MonoDroid(26521):   --- End of managed Java.Lang.ArrayIndexOutOfBoundsException stack trace ---
12-06 10:24:44.692 I/MonoDroid(26521): java.lang.ArrayIndexOutOfBoundsException: length=117; index=-1
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.text.StaticLayout.calculateEllipsis(StaticLayout.java:667)
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.text.StaticLayout.out(StaticLayout.java:631)
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.text.StaticLayout.generate(StaticLayout.java:423)
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.text.StaticLayout.<init>(StaticLayout.java:140)
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.widget.TextView.makeSingleLayout(TextView.java:6455)
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.widget.TextView.makeNewLayout(TextView.java:6312)
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.widget.TextView.onMeasure(TextView.java:6669)
12-06 10:24:44.692 I/MonoDroid(26521): 	at android.view.View.measure(View.java:17565)
12-06 10:24:44.693 I/MonoDroid(26521): 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.n_onLayout(Native Method)
12-06 10:24:44.693 I/MonoDroid(26521): 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.onLayout(PlatformRenderer.java:63)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.View.layout(View.java:15689)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewGroup.layout(ViewGroup.java:5040)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.View.layout(View.java:15689)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewGroup.layout(ViewGroup.java:5040)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.View.layout(View.java:15689)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewGroup.layout(ViewGroup.java:5040)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.View.layout(View.java:15689)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewGroup.layout(ViewGroup.java:5040)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.View.layout(View.java:15689)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewGroup.layout(ViewGroup.java:5040)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.View.layout(View.java:15689)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewGroup.layout(ViewGroup.java:5040)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.View.layout(View.java:15689)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewGroup.layout(ViewGroup.java:5040)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2116)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1873)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1084)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5990)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.Choreographer.doCallbacks(Choreographer.java:580)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.Choreographer.doFrame(Choreographer.java:550)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.os.Handler.handleCallback(Handler.java:739)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.os.Handler.dispatchMessage(Handler.java:95)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.os.Looper.loop(Looper.java:135)
12-06 10:24:44.693 I/MonoDroid(26521): 	at android.app.ActivityThread.main(ActivityThread.java:5343)
12-06 10:24:44.693 I/MonoDroid(26521): 	at java.lang.reflect.Method.invoke(Native Method)
12-06 10:24:44.693 I/MonoDroid(26521): 	at java.lang.reflect.Method.invoke(Method.java:372)
12-06 10:24:44.693 I/MonoDroid(26521): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
12-06 10:24:44.693 I/MonoDroid(26521): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Comment 1 John Hardman 2016-12-06 10:44:32 UTC
Created attachment 18788 [details]
Zip file containing solution that demonstrates problem
Comment 2 Will Kuhn 2016-12-06 20:32:03 UTC
I see something similar using a Label in a StackLayout:										        		<Label Text="1111111111 11oject 0000000000000000000000 000000000000000000000000000000000000" LineBreakMode="MiddleTruncation" FontSize="18" />


Only happens on Android 4.4.2 API 19. Tested in a simulator.

XF 2.3.2.127
Comment 3 Paul DiPietro [MSFT] 2017-03-24 15:00:21 UTC
Tested against the latest 2.3.5.73-nightly and still appears to be occurring.
Comment 4 Rui Marinho 2017-05-23 14:47:29 UTC
https://github.com/xamarin/Xamarin.Forms/pull/932
Comment 5 Rui Marinho 2017-05-26 11:32:09 UTC
Should be fixed on 2.3.6-pre1
Comment 6 Pynne 2017-07-27 04:34:24 UTC
Is the any workaround for this?
My app is going to release
Comment 7 Pynne 2017-07-27 04:41:02 UTC
Thanks, I got it.. the workaround is by writing a custom renderer and set single line = true or set number of lines = 1