Skip to content

Conversation

@Arlodotexe
Copy link
Member

@Arlodotexe Arlodotexe commented Aug 26, 2024

This PR updates our CI to emit crash dumps and diagnostic logs, which should be uploaded as artifacts.

Needed to diagnose #347

See also https://github.com/microsoft/vstest/blob/main/docs/troubleshooting.md

@Arlodotexe Arlodotexe force-pushed the tests/diagnostics branch 2 times, most recently from 2d701d9 to 80e9b96 Compare August 26, 2024 20:59
@Arlodotexe
Copy link
Member Author

Looks like cancelling and re-running all jobs isn't re-running the successful ones. Closing and re-opening to fix.

@Arlodotexe Arlodotexe closed this Aug 26, 2024
@Arlodotexe Arlodotexe reopened this Aug 26, 2024
@Arlodotexe Arlodotexe closed this Aug 26, 2024
@Arlodotexe Arlodotexe reopened this Aug 26, 2024
@Arlodotexe
Copy link
Member Author

Ran a few times, and even when failing during various tests, the dump seems to capture an "invalid pointer read" in the dispatcher queue extensions:

image

It's not immediately obvious why this is happening. I wonder if it's only happening for tests generated with UIThreadTestMethod? Maybe that's related.

@Arlodotexe
Copy link
Member Author

Arlodotexe commented Nov 11, 2024

Strange, it's not outputting crash dumps anymore 🤔

I'm seeing this:

Terminating app with process ID '7764'.
Data collector 'Blame' message: All tests finished running, Sequence file will not be generated.

Will continue to retry, it's not clear why the tests all finish but fail anyway.

@Arlodotexe
Copy link
Member Author

Arlodotexe commented Dec 26, 2025

It took five reruns, but I got the crash dump for the test failures in WASDK again :D

Since it's too large to upload inline on GitHub, to preserve the artifact I've made it available here.
Anyone can help preserve this artifact by downloading it using their own ipfs node, otherwise I'll keep it online as long as possible using my own devices.

@Arlodotexe
Copy link
Member Author

Arlodotexe commented Dec 26, 2025

Digging into the crash dump, we see the throw occurring inside of DispatcherQueueExtensions.EnqueueAsync with the same stack trace as before:

image

Notably, looking at the stack trace across both crash dumps we've had, it's being consistent about the test failing during DispatcherQueueHelper_Action_Null at this line:

        var task = DispatcherQueue.GetForCurrentThread().EnqueueAsync(default(Action)!);

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants