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

DebugSettings.LayoutCycleTracingLevel doesn't work as docs claim #9913

Open
stevenbrix opened this issue Aug 20, 2024 · 0 comments
Open

DebugSettings.LayoutCycleTracingLevel doesn't work as docs claim #9913

stevenbrix opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@stevenbrix
Copy link
Contributor

Describe the bug

The docs for DebugSettings.LayoutCycleTracingLevel imply that the information will be added to Stowed Exceptions, but this doesn't seem to be the case

Steps to reproduce the bug

  1. create a blank app with a button which will induce a layout cycle crash:
    class WinUILayoutCycleButton: Button {
         override func onPointerPressed(_: PointerRoutedEventArgs!) throws {
            layoutUpdated.addHandler { [weak self] _, _ in
                try? self?.invalidateMeasure()
            }
            width = width - 1
        }
    }

  1. click the button to induce a layout cycle crash
  2. look at the dmp file, there isn't more stowed exception information

Expected behavior

I would expect the stowed exception information to be included in the dump.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.6: 1.5.240802000

Windows version

No response

Additional context

I've seen the tracing output, but in order to get that you need a debugger attached, or do something like detour OutputDebugString to collect the logs (assuming that's the API being used, I don't think this code is open source).

It would be nice to have a logging API, somewhat similar to DebugSettings.BindingFailed or DebugSettings.XamlResourceReferenceFailed

@stevenbrix stevenbrix added the bug Something isn't working label Aug 20, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant