-
Notifications
You must be signed in to change notification settings - Fork 668
DYN-9680 Crash Missing Dynamo folder #16633
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-9680 Crash Missing Dynamo folder #16633
Conversation
Due that C:\ProgramData\Dynamo folder is not created any more then the code was expecting that folder to exist so Dynamo was crashing. I moved the code inside the try/catch and also added a validation that just execute the code if the directory exists.
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-9680
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.
Pull Request Overview
This PR fixes a crash that occurs when the C:\ProgramData\Dynamo directory does not exist. The fix moves the directory access code inside the existing try-catch block and adds a validation check to ensure the directory exists before attempting to access it.
Key Changes
- Added directory existence validation before attempting to read XML files
- Moved the try-catch block to encompass the directory access logic
Comments suppressed due to low confidence (1)
src/DynamoCoreWpf/Views/SplashScreen/SplashScreen.xaml.cs:690
- There appears to be an extra closing brace at line 581. The try-catch block should close at line 580, but line 581 suggests an additional scope is being closed that isn't shown in the diff. Verify that the brace structure is correct in the full file context.
}
}
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> (cherry picked from commit 90c42bb)
|
Successfully created backport PR for |

Purpose
Dynamo crashing when C:\ProgramData\Dynamo doesn't exist.
Due that C:\ProgramData\Dynamo folder is not created any more then the code was expecting that folder to exist so Dynamo was crashing. I moved the code inside the try/catch and also added a validation that just execute the code if the directory exists.
Declarations
Check these if you believe they are true
Release Notes
Dynamo crashing when C:\ProgramData\Dynamo doesn't exist.
Reviewers
@QilongTang @zeusongit
FYIs
@jnealb