-
Notifications
You must be signed in to change notification settings - Fork 665
DYN-9071 Dynamo - DynamoPlayer - SplashScreen Crash #16759
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
base: master
Are you sure you want to change the base?
DYN-9071 Dynamo - DynamoPlayer - SplashScreen Crash #16759
Conversation
This error happens when the user follow the next steps: - open Dynamo. - open DynamoPlayer. - choose a script in player. - close Dynamo and quickly (when the hourglass cursor is still shown) click Dynamo button, then get a crash and the SplashScreen stays frozen. So as a workaround I added some code in Dynamo SplashScreen that will show a messagebox saying that SplashScreen was not initialized correctly, then after the user clicks Ok, then will close the SplashScreen, in this way, we won't get the crash and the SplashScreen will be closed.
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-9071
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 addresses a crash that occurs in Dynamo's SplashScreen when rapidly reopening Dynamo after using DynamoPlayer. The fix adds defensive null checking for the viewModel and displays an informative error message instead of crashing, then closes the splash screen gracefully.
Key Changes:
- Added null check for
viewModelinOnRequestStaticSplashScreen()method - Added localized error messages to resource files for the splash screen error scenario
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/DynamoCoreWpf/Views/SplashScreen/SplashScreen.xaml.cs | Added null check for viewModel and error message display in OnRequestStaticSplashScreen method |
| src/DynamoCoreWpf/Properties/Resources.resx | Added localized strings for splash screen error title and message |
| src/DynamoCoreWpf/Properties/Resources.en-US.resx | Added English localized strings for splash screen error title and message |
Files not reviewed (1)
- src/DynamoCoreWpf/Properties/Resources.Designer.cs: Language not supported
| MessageBoxImage.Warning | ||
| ); | ||
| }); | ||
| this.Close(); |
Copilot
AI
Dec 1, 2025
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.
The code continues to execute line 150 (StaticSplashScreenReady?.Invoke()) even after closing the splash screen when viewModel is null. Add a return statement after this.Close() to prevent invoking the event on a closed/invalid splash screen.
| this.Close(); | |
| this.Close(); | |
| return; |
Updating MessageBox content
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Hi team, do you have any comment about this changes? |

Purpose
SplashScreen crashing when having opened DynamoPlayer
This error happens when the user follow the next steps:
So as a workaround I added some code in Dynamo SplashScreen that will show a messagebox saying that SplashScreen was not initialized correctly, then after the user clicks Ok, then will close the SplashScreen, in this way, we won't get the crash and the SplashScreen will be closed.
Declarations
Check these if you believe they are true
Release Notes
SplashScreen crashing when having opened DynamoPlayer
Reviewers
@DynamoDS/eidos
FYIs
@achintyabhat