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-6991 crash report groups change #15239

Merged

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Dynamo Crash when the ViewModelBases is null
By checking the StackTrace of this report the System.Linq.ThrowHelper.ThrowArgumentNullException is send when trying to execute the next Linq instruction:
ViewModelBases.OfType<AnnotationViewModel>().ToList().ForEach(x => UpdateGroupCutGeometry(x));
So when ViewModelBases is null the exception is thrown.
I was trying to reproduce the behavior adding groups, group inside groups, moving the groups and nodes inside it but the crash was not generated then by checking the code the only way that ViewModelBases could be null is if the AnnotationModel doesn't contain the nodes/connectors in WorkspaceViewModel but this scenario was not reproducible.

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

Dynamo Crash when the ViewModelBases is null

Reviewers

@QilongTang

FYIs

@pinzart90 @avidit

When moving groups inside Dynamo there was a crash but is not reproducible based in the information from the Report and Stack trace.
Then with this validation we are validating that is not null and if is null then try to set the ViewModelBases again.
Adding code for just preventing the crash, there is no way to reproduce the steps done by the user and the report stacktrace doesn't give enough detail for this crash.
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-6991

Copy link

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 added this to the 3.2 milestone May 23, 2024
@QilongTang
Copy link
Contributor

@QilongTang QilongTang merged commit 4315719 into DynamoDS:master May 23, 2024
24 of 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