azchohfi / LottieUWP

UWP port of Lottie(https://github.com/airbnb/lottie-android)
Apache License 2.0
274 stars 45 forks source link

Some crashes when compiled with Native tool chain #33

Closed letsar closed 6 years ago

letsar commented 6 years ago

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_NoRCWWrapper. 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
GitMoDu commented 6 years ago

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

azchohfi commented 6 years ago

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