You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In doing so it decides it already has created an HWND (not sure why, this is the first time it tried to show me any authentication dialog). Because of that it creates an ObjectDisposedException (but does not throw it).
It then queues the ObjectDisposedException as a result for anyone waiting on UI thread callbacks registered through the control (presumably because they were tied to the window it is about to destroy).
Then, one such callback encounters the exception, it is thrown, and crashes PerfView along this (abbreviated, simplified) callstack:
I am MSFT internal and have heap dumps both when the ODE is created and when the app crashes due to it getting thrown and no one handling it. You can contact me internally at rmolden.
Relevant code snippets
No response
Expected behavior
Not to crash the app using the dialog
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered:
ryanmolden
changed the title
ObjectDisposedException crashes app using WindowsFormsWebAuthenticationDialog
[Bug] ObjectDisposedException crashes app using WindowsFormsWebAuthenticationDialog
Sep 11, 2024
Library version used
4.61.3
.NET version
net462
Scenario
PublicClient - desktop app
Is this a new or an existing app?
The app is in production, and I have upgraded to a new version of MSAL
Issue description and reproduction steps
This is a crash in Perfview. Specifically, this (abbreviated, simplified) callstack tries to show a dialog:
In doing so it decides it already has created an HWND (not sure why, this is the first time it tried to show me any authentication dialog). Because of that it creates an ObjectDisposedException (but does not throw it).
It then queues the ObjectDisposedException as a result for anyone waiting on UI thread callbacks registered through the control (presumably because they were tied to the window it is about to destroy).
Then, one such callback encounters the exception, it is thrown, and crashes PerfView along this (abbreviated, simplified) callstack:
I am MSFT internal and have heap dumps both when the ODE is created and when the app crashes due to it getting thrown and no one handling it. You can contact me internally at rmolden.
Relevant code snippets
No response
Expected behavior
Not to crash the app using the dialog
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered: