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 Processing Message 0xc0000005 - Unexpected Parameters after installing #16666

Closed
1 task
hossimo opened this issue Mar 1, 2022 · 8 comments
Closed
1 task
Assignees
Labels
External Dependency-WinUI 3 Dependency on WinUI Issue-Bug Something isn't working Product-Settings The standalone PowerToys Settings application Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@hossimo
Copy link

hossimo commented Mar 1, 2022

Microsoft PowerToys version

0.56.1

Running as admin

  • Yes

Area(s) with issue?

Welcome / PowerToys Tour window

Steps to reproduce

  • Installed 0.56.1 overtop of 0.55.2
  • Closed the welcome window after the updated version runs the first time.
    image

After dismissing the error Powertools was still running in the tray and seemed to be working.

✔️ Expected Behavior

No Exception

❌ Actual Behavior

Exception Processing Message 0xc0000005

Other Software

N/A

@hossimo hossimo added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 1, 2022
@jaimecbernardo
Copy link
Collaborator

/bugreport

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 1, 2022
@ghost
Copy link

ghost commented Mar 1, 2022

Hi there!

We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
Report Bug

@hossimo
Copy link
Author

hossimo commented Mar 1, 2022

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 1, 2022
@jaimecbernardo
Copy link
Collaborator

While I can't replicate the messagebox and I don't see this in the bug report event viewer logs, I'm able to get a crash in the settings app.
Here's how I do it:
1 - Open the settings.
2 - Open the "Welcome to PowerToys" window.
3 - Close the "Welcome to PowerToys" window.
4 - Close the settings window.

It adds an error event to Event Viewer.

@jaimecbernardo jaimecbernardo added Product-Settings The standalone PowerToys Settings application and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Mar 1, 2022
@jaimecbernardo jaimecbernardo added this to To do in 0.57 Release via automation Mar 1, 2022
@hossimo
Copy link
Author

hossimo commented Mar 1, 2022

That's the exact issue I had with the addition of steps 1 and 4.

I don't believe I had the settings window open during the install of the upgrade, but when that "Welcome to PowerToys" window popped up after the first run and soon as I closed it I had the same crash.

@jaimecbernardo jaimecbernardo self-assigned this Mar 3, 2022
@jaimecbernardo jaimecbernardo added the Status-In progress This issue or work-item is under development label Mar 3, 2022
@jaimecbernardo
Copy link
Collaborator

Making some notes here.
What's happening is that in https://github.com/microsoft/microsoft-ui-xaml/blob/82feccfdd44a5834332b9bf866dc9334407a6f99/dev/Materials/Backdrop/BackdropMaterial.cpp#L64-L69
m_connectedBrushCount is still > 0 because it was not cleaned when closing the OOBE window and current window ends up being null, which is not checked against in MicaController::SetTarget, trying to access a null pointer.

@jaimecbernardo
Copy link
Collaborator

Tried to add an handler for these exceptions is not supported in .net core: https://docs.microsoft.com/en-us/dotnet/api/system.runtime.exceptionservices.handleprocesscorruptedstateexceptionsattribute?view=net-6.0#remarks
This means fixing this crash might need to wait for proper WinUI 3 support and upgrade to .net framework 6.

@crutkas crutkas moved this from To do to In progress in 0.57 Release Mar 9, 2022
@jaimecbernardo jaimecbernardo added External Dependency-WinUI 3 Dependency on WinUI Status-Blocked We can't make progress due to a dependency or issue labels Mar 25, 2022
@crutkas crutkas added this to To do in 0.58 Release via automation Apr 1, 2022
@crutkas crutkas removed this from In progress in 0.57 Release Apr 1, 2022
@Aaron-Junker Aaron-Junker moved this from To do to In progress in 0.58 Release Apr 16, 2022
@jaimecbernardo
Copy link
Collaborator

This was fixed by the WinUI 3 port of Settings. I no longer replicate it locally.

@jaimecbernardo jaimecbernardo moved this from In progress to Done in 0.58 Release Apr 26, 2022
@jaimecbernardo jaimecbernardo removed the Status-In progress This issue or work-item is under development label Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Dependency-WinUI 3 Dependency on WinUI Issue-Bug Something isn't working Product-Settings The standalone PowerToys Settings application Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
No open projects
Development

No branches or pull requests

2 participants