JuliaInterop / JuliaInterop/MATLAB.jl

Restart Matlab Session after fatal error exit

Open
#204 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
286
Forks
64
PR merge metrics
No merged PRs in 30d

Description

Is it possible to restart the default matlab session in the REPL after it exited due to a fatal error without actually restarting the whole REPL?

When I try MATLAB.restart_default_msession() or MATLAB.close_default_msession() I only get
MATLAB.MEngineError("failed to close MATLAB engine session (err = 1)").

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing MATLAB.restart_default_msession() and MATLAB.close_default_msession() through the default MATLAB session handling. Reproduce the fatal-error state and determine what is needed for the default session to restart without restarting the REPL; done means the restart succeeds instead of raising MATLAB.MEngineError.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, matlab
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.