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)

Submitter:  Tatsuro MATSUOKA <tmacchant>
Submitted:  Sat 25 Dec 2010 06:44:55 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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


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


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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by kahacjde (Posted a comment)
  • -email is unavailable- added by tmacchant (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-29 rik5 Open/ClosedOpen Closed
    2011-01-20 tmacchant Attached File- Added peaks.png, #22461
        Attached File- Added saving.png, #22462
        Attached File- Added savedialog.png, #22463
    2011-01-16 kahacjde StatusNone Need Info
    2010-12-29 tmacchant Attached File- Added save_dialog.png, #22317

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code