bugGNU Octave - Bugs: bug #41280, GUI crash when restoring...


bug #41280: GUI crash when restoring non-existing file from previous session

Submitted by:  None
Submitted on:  Sun 19 Jan 2014 02:47:56 PM UTC  
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  3.8.0
Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Sun 16 Feb 2014 05:08:26 PM UTC, comment #7: 
Torsten Lilge <ttl>
Project Member
Mon 10 Feb 2014 07:41:36 PM UTC, comment #6: 

The attached (quite simple) patch fixes the bug on my Win 7 system. Could you test it on your system please?

(file #30500)

Torsten Lilge <ttl>
Project Member
Fri 07 Feb 2014 08:46:42 AM UTC, comment #5: 

Bug #41493 marked as duplicate of this one.

Torsten Lilge <ttl>
Project Member
Mon 27 Jan 2014 09:34:24 PM UTC, comment #4: 

I am able to confirm this, too. I would like to make some tests but I have trouble building an mxe build of the actual stable branch. When I use the original octave package downloaded during the mxe-build, the files


are installed and configure results in (all paths abbreviated and relative to the mxe-directory)

Java CPPFLAGS: -Iusr/i686-pc-mingw32/include/java/include -Iusr/i686-pc-mingw32/include/java/include/win32

Using the result of "make dist" for an mxe build I get

Java CPPFLAGS: -Iusr/i686-pc-mingw32/include/java -Iusr/i686-pc-mingw32/include/java/win32

which does not match the installation dirs. Any clues what might be wrong?

Torsten Lilge <ttl>
Project Member
Mon 20 Jan 2014 04:31:57 AM UTC, comment #3: 

I am able to confirm this crash on WinXP with an MXE build of Octave 3.8.0. Doesn't matter whether I answer yes or no to the dialog asking to create the missing file, Octave crashes either way. Restoring the file is the only way to get Octave to run again without crashing.

Mike Miller <mtmiller>
Project Administrator
Sun 19 Jan 2014 05:15:17 PM UTC, comment #2: 

1) Yes, if you press yes, it will also crash, but it will create a 0-byte file first, so on the next try it will start.
2) not sure how I can test that. It will either crash or the file is existent.
3) No, it will ask you if to create or not. This dialog works as expected. "Yes" will create new file.

4) If I close the docked editor window right before I close Octave, it will not crash when I reopen Octave.
The crash does not depend if the Editor window is docked or floating. If it is open, it will crash when I restart Octave.

Only the dialog when restoring the session makes it crash.

Sun 19 Jan 2014 04:47:34 PM UTC, comment #1: 

This works on my Ubuntu machine. Some questions:

  • Does Octave crash when you answer "Yes"?
  • Does Octave crash when you restart Octave without restoring the previously open files and then selecting the missing file from the mru-menu?
  • Does Octave crash when you try to edit a non existing file by

>> edit foo

and select "No" in the following dialog?

  • Does the behavior depend on the state of the editor atthe end of the previous session (docked, floating, visible etc.).
Torsten Lilge <ttl>
Project Member
Sun 19 Jan 2014 02:47:56 PM UTC, original submission:  

Set the GUI-Editor to to restore the open files.
Open a file. Close the Editor.
Delete the file by hand.
Start Octave GUI.
A dialog box will say, it can't find the file. Do you want to create it?
If you click "No", then Octave will crash.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #30500:  bug41280_01.patch added by ttl (1KiB - text/x-diff)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-16 ttl StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2014-02-10 ttl Attached File- => Added bug41280_01.patch, #30500
    2014-02-07 ttl Dependencies- => bugs #41493 is dependent
    2014-01-20 mtmiller StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.5