Skip to content

Fix hangs and leaks found in pre-release example smoke run - #45

Merged
FrancescaWatson merged 1 commit into
mainfrom
claude/fix-example-smoke-hangs
Oct 9, 2026
Merged

FrancescaWatson merged 1 commit into
mainfrom
claude/fix-example-smoke-hangs

Conversation

@FrancescaWatson

Copy link
Copy Markdown
Contributor
  • evalFunWrapper: pass the MRST root (one level above ROOTDIR) as the startup path. startup.m no longer lives in core/, so every background session failed immediately and callers (e.g. ensemble 'background' simulation) waited forever for progress files to be removed.
  • dfm_and_dual_porosity: clear figures before redrawing each time step. plotCellData adds a new patch per call, so the figures accumulated ~600 patches and the renderer grew to tens of GB.
  • MRSTExampleTests: pass the script name to runScoped via varargin so the example workspace has no 'name' variable. Examples that use exist('name', 'var') were picking up their own file name.

- evalFunWrapper: pass the MRST root (one level above ROOTDIR) as the
  startup path. startup.m no longer lives in core/, so every background
  session failed immediately and callers (e.g. ensemble 'background'
  simulation) waited forever for progress files to be removed.
- dfm_and_dual_porosity: clear figures before redrawing each time step.
  plotCellData adds a new patch per call, so the figures accumulated
  ~600 patches and the renderer grew to tens of GB.
- MRSTExampleTests: pass the script name to runScoped via varargin so the
  example workspace has no 'name' variable. Examples that use
  exist('name', 'var') were picking up their own file name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@FrancescaWatson
FrancescaWatson merged commit fa4ff98 into main Oct 9, 2026
1 check passed
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.

1 participant