Bug 21350 - Running a simple project on Android results in a SetActionBarTextColor unhandled exception.
Summary: Running a simple project on Android results in a SetActionBarTextColor unhand...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-07-15 18:10 UTC by Geoff Armstrong
Modified: 2014-07-24 12:07 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test project (74 bytes, text/plain)
2014-07-15 18:11 UTC, Geoff Armstrong
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 Geoff Armstrong 2014-07-15 18:10:31 UTC
With Xamarin Forms 1.2.1 I'm getting crashes related to SetActionBarTextColor. Test hardware is a Google Nexus 7 (2013) tablet. Included is a simple test project that reproduces this. I have also encountered it running a more complex solution, which crashes with the same error once I tap in an Entry to type in a username.

Steps to reproduce:
1. Load sample project
2. Run sample project
3. See crash in Call Stack window:

----
System.Diagnostics.Debugger.Mono_UnhandledException_internal () in 
System.Diagnostics.Debugger.Mono_UnhandledException (ex=) in 
object.b27fb14d-4816-4080-8935-e6d276c96575 (Parameters=) in 
Xamarin.Forms.Platform.Android.Platform.SetActionBarTextColor (Parameters=) in 
Xamarin.Forms.Platform.Android.Platform.UpdateActionBarTextColor (Parameters=) in 
Xamarin.Forms.Platform.Android.Platform.OnLayout (Parameters=) in 
Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (Parameters=) in 
Android.Views.ViewGroup.n_OnLayout_ZIIII (Parameters=) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.14-series/528056fd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Views.ViewGroup.cs:3275
object.b27fb14d-4816-4080-8935-e6d276c96575 (Parameters=) in 
----

Sometimes it crashes like this instead:

----
System.Diagnostics.Debugger.Mono_UnhandledException_internal () in 
System.Diagnostics.Debugger.Mono_UnhandledException (ex={System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Forms.Platform.Android.Platform.SetActionBarTextColor () <IL 0x00006, 0x0008c>
at Xamarin.Forms.Platform.Android.Platform.UpdateActionBarTextColor () <IL 0x00001, 0x00043>
at Xamarin.Forms.Platform.Android.Platform.OnLayout (bool,int,int,int,int) <IL 0x00004, 0x000ab>
at Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (bool,int,int,int,int) <IL 0x0001b, 0x000d3>
at Android.Views.ViewGroup.n_OnLayout_ZIIII (intptr,intptr,bool,int,int,int,int) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.14-series/528056fd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Views.ViewGroup.cs:3275
at (wrapper dynamic-method) object.47d98ccc-e469-4761-9bf0-a0a9d87fa8a2 (intptr,intptr,bool,int,int,int,int) <IL 0x0002f, 0x00093>
}) in 
object.47d98ccc-e469-4761-9bf0-a0a9d87fa8a2 (arg0=0x41f6ecc8, arg1=0xffffffffbed0b69c, arg2=true, arg3=0, arg4=0, arg5=1200, arg6=1774) in 
Xamarin.Forms.Platform.Android.Platform.SetActionBarTextColor () in 
Xamarin.Forms.Platform.Android.Platform.UpdateActionBarTextColor () in 
Xamarin.Forms.Platform.Android.Platform.OnLayout (changed=true, l=0, t=0, r=1200, b=1774) in 
Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (changed=true, l=0, t=0, r=1200, b=1774) in 
Android.Views.ViewGroup.n_OnLayout_ZIIII (jnienv=0x41f6ecc8, native__this=0xffffffffbed0b69c, changed=true, l=0, t=0, r=1200, b=1774) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.14-series/528056fd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Views.ViewGroup.cs:3275
object.47d98ccc-e469-4761-9bf0-a0a9d87fa8a2 (arg0=0x41f6ecc8, arg1=0xffffffffbed0b69c, arg2=true, arg3=0, arg4=0, arg5=1200, arg6=1774) in 
----
Comment 1 Geoff Armstrong 2014-07-15 18:11:22 UTC
Created attachment 7378 [details]
Test project
Comment 2 Eric Maupin 2014-07-17 13:46:16 UTC
Made public at the request of the reporter.
Comment 4 Geoff Armstrong 2014-07-24 12:07:31 UTC
Fixed in 1.2.2.