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

Crash on release builds of C# project with all WASDK 1.5x releases #5063

Open
HO-COOH opened this issue Jan 23, 2025 · 3 comments
Open

Crash on release builds of C# project with all WASDK 1.5x releases #5063

HO-COOH opened this issue Jan 23, 2025 · 3 comments

Comments

@HO-COOH
Copy link

HO-COOH commented Jan 23, 2025

Describe the bug

I don't know since when it happens, but it's absolutely ridiculous.

Image

If 1.5x is not supposed to be used, why are you updated it just a few days ago? I am not familiar with C#, just a quick try out. If this is related to AOT by any means, you should document it very clearly.

Steps to reproduce the bug

  1. Create a new C# packaged project
  2. Go to nuget package manager, downgrade wasdk to 1.5x version
  3. Build the project in release mode and launch, observe the crash

Expected behavior

No response

Screenshots

Image

NuGet package version

None

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 24H2 (22621, October 2024 Update)

IDE

Visual Studio 2022

Additional context

No response

@0x5bfa
Copy link
Contributor

0x5bfa commented Jan 25, 2025

We're using this version in production, what kind of exception are you facing?

Also it looks like the full version text in the GitHub release page is wrong (being the same as 1.5.8)

@HO-COOH
Copy link
Author

HO-COOH commented Jan 25, 2025

@0x5bfa Crash speed run, here you go (video slightly over 10M, so need to be zipped)
2025-01-24 00-17-01.zip

@lhak
Copy link

lhak commented Feb 6, 2025

The issue is that trimming is enabled by default for new projects and making it compatible with 1.5 requires a few extra steps:

  • Add <TrimMode>partial</TrimMode> to the project file
  • Downgrade the windows sdk projection via <WindowsSdkPackageVersion> property. I think either the .38 or .34 versions should be fine.

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

No branches or pull requests

4 participants