-
Notifications
You must be signed in to change notification settings - Fork 635
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
don't initialize the direct manipulation extension when asm is not loaded #13219
Conversation
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.
LGTM!
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.
@mjkkirschner can we prevent loading the DM view extension altogether if ASM fails to preload? I think @QilongTang did this for the guided tour, if I'm not wrong.
dont startup or call loaded on dm extension if asm not loaded
thanks @aparajit-pratap for correcting my misunderstanding here - I attempted to resolve both suggestions you gave. |
tests passed on latest commit here: https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/6802/ |
manipulatorDaemon = ManipulatorDaemon.Create(new NodeManipulatorFactoryLoader()); | ||
} | ||
|
||
public void Loaded(ViewLoadedParams viewLoadedParams) | ||
{ | ||
if (!viewLoadedParams.StartupParams.IsGeometryLibraryLoaded) |
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.
Do we need the IsGeometryLibraryLoaded
check in both Startup
and Loaded
functions?
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.
yes, I'd like to avoid partially initializing as much as possible.
Purpose
Dynamo crashes when LibG is not loaded and a direct manipulator is created.
https://jira.autodesk.com/browse/DYN-5023
IsASMLoaded
is false.IsASMLoaded
is accurate in all situations, it seems to really only be set in CLI or sandbox startup - but thats probably sufficient since in-process hosts preload ASM themselves in most cases.I will send another PR with a test - want to get this in first.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Fixed crash when node was moved which was going to create direct manipulator.
Reviewers