Skip to content

Conversation

@RobertGlobant20
Copy link
Contributor

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

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.
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-9680

Copy link
Contributor

Copilot AI left a 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.
    }
}

@RobertGlobant20
Copy link
Contributor Author

GIF showing that now is not crashing when C:\ProgramData\Dynamo folder is missing.
mstsc_bEf96O6ZKM

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@QilongTang QilongTang added this to the 4.0 milestone Oct 23, 2025
@QilongTang QilongTang merged commit 90c42bb into DynamoDS:master Oct 23, 2025
24 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 23, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
(cherry picked from commit 90c42bb)
@github-actions
Copy link

Successfully created backport PR for RC4.0.0_master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants