Bug 43020 - Forms Android app displaying a tabbed page with FormsAppCompat crashes when changing global font size
Summary: Forms Android app displaying a tabbed page with FormsAppCompat crashes when c...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.0
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-03 02:29 UTC by Cody Beyer (MSFT)
Modified: 2016-12-11 09:05 UTC (History)
5 users (show)

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


Attachments
Sample (59.47 KB, application/x-zip-compressed)
2016-08-03 02:29 UTC, Cody Beyer (MSFT)
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 for Bug 43020 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Cody Beyer (MSFT) 2016-08-03 02:29:32 UTC
Created attachment 16872 [details]
Sample

# Description

The attached sample app demonstrates an issue where changing the global font size while an application created in Xamarin Forms, utilizing appcompat, is backgrounded, will result in the app crashing when brought to the foreground

# Video

https://db.tt/UvoRUR7z

# Sample

Attached

# Steps to Reproduce

	1. Download sample
	2. Deploy to emulator or device
	3. Background app
	4. Navigate to Settings > Accessibility an set "Large Text" (or similar)
	5. Bring app to foreground

# Expected Results

App should return to focus with larger font

# Actual Results

App crashes

# Versions

Microsoft Visual Studio Professional 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Professional

LightSwitch for Visual Studio 2015   00322-40000-00000-AA256
Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015   00322-40000-00000-AA256
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA256
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA256
Microsoft Visual C++ 2015

Visual F# 2015   00322-40000-00000-AA256
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA256
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.1.00719.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1   14.1.20624.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft .NET Core Tools (Preview 2)   14.1.20624.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.25420.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.1.2.18 (fcbe082)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Inspector Support   0.9.0.14 (4d868da)
Adds support for inspecting Xamarin and WPF apps.

Xamarin.Android   6.1.2.21 (1cf254d)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   9.8.2.22 (f37444a)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Cody Beyer (MSFT) 2016-08-05 16:16:56 UTC
>08-05 09:05:30.902 E/mono-rt ( 1281): [ERROR] FATAL UNHANDLED EXCEPTION: Java.Lang.IllegalStateException: Fragment does not have a view
>08-05 09:05:30.902 E/mono-rt ( 1281):   at (wrapper dynamic-method) System.Object:e92b28d0-a19e-4aa5-8fad-35e72f0aec61 (intptr,intptr)
>08-05 09:05:30.902 E/mono-rt ( 1281):   at (wrapper native-to-managed) System.Object:e92b28d0-a19e-4aa5-8fad-35e72f0aec61 (intptr,intptr)
>08-05 09:05:30.902 E/mono-rt ( 1281):   --- End of managed Java.Lang.IllegalStateException stack trace ---
>08-05 09:05:30.902 E/mono-rt ( 1281): java.lang.IllegalStateException: Fragment does not have a view
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.Fragment$1.onFindViewById(Fragment.java:1933)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1057)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1989)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1092)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:174)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:598)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.n_onStart(Native Method)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.onStart(FormsAppCompatActivity.java:120)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.Activity.performStart(Activity.java:5241)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3724)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.ActivityThread.access$900(ActivityThread.java:135)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1202)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.os.Handler.dispatchMessage(Handler.java:102)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.os.Looper.loop(Looper.java:136)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at android.app.ActivityThread.main(ActivityThread.java:5001)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at java.lang.reflect.Method.invokeNative(Native Method)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at java.lang.reflect.Method.invoke(Method.java:515)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
>08-05 09:05:30.902 E/mono-rt ( 1281): 	at dalvik.system.NativeStart.main(Native Method)