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-5245-DynamoRevit-Crash-WhenExiting #13299

Merged
merged 2 commits into from
Sep 7, 2022
Merged

DYN-5245-DynamoRevit-Crash-WhenExiting #13299

merged 2 commits into from
Sep 7, 2022

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Fixing crash in Dynamo for Revit when exiting Dynamo and notifications are displayed.
I added some code for stopping the WebView2 instance when Dynamo is being closed because otherwise is crashing and also not loading the notifications. Also the Dispose method was deleted due that we are doing the same in the new method added SuspendCoreWebviewAsync.

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

Release Notes

Fixing crash in Dynamo for Revit when exiting Dynamo and notifications are displayed.

Reviewers

@QilongTang

FYIs

I added some code for stopping the WebView2 instance when Dynamo is being closed because otherwise is crashing and also not loading the notifications.
Also the Dispose method was deleted due that we are doing the same in the new method added SuspendCoreWebviewAsync.
Removing call to TrySuspendAsync();
@RobertGlobant20
Copy link
Contributor Author

This is a GIF showing that is not crashing after closing Dynamo with notifications opened (@QilongTang notice that the second time that I open Dynamo in my computer is not loading notifications, it happens randomly)
DynamoRevit__Crash_WhenExiting

@QilongTang QilongTang merged commit 3864a3e into DynamoDS:master Sep 7, 2022
@QilongTang QilongTang deleted the DYN-5245-DynamoRevit-Crash-WhenExiting branch September 7, 2022 03:27
QilongTang pushed a commit that referenced this pull request Sep 7, 2022
* DYN-5245-Revit-NotificationCenter-Crashing

I added some code for stopping the WebView2 instance when Dynamo is being closed because otherwise is crashing and also not loading the notifications.
Also the Dispose method was deleted due that we are doing the same in the new method added SuspendCoreWebviewAsync.

* DYN-5245-Revit-NotificationCenter-Crashing

Removing call to TrySuspendAsync();
@QilongTang QilongTang mentioned this pull request Sep 7, 2022
8 tasks
QilongTang added a commit that referenced this pull request Sep 7, 2022
* DYN-5245-DynamoRevit-CreateCustom UserDataFolder (#13293)

* DYN-5245-Revit-NotificationCenter-Crashing

Added code for create the WebView2 cache folder in the AppData location because when tries to create it inside C:\Program Files\Autodesk\Revit 2023\AddIns\DynamoForRevit is crashing due to permissions.

* DYN-5245-Revit-NotificationCenter-Crashing Code Review

Not using await for initializing WebView2

* DYN-5245-DynamoRevit-Crash-WhenExiting (#13299)

* DYN-5245-Revit-NotificationCenter-Crashing

I added some code for stopping the WebView2 instance when Dynamo is being closed because otherwise is crashing and also not loading the notifications.
Also the Dispose method was deleted due that we are doing the same in the new method added SuspendCoreWebviewAsync.

* DYN-5245-Revit-NotificationCenter-Crashing

Removing call to TrySuspendAsync();

Co-authored-by: Roberto T <[email protected]>
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