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-6995 Crash When Changing Language #15254

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Dynamo for Revit crashing when inserting a graph after the language was changed
This problem is happening only in Dynamo Revit and happens due that the DynamoCore.dll is not being localized when inserting a graph (which contains a group) is trying to find a default group with a localized name but is not found then is making the code to crash. With this fix I'm forcing to assign a group even when the default group is not found.

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 for Revit crashing when inserting a graph after the language was changed

Reviewers

@QilongTang

FYIs

This problem is happening only in Dynamo Revit and happens due that the DynamoCore.dll is not being localized when inserting a graph (which contains a group) is trying to find a default group with a localized name but is not found then is making the code to crash.
With this fix I'm forcing to assign a group even when the default group is not found.
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-6995

@RobertGlobant20
Copy link
Contributor Author

GIF before my fix when inserting the graph is crashing
Revit_fUoh1tyORw

@RobertGlobant20
Copy link
Contributor Author

GIF after my fix.
Revit_uMAxJJXHvJ

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 28, 2024
@QilongTang QilongTang merged commit 5cb57c8 into DynamoDS:master May 28, 2024
25 checks passed
@QilongTang
Copy link
Contributor

QilongTang commented May 28, 2024

Given the common crash reason, please also cherry-pick to RC3.2 branch

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