bugGNU Octave - Bugs: bug #31977, Octave crash in trying save graph...

 
 

bug #31977: Octave crash in trying save graph from uimenu of fltk backend (MinGW)

Submitted by:  Tatsuro MATSUOKA <tmacchant>
Submitted on:  Sat 25 Dec 2010 06:44:55 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Need InfoAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating 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 Jump to the original submission)

Thu 29 Sep 2011 04:00:12 PM UTC, comment #10:

No action for 6 months. I assume that the latest development code no longer includes this problem.

Rik <rik5>
Project Administrator
Mon 16 May 2011 03:06:11 AM UTC, comment #9:

Has this bug been resolved? The last post was from Jan 21, 2011 where things appeared to be operating correctly.

Rik <rik5>
Project Administrator
Fri 21 Jan 2011 08:13:30 PM UTC, comment #8:

Hello Kai

saveas(1,"D:/usr/Tatsu/program/Octave/fltk_print/savetest.pdf")

worked correctly. I can get savetest.pdf.

I will try dbstop and dbstep to trace what is happening.

The result will be reported later.

Thanks!!

Tatsuro MATSUOKA <tmacchant>
Fri 21 Jan 2011 06:45:59 PM UTC, comment #7:

Tatsuro,

does 'saveas' work for you? The file dialog finally calls saveas so can you please check if for your example:

graphics_toolkit("fltk")
figure(1)
peaks
saveas(1,"D:/usr/Tatsu/program/Octave/fltk_print/savetest.pdf")

creates the pdf containing figure 1.

Kai

Kai Habel <kahacjde>
Project Member
Thu 20 Jan 2011 07:51:33 AM UTC, comment #6:

Sorry for my late reply.

Currently crash does not occur.

octave:1> cd D:\usr\Tatsu\program\Octave\fltk_print
octave:2> backend fltk
octave:3> peaks
octave:4> # here I have treat savedialog

I attached the three files.

1. peaks.png : Orignal plot snapshot
2. savedialog.png : snapshot of "save as" dialog
3. saving.png : Snapshot during processing

Today after No.2 snapshot, the screen went to No.3 came back to No.1 (original) snapshot.
And octave prompt was re-active after the plot screen came back to No.1.

However, nothing was saved.

Regards

Tatsuro

(file #22461, file #22462, file #22463)

Tatsuro MATSUOKA <tmacchant>
Sun 09 Jan 2011 07:08:10 PM UTC, comment #5:

Tatsuro,

can you give some more information? Do you still see the crash?

It is not clear to me if the file dialog or the printing itself crashes.

Kai

Kai Habel <kahacjde>
Project Member
Wed 29 Dec 2010 07:42:47 PM UTC, comment #4:

Does the following also crash?

figure(1)
peaks;
saveas (1, "peaks_figure.pdf");

Kai

Kai Habel <kahacjde>
Project Member
Wed 29 Dec 2010 07:36:22 PM UTC, comment #3:

Tatsuro,

I understand that the file dialog uiputfile(...) works for you when called from the command line. Since this is just a dialog to select a file nothing is being saved.

But it is still not clear to me. Do you get a save dialog when you execute?

octave.exe:1> backend('fltk')
octave.exe:2> peaks # here I have tried to execute 'Save As' in pdf format

octave.exe:3> panic: Segmentation violation -- stopping myself...

Can you debug scripts/plot/private/__add_default_menu__.m and try to find at which line octave crashes.
Can you post the respective backtrace too.

Kai

Kai Habel <kahacjde>
Project Member
Wed 29 Dec 2010 07:22:42 PM UTC, comment #2:

Thank you for your reply

>does this mean you do not get a file dialog?


Perhaps my English writing was poor. So I attached the file for my operation.

I have tried
[filename, filedir] = uiputfile ({".pdf;.ps;.gif;.png;*.jpg","Supported Graphic Formats"}, "Save Figure", pwd);

save dialog appears. I input file name '......./test.pdf' and press 'save' button.

This time octave does not crash but nothing is saved.

Thanks

(file #22317)

Tatsuro MATSUOKA <tmacchant>
Wed 29 Dec 2010 01:15:38 PM UTC, comment #1:

Tatsuro,

does this mean you do not get a file dialog?

If you choose 'Save As' the following line (in _add_default_menu_.m) is called:

[filename, filedir] = uiputfile ({".pdf;.ps;.gif;.png;*.jpg","Supported Graphic Formats"},
"Save Figure",
pwd);

What happens if you call this from the command line?

Kai

Kai Habel <kahacjde>
Project Member
Sat 25 Dec 2010 06:44:55 PM UTC, original submission:

Hello

I have tried several times to save plot using uimenu 'File -> Save As' from the plot window.

octave.exe:1> backend('fltk')
octave.exe:2> peaks # here I have tried to execute 'Save As' in pdf format

octave.exe:3> panic: Segmentation violation -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete

Tatsu@Inspiron6000 /home/octaves/OctBuild/octave-develop
$ GPL Ghostscript 9.00: **** Could not open the file c:/usr/Tatsu/mingwhome/octaves/OctBuild/octave-develop\c:/usr/Tatsu/mingwhome/octaves/
OctBuild/octave-develop/test.pdf .

        • Unable to open the initial device, quitting.

Any suggestions?

Regards

Tatsuro

Tatsuro MATSUOKA <tmacchant>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #22461:  peaks.png added by tmacchant (106KiB - image/png)
file #22462:  saving.png added by tmacchant (91KiB - image/png)
file #22463:  savedialog.png added by tmacchant (16KiB - image/png)
file #22317:  save_dialog.png added by tmacchant (92KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by kahacjde (Posted a comment)
  • -unavailable- added by tmacchant (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Sep 2011 04:00:12 PM UTCrik5Open/ClosedOpen=>Closed
    Thu 20 Jan 2011 07:51:33 AM UTCtmacchantAttached File-=>Added peaks.png, #22461
      Attached File-=>Added saving.png, #22462
      Attached File-=>Added savedialog.png, #22463
    Sun 16 Jan 2011 07:40:07 PM UTCkahacjdeStatusNone=>Need Info
    Wed 29 Dec 2010 07:22:42 PM UTCtmacchantAttached File-=>Added save_dialog.png, #22317

    Back to the top


    Powered by Savane 3.1-cleanup1