Skip to content

Conversation

@QilongTang
Copy link
Contributor

Purpose

Per https://jira.autodesk.com/browse/DYN-6993, add crash protection to DynamoMessageBox display code during window owner assignment.

Here is the crash callstack

presentationframework!_NA_::System.Windows.Window.set_Owner(System.Windows.Window)
dynamocorewpf!_NA_::Dynamo.UI.Prompts.DynamoMessageBox.Show(System.Windows.Window, System.String, System.String, System.Windows.MessageBoxButton, System.Windows.MessageBoxImage)
dynamocorewpf!_NA_::Dynamo.Wpf.Utilities.MessageBoxService+DefaultMessageBox.Show(System.Windows.Window, System.String, System.String, System.Windows.MessageBoxButton, System.Windows.MessageBoxImage)
dynamocorewpf!_NA_::Dynamo.Wpf.Utilities.MessageBoxService.Show(System.Windows.Window, System.String, System.String, System.Windows.MessageBoxButton, System.Windows.MessageBoxImage)
dynamocorewpf!_NA_::Dynamo.Controls.DynamoView.DynamoViewModelRequestUserSaveWorkflow(System.Object, Dynamo.ViewModels.WorkspaceSaveEventArgs)
dynamocorewpf!_NA_::Dynamo.ViewModels.DynamoViewModel.OnRequestUserSaveWorkflow(System.Object, Dynamo.ViewModels.WorkspaceSaveEventArgs)
dynamocorewpf!_NA_::Dynamo.ViewModels.DynamoViewModel.AskUserToSaveWorkspacesOrCancel(Boolean)
dynamocorewpf!_NA_::Dynamo.ViewModels.DynamoViewModel.PerformShutdownSequence(ShutdownParams)
dynamocorewpf!_NA_::Dynamo.Controls.DynamoView.PerformShutdownSequenceOnViewModel()
dynamocorewpf!_NA_::Dynamo.Controls.DynamoView.WindowClosed(System.Object, System.EventArgs)
presentationframework!_NA_::System.Windows.Window.WmDestroy()

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

Add crash protection to DynamoMessageBox display code during window owner assignment.

Reviewers

@DynamoDS/dynamo

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

@QilongTang QilongTang added this to the 3.2 milestone May 22, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-6993

@github-actions
Copy link

github-actions bot commented May 22, 2024

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

@QilongTang QilongTang merged commit 2a1c187 into master May 23, 2024
@QilongTang QilongTang deleted the WindowOwnerCrash branch May 23, 2024 15:05
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.

4 participants