azchohfi / LottieUWP

UWP port of Lottie(https://github.com/airbnb/lottie-android)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some crashes when compiled with Native tool chain

letsar opened this issue · comments

When you compile an UWP app with .NET Native tool chain, some lottie files make the library to crash.
For example with the sample app in release mode:

  1. Select Assets\lottiefiles\gradient_animated_background.json
  2. Select another one
  3. Wait one or two seconds => The app crash with the following exception: System.Runtime.InteropServices.InvalidComObjectException: 'Excep_InvalidComObject_NoRCW_Wrapper. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485'

Another example less explicit:

  1. Select Assets\lottiefiles\download.json
  2. Select another one
  3. Wait one or two seconds => The app crash with the following exception:
    Unhandled exception at 0x766C64A1 (combase.dll) in LottieUWP.Sample.exe: 0xC000027B

I know there are some serializers that don't like to be run in .Net Native. Is this the case?

I was able to simulate the bug and I think I caught them all. Let me know if you see this again.