Skip to content

App silently crashes with local WPF assemblies #12933

Description

@stevenbrix

We think there is some issue with how WPF assemblies are being compiled that makes them not work properly, but it's incredibly challenging to try and figure out what is going on. If someone could take a look and help me understand, that would be great. Ideally, these errors had some more actionable information so I can self-diagnose and fix the issue. If there are any tools/tricks that can help me diagnose these issues that would be a big 👍.

Repro steps

  1. git clone https://github.com/dotnet/wpf.git
  2. cd to directory where repo was cloned and run .\build.cmd -pack
  3. Create a sample wpf .netcore app through VS or using dotnet new wpf
  4. Follow this step in the developer guide for trying out local wpf assemblies.
  5. Open project in VS and F5

Expected

App runs, or we get an actionable exception that will help us diagnose the issue

Actual

App silently crashes with error 0xe0434352. I have all managed exceptions enabled and still nothing gets caught.

Repro steps (continued)

  1. Right-click the .csproj and go to Properties->Debug.
  2. Enable Native debugging and then F5

Expected

App runs, or we get an actionable exception that will help us diagnose the issue

Actual

Native exception is caught, but still not actionable

image

If I continue past this I then see a System.ExecutionEngineException, but it still doesn't provide any information.

cc @ericstj

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions