-
Notifications
You must be signed in to change notification settings - Fork 635
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-7055 Library view initialization crash #15307
Conversation
There was a problem hiding this 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-7055
double zoomFactor = ((double)dynamoViewModel.Model.PreferenceSettings.LibraryZoomScale / 100d); | ||
|
||
//The default value of the zoom factor is 1.0. The value that comes from the slider is in percentage, so we divide by 100 to be equivalent | ||
browser.ZoomFactor = (double)dynamoViewModel.Model.PreferenceSettings.LibraryZoomScale / 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ZoomFactor is calculated twice, this is also fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
UI Smoke TestsTest: success. 2 passed, 0 failed. |
@QilongTang were we able to reproduce this crash ? |
I was not able to reproduce it, the fix is based on CER report (without steps included) |
Purpose
Per https://jira.autodesk.com/browse/DYN-7055, library view initialization could crash at the end of it by looking at the call stacks from v3.0.3,
see https://github.com/DynamoDS/Dynamo/blob/RC3.0.3_master/src/LibraryViewExtensionWebView2/LibraryViewController.cs#L397C34-L397C51
According to the callstack, it would be worth to put more code into the try-catch in the function than just the navigate function
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Fix a potential Library view initialization crash on Dynamo 3.0.3
Reviewers
@DynamoDS/dynamo
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of