Skip to content

Structure_Engine: Fix stack overflow exception for Area for FEMesh #3330

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

Merged
merged 9 commits into from
Apr 23, 2024

Conversation

IsakNaslundBh
Copy link
Contributor

Issues addressed by this PR

Closes #3323

Found by investigating issue with unit tests. Problem was a real stack overflow exception in the area method for the FEMesh.

All structural dataset re-serialised to account for the change from StartNode to Start etc on the bars.

Test files

Unit-tests should now run.

Changelog

Additional comments

Many behind the upgrade from removing the Node name from start end performed in #3236
Simply re-serialising all of them to make sure they are up to date and do not need versioning to deserialise
Issue stemming from c65b01f where the call to extract the geometry from the FEMesh was removed, and the method instead was changed to simply call itself.
Correcting namespace of Elements0D for the pile class as that was assigned wrong namespace, which in turn was making it impossible to reach the code for extracting the geometry for the FEMesh
@IsakNaslundBh IsakNaslundBh added the type:bug Error or unexpected behaviour label Apr 15, 2024
@IsakNaslundBh IsakNaslundBh self-assigned this Apr 15, 2024
@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check compliance
@BHoMBot check unit-tests

Copy link

bhombot-ci bot commented Apr 15, 2024

@IsakNaslundBh to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance
  • check unit-tests

@IsakNaslundBh
Copy link
Contributor Author

IsakNaslundBh commented Apr 15, 2024

@BHoMBot check unit-tests

Copy link

bhombot-ci bot commented Apr 15, 2024

@IsakNaslundBh to confirm, the following actions are now queued:

  • check unit-tests

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check unit-tests

Copy link

bhombot-ci bot commented Apr 15, 2024

@FraserGreenroyd to confirm, the following actions are now queued:

  • check unit-tests

There are 2 requests in the queue ahead of you.

downgrading again due to some serialisation issues
Copy link

bhombot-ci bot commented Apr 22, 2024

@IsakNaslundBh to confirm, the following actions are now queued:

  • check unit-tests

…sues. Difference showcased affects 12 significant figure, hence no real difference
UTs started failing after change of IsPlanar methodology in #3298
For this, the panels have been made planar by projected them to their plane. Panels failing where out of plane by ~2e-6, hence tests should still be valid.
Copy link

bhombot-ci bot commented Apr 22, 2024

@IsakNaslundBh to confirm, the following actions are now queued:

  • check unit-tests

@IsakNaslundBh
Copy link
Contributor Author

Have tried to get all structures UTs working as intended now.

The only one still failing locally is the Cellular section, and that is a serialisation issue rather than a UT issue.

It is coming from the change to how the name is handled in #3144 . Where the obejct returned has an empty name, but when serialised and de-serialised it comes back with a null name.

Might be worth raising an issue for, not sure. Could potentially set names on deserialization to emtpy strings rather than null, but that could cause similar issues the other way around. Other otption would be to roll back the change for the name made in the linked PR, or make it onyl skip name if null, rather than NullOrEMpty.
Nontheless, out of scope for this particular PR.

@IsakNaslundBh
Copy link
Contributor Author

The Bot seem to agree with me. Think this can be reviewed now. Only failing UT for structures is the one I mentioned above. The rest is also to be fixed, but not in this PR, but should be fixed by the corresponding code owners, which is @IsakNaslundBh , @alelom @peterjamesnugent @FraserGreenroyd (See current failing tests)

Copy link
Member

@pawelbaran pawelbaran left a comment

Choose a reason for hiding this comment

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

Happy to approve following the review session with @IsakNaslundBh

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check compliance
@BHoMBot check required

Copy link

bhombot-ci bot commented Apr 23, 2024

@IsakNaslundBh to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance
  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

Copy link

bhombot-ci bot commented Apr 23, 2024

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

Copy link

bhombot-ci bot commented Apr 23, 2024

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

Copy link

bhombot-ci bot commented Apr 23, 2024

FAO: @FraserGreenroyd
@pawelbaran is seeking dispensation on this Pull Request to skip a required check. Please can you provide authorisation for the check to be skipped, or provide assistance as appropriate.

The check they wish to have dispensation on is unit-tests.

If you are providing dispensation on this occasion, please reply with:

@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 24100093353

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 24100093353

Copy link

bhombot-ci bot commented Apr 23, 2024

@IsakNaslundBh I have now provided a passing check on reference 24100093353 as requested.

@IsakNaslundBh
Copy link
Contributor Author

Providing dispensation as of comment here: #3330 (comment)

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check ready-to-merge

Copy link

bhombot-ci bot commented Apr 23, 2024

@IsakNaslundBh to confirm, the following actions are now queued:

  • check ready-to-merge

@IsakNaslundBh IsakNaslundBh merged commit 2f80210 into develop Apr 23, 2024
@IsakNaslundBh IsakNaslundBh deleted the Structure_Engine-#3323-FixFailingUnitTests branch April 23, 2024 08:01
@bhombot-ci bhombot-ci bot mentioned this pull request Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate unit tests not working for Structure_Engine
3 participants