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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

XF.UWP crash when navigating back #380

Open
6 tasks
sjorsmiltenburg opened this issue Apr 28, 2022 · 2 comments
Open
6 tasks

XF.UWP crash when navigating back #380

sjorsmiltenburg opened this issue Apr 28, 2022 · 2 comments

Comments

@sjorsmiltenburg
Copy link

馃悰 Bug Report

I have a XF.UWP application.

I am currently using v4.0.11, because with v4.1.0 it does not render any animation on UWP (I will file a separate bug report for that)

v4.0.11 can trigger a crash (unhandled nullref exception)
This happens when I quickly navigate away from a page with an Lottie animation.
On UWP it seems to need approx 200ms to start animating the visual after displaying the 'begin state'.
If I quickly navigate back (for instance with the back button on my mouse), and I am within this 200ms (the animation has not started yet), the app crashes with a nullref exception.
If I wait for the animation to start moving, and move back then, all is fine.

Expected behavior

no crash.

Reproduction steps

Configuration

Version: 1.x

Platform:

  • 馃摫 iOS
  • 馃 Android
  • [x ] 馃弫 WPF
  • 馃寧 UWP
  • 馃崕 MacOS
  • 馃摵 tvOS
  • 馃悞 Xamarin.Forms
@sjorsmiltenburg
Copy link
Author

sjorsmiltenburg commented Sep 1, 2022

In appcenter the following is reported

AnimationViewRenderer._animationView_Loaded (Object sender, RoutedEventArgs e)
System.NullReferenceException: Object reference not set to an instance of an object.

stack trace:

AnimationViewRenderer._animationView_Loaded (Object sender, RoutedEventArgs e)
System.Runtime.CompilerServices.AsyncMethodBuilderCore
<>c.<ThrowAsync>b__7_0 (Object state)
System.Threading.WinRTSynchronizationContextBase
Invoker.InvokeCore ()
Windows.ApplicationModel.Core
UnhandledError.Propagate ()
Microsoft.AppCenter.Utils
ApplicationLifecycleHelper.<ctor>b__17_1 (Object sender, UnhandledErrorDetectedEventArgs eventArgs)

@sjorsmiltenburg
Copy link
Author

Exception thrown at 0x76DA78A2 (KernelBase.dll) in BB.App.UWP.exe: WinRT originate error - 0x80004003 : 'System.NullReferenceException: Object reference not set to an instance of an object.
at Lottie.Forms.Platforms.Uap.AnimationViewRenderer._animationView_Loaded(Object sender, RoutedEventArgs e)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__7_0(Object state)
at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant