Octave crashes when opening an m file

Asked by Spyros Theodoritsis

When double clicking on an m file Octave opens and crashes immediately. When opening Octave first and then open the m file from menu then no crash occurs.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: octave 4.0.0-3ubuntu5
ProcVersionSignature: Ubuntu 4.2.0-19.23-generic 4.2.6
Uname: Linux 4.2.0-19-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Dec 9 11:23:24 2015
InstallationDate: Installed on 2015-09-23 (76 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: octave
UpgradeStatus: Upgraded to wily on 2015-11-05 (33 days ago)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu octave Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1524251.

Revision history for this message
Mike Miller (mtmiller) said :
#1

Bug description seems better suited to an explanation of why Octave is behaving the way it is.

Revision history for this message
Mike Miller (mtmiller) said :
#2

When an m file is opened with Octave by double-clicking on it, the file is executed as a script. Octave's current behavior when given a script on the command line is to run the script to completion and then exit, similar to how other command interpreters work. The effect of this is that the Octave GUI will appear for the duration of the m file and then exit when it is finished executing. If the m file finishes quickly, it may appear that Octave is starting and crashing immediately, but it is in fact operating correctly.

To execute a script and keep Octave's command window up ready to use interactively, add the --persist option to the command line.

Can you help with this problem?

Provide an answer of your own, or ask Spyros Theodoritsis for more information if necessary.

To post a message you must log in.