Skip to content

Conversation

@ivaylo-matov
Copy link
Contributor

PR aims to address DYN-7697 where enabling Periodic mode in TuneUp causes Dynamo to crash.

From what I can see this occurs when:

  • TuneUp is enabled
  • Periodic graph is opened
  • Periodic mode is enabled -> Crash
    Please let me know if there are other scenarios where this crash might happen.

Dynamo was crashing because ResetProfiledNodes was trying to clear node collections that belonged to a different thread than the Dispatcher. I wrapped ResetProfiledNodes in uiContext.Send, which seems to solve this issue.

Please note that TuneUp will still enforce Manual mode when a new graph is opened.

Checked if this change does not break Dynamo in Civils3D. Seems okay.

PeriodicModeCrahes

@QilongTang
@reddyashish

@dnenov
@Amoursol

@reddyashish reddyashish merged commit 7b8ee03 into DynamoDS:master Oct 31, 2024
@ivaylo-matov ivaylo-matov changed the title Update TuneUpWindowViewModel.cs [DYN-7697] Crash with Periodic Run Nov 1, 2024
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.

3 participants