Skip to content

fix: Issue with parallel pyMechanical instance on linux#1654

Merged
koubaa merged 3 commits into
mainfrom
fix/linux_parallel_issues_mainwin
Jun 10, 2026
Merged

fix: Issue with parallel pyMechanical instance on linux#1654
koubaa merged 3 commits into
mainfrom
fix/linux_parallel_issues_mainwin

Conversation

@wsharp-ansys

Copy link
Copy Markdown
Contributor

Summary

Fixes issues seen in workflows where numerous pyMechanical instances are started in parallel at the same time and exceptions or crashes are seen when Mechanical is starting.

Fixes #1653

Changes

-MWSUB_SPACE environment variable added before Mechanical starts. It needs to be a unique alpha-numeric value which will be assigned to each new instance of pyMechanical that starts. This is a mainwin variable that will assign a sub-space of memory for each Mechanical instance started through pyMechanical. It can be disabled through MWSUB_SPACE_OFF=1 variable.

Visual of the change:
image

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Checklist

  • Title follows Conventional Commits (e.g. feat: add modal analysis support)
  • Tests added or updated
  • Documentation updated

…allel instances of pyMechanical and fix frequent memory issues during Mechanical startup
@wsharp-ansys wsharp-ansys requested a review from a team as a code owner June 10, 2026 16:28
@github-actions github-actions Bot added the bug Something isn't working label Jun 10, 2026
@codacy-production

codacy-production Bot commented Jun 10, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation +0.00% coverage variation (-1.00%)
Diff coverage diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (5c3559d) 3321 2680 80.70%
Head commit (e5069be) 3321 (+0) 2680 (+0) 80.70% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1654) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 10, 2026
@github-actions

Copy link
Copy Markdown

The documentation for this pull request will be available at https://mechanical.docs.pyansys.com/pull/1654. Please allow some time for the documentation to be deployed.

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.69%. Comparing base (5c3559d) to head (e5069be).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1654   +/-   ##
=======================================
  Coverage   80.69%   80.69%           
=======================================
  Files          43       43           
  Lines        3321     3321           
=======================================
  Hits         2680     2680           
  Misses        641      641           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koubaa koubaa merged commit bbea02e into main Jun 10, 2026
71 checks passed
@koubaa koubaa deleted the fix/linux_parallel_issues_mainwin branch June 10, 2026 17:55
@pyansys-ci-bot

Copy link
Copy Markdown
Contributor

This PR has been closed. Documentation for this pull request will shortly be removed from its former deployment address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parallel instances of Mechanical encounter issues/crash during startup

4 participants