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

 
 

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

Submitter:  None
Submitted:  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 Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 16 Feb 2014 05:08:26 PM UTC, comment #7: 
Torsten Lilge <ttl>
Group 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>
Group Member
Fri 07 Feb 2014 08:46:42 AM UTC, comment #5: 

Bug #41493 marked as duplicate of this one.

Torsten Lilge <ttl>
Group 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


usr/i686-pc-mingw32/include/java/include/win32/jni_md.h
usr/i686-pc-mingw32/include/java/include/jni.h


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>
Group 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>
Group Member
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.


Anonymous
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>
Group 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.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group 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.13-3230.
    Corresponding source code