Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAUI: App crash due to "Unable to find IAnimationManager for 'Microsoft.Maui.Controls.Shapes.Path'. Arg_ParamName_Name, animatable" by using inputkit:RadioButton #359

Open
satish-dnv opened this issue Nov 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@satish-dnv
Copy link

Describe the bug

Hi,
I am encountering a critical issue in my .NET MAUI app when using the RadioButton from InputKit.MAUI package. The app crashes with the following error message:

"Unable to find IAnimationManager for 'Microsoft.Maui.Controls.Shapes.Path'. Arg_ParamName_Name, animatable"

This issue has been identified through logs in Sentry and is causing the app to become unusable. The App crashes in both Android and iOS.

To Reproduce
Steps to reproduce the behavior:

  1. Use InputKit:RadioButton in XAML file.
  2. Build and deploy the app in release mode.
  3. Open the application, login with credentials and close the app.
  4. Try to open the application again by tapping on it.
  5. App crash at dashboard page, throwing the error in sentry logs.

Expected behavior
Should be able to open the app unlimited times without a crash.

Screenshots
Screenshot 2023-11-20 at 10 11 46 AM

Smartphone (please complete the following information):

  • Device: [iPhone 13]
  • OS: [17.1.1]
  • Device: [Android]
  • OS: [13]
    Additional context
    maui-ios 7.0.101/7.0.100 SDK 7.0.300
    maui-android 7.0.101/7.0.100 SDK 7.0.300
@enisn enisn added the bug Something isn't working label Nov 20, 2023
@satish-dnv
Copy link
Author

Hi @enisn! We successfully addressed the bug by tweaking the code in the "src/InputKit.Maui/Shared/Controls/RadioButton.cs" file. Specifically, we replaced the iconChecked.ScaleTo(isChecked ? DOT_FULL_SCALE : 0, 180); with the following code:
if (isChecked) { iconChecked.Scale = DOT_FULL_SCALE; } else { iconChecked.Scale = 0; }
While this solution resolves the bug, it does impact the animation effect. We recommend investigating and refining the ScaleTo() function for a more seamless animation experience.

Thanks!

@enisn
Copy link
Owner

enisn commented Nov 22, 2023

Thanks for the detailed information,
We have faced this issue before in earlier version of MAUI
dotnet/maui#3353 (comment)

I'll investigate it again and if it happens in MAUI, I'll open an issue to dotnet/maui repo again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants