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

Exception in .net8 #540

Open
book1625 opened this issue Jan 4, 2024 · 7 comments
Open

Exception in .net8 #540

book1625 opened this issue Jan 4, 2024 · 7 comments
Labels
question Further information is requested

Comments

@book1625
Copy link

book1625 commented Jan 4, 2024

Animation work well in .net 7 project, then update it to .net8, there is an c++ exception and crash ~~

@aborziak-ms
Copy link
Collaborator

@book1625 could you provide more information? Exception message, generated code or json file itself? Thank you

@aborziak-ms aborziak-ms added the question Further information is requested label Mar 5, 2024
@book1625
Copy link
Author

Here is a demo project I made, however, it has a little defferent situation from my product.
App1.zip

My product will got an exception as below ...

Exception thrown at 0x00007FF827015B0C in Visualizer.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x000000A26158B5B0.

And the demo project just show nothing without exception.
If you change the framework to .net 7, you can see the animation playing.

@Daoting
Copy link

Daoting commented Mar 26, 2024

CommunityToolkit.WinUI.Lottie 8.0.280224 still not working on <TargetFramework>net8.0-windows10.0.19041</TargetFramework>

@aborziak-ms Thanks!

@Daoting
Copy link

Daoting commented Apr 15, 2024

CommunityToolkit.WinUI.Lottie 8.0.280225 still not working on <TargetFramework>net8.0-windows10.0.19041</TargetFramework>

@aborziak-ms Thanks!

@ipevo-brooks
Copy link

My product still target on .net7 and win10.0.19041 for lottie work, however, .net7 is stop support now.
Is there any way for lottie work in .net8 ??

@Daoting
Copy link

Daoting commented Jul 19, 2024

The Microsoft.Graphics.Win2D 's version need greate 1.2.0!

<ItemGroup>
    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240607001" PrivateAssets="none" />
    <!-- Lottie动画已正常,Microsoft.Graphics.Win2D需1.2.0以上版本,Microsoft.Maui.Essentials已间接引用 -->
    <PackageReference Include="CommunityToolkit.WinUI.Lottie" Version="8.0.280225" />
</ItemGroup>

@ipevo-brooks
Copy link

It' work like a charm !! Thx ~~

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

No branches or pull requests

4 participants