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

DYN-7218 Revit Crash FileTrust Popup #15405

Merged

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Fixing Revit Crash when closing the FileTrust Popup
Under a specific case when the FileTrust Popup is visible and Dynamo is closed the Popup remains open then if the user clicks any button Revit crashes. For fixing this problem I've added a piece of code that will be closing the FileTrust Popup when Dynamo is closed.

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

Fixing Revit Crash when closing the FileTrust Popup

Reviewers

@QilongTang

FYIs

Under a specific case when the FileTrust Popup is visible and Dynamo is closed the Popup remains open then if the user clicks any button Revit crashes.
For fixing this problem I've added a piece of code that will be closing the FileTrust Popup when Dynamo is closed.
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-7218

@RobertGlobant20
Copy link
Contributor Author

This GIF is showing the steps when Revit is crashing
Revit_Crashing

@RobertGlobant20
Copy link
Contributor Author

This GIF shows that after my fix is not crashing.
Revit_CrashFix

Copy link

github-actions bot commented Jul 22, 2024

UI Smoke Tests

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

if(fileTrustWarningPopup != null && fileTrustWarningPopup.IsOpen)
{
fileTrustWarningPopup.IsOpen = false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

hi @RobertGlobant20 I understand the intention here, but again since the TrustWarningPopup being the only exception here (a specific close), I had to ask why it can't be closed like the other popups? We should have plenty other instances, e.g. incanvas search, notification center, guided tour?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QilongTang I noticed that this code is not needed due that there is already funcionality closing the Popup when Dynamo is closed.
But related to your question, the fileTrustWarningPopup is begin hidden/shown depending if Dynamo window is Active or not, if you are aware about any problem in NotificationCenter or GuidedTour popups please let me know so I can investigate more about it.

I noticed that there is no need to close directly the fileTrustWarningPopup due that there is already functionality that is doing that.
So I just had to set the FileTrustViewModel.DynFileDirectoryName for the SaveAs functionality and the Popup will be closed automatically when closing Dynamo.
@QilongTang QilongTang added this to the 3.3 milestone Jul 23, 2024
@QilongTang QilongTang merged commit fdd424a into DynamoDS:master Jul 23, 2024
25 checks passed
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.

2 participants