Some crashes when compiled with Native tool chain
letsar opened this issue · comments
Romain Rastel commented
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:
- Select Assets\lottiefiles\gradient_animated_background.json
- Select another one
- 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:
- Select Assets\lottiefiles\download.json
- Select another one
- Wait one or two seconds => The app crash with the following exception:
Unhandled exception at 0x766C64A1 (combase.dll) in LottieUWP.Sample.exe: 0xC000027B
André commented
I know there are some serializers that don't like to be run in .Net Native. Is this the case?
Alexandre Zollinger Chohfi commented
I was able to simulate the bug and I think I caught them all. Let me know if you see this again.