-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Xamarin animation tasks do not complete on Android when Remove Animation setting is on #15743
Description
Description
We have a problem in our game that the app hangs up with Samsung Android users when Settings -> Accessibility -> Visibility Enhancements -> Remove Animations option is on. I have not found a way to programmatically override this setting, while animator duration scale can be overriden, and Remove animations seems to override any other animator duration scale settings. Our app hangs to a call to Xamarin.Forms.VisualElement.FadeTo, with parameters (1, 250). The element is an FFImageLoading.Forms.CachedImage, but I doubt that this is relevant here. When Remove Animations is set to Off, the game works again.
Steps to Reproduce
- Take an Samsung Android device and set Remove Animations option to Off under Settings -> Accessibility -> Visibility Enhancements.
- Build GnollHack at https://github.com/hyvanmielenpelit/GnollHack/ for Android
- Start debugging, and you will find out that the game hangs up in the first FadeTo call that never finishes.
Expected Behavior
The game does not hang up.
Actual Behavior
The game hangs up.
Basic Information
- Version with issue: Version coming with Visual Studio 2022 17.5.5.
- Last known good version: None
- Platform Target Frameworks: Android
- Android: 12.0
- Affected Devices: Samsung Android devices
Environment
Show/Hide Visual Studio info
Microsoft Visual Studio Community 2022
Version 17.5.5
VisualStudio.17.Release/17.5.5+33627.172
Microsoft .NET Framework
Version 4.8.09032
Installed Version: Community
Visual C++ 2022 00482-90000-00000-AA350
Microsoft Visual C++ 2022
ASP.NET and Web Tools 17.5.320.55692
ASP.NET and Web Tools
Azure App Service Tools v3.0.0 17.5.320.55692
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 17.5.320.55692
Azure Functions and Web Jobs Tools
C# Tools 4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.4.3 (main@2a4517a)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Linux Core Dump Debugging 1.0.9.33414
Enables debugging of Linux core dumps.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Mono Debugging for Visual Studio 17.5.9 (11975e6)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 6.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Razor (ASP.NET Core) 17.5.2.2316603+9f1b6856460af1e592d387ebef416eadddac453f
Provides languages services for ASP.NET Core Razor.
SQL Server Data Tools 17.2.40120.0
Microsoft SQL Server Data Tools
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 17.0.20105.2003
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual C++ for Cross Platform Mobile Development (Android) 17.0.33312.129
Visual C++ for Cross Platform Mobile Development (Android)
Visual C++ for Cross Platform Mobile Development (iOS) 17.0.33312.129
Visual C++ for Cross Platform Mobile Development (iOS)
Visual C++ for Linux Development 1.0.9.33414
Visual C++ for Linux Development
Visual F# Tools 17.5.0-beta.23053.5+794b7c259d9646a7eb685dad865aa27da7940a21
Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.
VisualStudio.DeviceLog 1.0
Information about my package
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
VSPackage Extension 1.0
VSPackage Visual Studio Extension Detailed Info
Xamarin 17.5.0.173 (d17-5@33e727c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 17.5.3.46 (remotes/origin/d17-5@e4dd80b2bb)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 17.5.41 (ba80d05)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 13.2.0.0 (d17-5/797e2e1)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: 6dd9def
Java.Interop: xamarin/java.interop/main@149d70fe
SQLite: xamarin/sqlite/3.40.0@fdc1e34
Xamarin.Android Tools: xamarin/xamarin-android-tools/main@9f02d77
Xamarin.iOS and Xamarin.Mac SDK 16.2.0.5 (7738c90c9)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Build Logs
Screenshots
Reproduction Link
Workaround
User needs to set Remove Animations to Off, but this cannot be done programmatically at the moment.