Skip to content

Conversation

@zeusongit
Copy link
Contributor

Purpose

In some cases, when splash screen is closed right before it is done with loading Dynamo View (last step), it crashes. It is rare to reproduce since the window is pretty small, still I was able to reproduce this once or twice.

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

Handle crash when closing splash screen after DynamoView load

Reviewers

@zeusongit zeusongit changed the title Handle crash when closing splash screen after DynamoView load DYN-8749 Handle crash when closing splash screen after DynamoView load Apr 29, 2025
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-8749

Copy link
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zeusongit zeusongit merged commit 3bd3a1a into DynamoDS:master May 5, 2025
23 of 27 checks passed
await webView.CoreWebView2.ExecuteScriptAsync($"window.setLoadingDone()");
await webView.CoreWebView2.ExecuteScriptAsync($"window.setTotalLoadingTime(\"{Wpf.Properties.Resources.SplashScreenTotalLoadingTimeLabel} {totalLoadingTime}ms\")");
SetSignInEnable(enableSignInButton);
Console.WriteLine(ex.Message);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Dynamo continue to load safely if the exception thrown by prematurely closing the splash screen is caught here?

Copy link
Contributor Author

@zeusongit zeusongit May 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes..well I mean crash happens when closing Splash screen, just before Dynamo is loaded, so by handling it here it won't crash Revit, and Dynamo will continue to shutdown.

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.

4 participants