Skip to content
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

Heterogeneous list update gives infinite loop #9334

Merged
merged 20 commits into from
Dec 20, 2018

Conversation

reddyashish
Copy link
Contributor

@reddyashish reddyashish commented Dec 20, 2018

Purpose

This PR fixes the bug when using a heterogeneous list in computing some results. It runs into an infinite loop and eventually crashes the Dynamo.

There is a redundant 'for' loop on line: 217 in replicator.cs. This will recursively add unnecessary(duplicate) values to the ReducedParams list in there, which can be avoided.
I did some manual testing for other workflows which involved cartesian and zip replication.

Declarations

Check these if you believe they are true

  • The code base 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.

Reviewers

@aparajit-pratap @mjkkirschner @QilongTang

FYIs

@alfarok @ColinDayOrg

@aparajit-pratap aparajit-pratap added the LGTM Looks good to me label Dec 20, 2018
@aparajit-pratap
Copy link
Contributor

Thanks @reddyashish, LGTM!

@reddyashish reddyashish merged commit 67a19a7 into DynamoDS:master Dec 20, 2018
@QilongTang
Copy link
Contributor

LGTM

reddyashish added a commit that referenced this pull request Jan 2, 2019
reddyashish added a commit to reddyashish/Dynamo that referenced this pull request Jan 2, 2019
reddyashish added a commit that referenced this pull request Jan 2, 2019
* Revert "Remove and Sort Usings (#9352)"

This reverts commit 8afcde0.

* Revert "Bump Version Number and RevisionNumber time baseline (#9336)"

This reverts commit 24c4e77.

* Revert "Heterogeneous list update gives infinite loop (#9334)"

This reverts commit 67a19a7.
QilongTang pushed a commit that referenced this pull request Jan 2, 2019
mjkkirschner added a commit that referenced this pull request Jan 3, 2019
mjkkirschner added a commit that referenced this pull request Jan 3, 2019
…1" (#9359)

* Revert "Revert "Heterogeneous list update gives infinite loop (#9334)" (#9355)"

This reverts commit dea378c.

* Revert "fix merge conflicts (#9357)"

This reverts commit 1995db0.
QilongTang pushed a commit that referenced this pull request Jan 11, 2019
* Revert "Heterogeneous list update gives infinite loop (#9334)"

This reverts commit 67a19a7.

* Obsoleting Surface.Join Node. (#9399)

* Add check for invalid cutom node name

https://jira.autodesk.com/browse/QNTM-3928

* Removing trailing spaces

* Moving the function to utilities class

* Revert "Merge branch 'master' of https://github.com/DynamoDS/Dynamo"

This reverts commit 085fb51, reversing
changes made to d055de4.

* Revert "Revert "Merge branch 'master' of https://github.com/DynamoDS/Dynamo""

This reverts commit 12538ab.

* Adding tests - QNTM-3928

* Comments

* Moving the test to NodeViewCustomizationTests.cs

* Deleting changes to SerializationTests.cs

* Create SerializationTests.cs

* Update SerializationTests.cs

* moving the test to UtilityTests.ca

* Heterogeneous list update gives infinite loop

DYN-1198

* Moving the test dyn file

* Revert "Moving the test dyn file"

This reverts commit d91009e.

* Revert "Heterogeneous list update gives infinite loop"

This reverts commit e8d7b8a.

* making Surface.join node obsolete

* Revert "making Surface.join node obsolete"

This reverts commit 1458b46.

* Obsoleting Surface,Join node.

Use Polysurface.ByJoinedSurfaces node instead.

* Renaming test file.

(cherry picked from commit dee10b6)

* Updating the file name related to DYN-1043 (Obsoleting surface.join node) (#9410)

* Add check for invalid cutom node name

https://jira.autodesk.com/browse/QNTM-3928

* Removing trailing spaces

* Moving the function to utilities class

* Revert "Merge branch 'master' of https://github.com/DynamoDS/Dynamo"

This reverts commit 085fb51, reversing
changes made to d055de4.

* Revert "Revert "Merge branch 'master' of https://github.com/DynamoDS/Dynamo""

This reverts commit 12538ab.

* Adding tests - QNTM-3928

* Comments

* Moving the test to NodeViewCustomizationTests.cs

* Deleting changes to SerializationTests.cs

* Create SerializationTests.cs

* Update SerializationTests.cs

* moving the test to UtilityTests.ca

* Heterogeneous list update gives infinite loop

DYN-1198

* Moving the test dyn file

* Revert "Moving the test dyn file"

This reverts commit d91009e.

* Revert "Heterogeneous list update gives infinite loop"

This reverts commit e8d7b8a.

* making Surface.join node obsolete

* Revert "making Surface.join node obsolete"

This reverts commit 1458b46.

* Obsoleting Surface,Join node.

Use Polysurface.ByJoinedSurfaces node instead.

* Renaming test file.

* Updating file name

(cherry picked from commit 219baa8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM Looks good to me
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants