Skip to content

Conversation

@QilongTang
Copy link
Contributor

@QilongTang QilongTang commented Jun 11, 2024

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,
image

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

  • 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

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

@QilongTang QilongTang added this to the 3.3 milestone Jun 11, 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-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;
Copy link
Contributor Author

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

Copy link
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link

github-actions bot commented Jun 11, 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 requested a review from pinzart90 June 11, 2024 15:39
@pinzart90
Copy link
Contributor

@QilongTang were we able to reproduce this crash ?
If yes, we might want a test for it.
If no, bummer

@QilongTang
Copy link
Contributor Author

@QilongTang were we able to reproduce this crash ? If yes, we might want a test for it. If no, bummer

I was not able to reproduce it, the fix is based on CER report (without steps included)

@QilongTang
Copy link
Contributor Author

@QilongTang QilongTang merged commit 19295df into master Jun 11, 2024
@QilongTang QilongTang deleted the LibraryViewInitializationCrash branch June 11, 2024 20:40
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.

5 participants