DYN-7531 Catch WebView2 initialization exception#15685
Conversation
There was a problem hiding this comment.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-7531
| catch (Exception ex) | ||
| { | ||
| Log(ex.Message); | ||
| } |
There was a problem hiding this comment.
any idea what exactly is crashing?
There was a problem hiding this comment.
Agree with @pinzart90 we should know why/what is crashing.
I have seen several times that when opening the latest Dynamo (3.4 or 3.3) the HomePage is NOT being shown and instead the old one is shown but I didn't know exactly why (although is not always happening).
There was a problem hiding this comment.
@RobertGlobant20 @pinzart90 I have removed the feature flag checking code for DynamoHome in 3.4 release, in that case, Dynamo home would always be the default. In the case it was not initialized correctly, then we display the legacy home. Adding such exception logging would help us understand why it was not working
| { | ||
| if (homePage == null && (startPage != null)) | ||
| { | ||
| homePage = new UI.Views.HomePage(); |
There was a problem hiding this comment.
if we handle the crash, will Dynamo be able to continue running ok?
There was a problem hiding this comment.
If the home page is not shown, can Dynamo still be used ?
UI Smoke TestsTest: success. 11 passed, 0 failed. |
|
Another thing to note here is that all of these CER reports are from 3.2.2 release, so I am not sure if the crash is still reproducible in latest Dynamo. |
Purpose
Per CER report https://cer.autodesk.com/search/v2/buckets/52352002, add some code to prevent WebView2 initialization (Dynamo Home) crashing Dynamo.
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
Add some code to prevent WebView2 initialization (Dynamo Home) crashing Dynamo
Reviewers
@DynamoDS/dynamo
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of