bugGNU Octave - Bugs: bug #58040, Plot Save Either Fails or Causes...

 
 

bug #58040: Plot Save Either Fails or Causes Octave Crash

Submitter:  Richard Shadbolt <shadders>
Submitted:  Tue 24 Mar 2020 02:57:09 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Shadders Open/Closed:  * Closed
Release:  * 4.4.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Mar 2020 07:48:11 PM UTC, comment #3: 

Hi,
Thanks - i will ask Fedora to move to the latest. I don't like to move outside their rpm process.
I will try your approach too - will be a simple interim solution.
Thanks and regards,
Shadders.

Richard Shadbolt <shadders>
Tue 24 Mar 2020 07:42:08 PM UTC, comment #2: 

Version 4.4.1 is ancient and no longer supported.  Please try with the latest stable release which is 5.2.0.  You can find a link to the latest version on the main Octave web site.

Also, the buffer overflow warning indicates that you are plotting many, many data points.  You might try reducing the number of data points before plotting which will speed things up.

As a simple example, keep every 10th data point for a 90% reduction.


x2 = x(1:10:end);
y2 = y(1:10:end);
plot (x2, y2);



Rik <rik5>
Group administrator
Tue 24 Mar 2020 04:20:09 PM UTC, comment #1: 

Hi,
I set the graphics to "fltk", printed as png (gif not supported) and the following output from Octave command line :

GL2PS info: OpenGL feedback buffer overflow
GL2PS info: OpenGL feedback buffer overflow
warning: gl2ps_renderer::draw: retrying with buffer size: 8.4E+06 B
GL2PS info: OpenGL feedback buffer overflow
GL2PS info: OpenGL feedback buffer overflow
warning: gl2ps_renderer::draw: retrying with buffer size: 1.7E+07 B
GL2PS info: OpenGL feedback buffer overflow
GL2PS info: OpenGL feedback buffer overflow
warning: gl2ps_renderer::draw: retrying with buffer size: 3.4E+07 B

Command line seems to have hung, but after 1 minute or so, the graphic file has been printed.

Using fltk again, printed as jpeg, and the print took 5 minutes to render.

EMF file type output fails.

PDF option takes over 5 minutes to render and the file size is reasonably large.

SVG fails to save since the "cat" of the directory fails.

At the moment, it is safe to use FLTK and save the plot at PNG to fastest save.

Regards,
Shadders.

Richard Shadbolt <shadders>
Tue 24 Mar 2020 02:57:09 PM UTC, original submission:  

Using Linux Fedora 30 - kernel 5.5.10-100.fc30.x86_64
Octave v4.4.1

When using Octave, the plot function either causes Octave to crash or fails to save the plot.
Plotting is also malformed for Gnuplot selection.

Opened octave,
Ran the script.
Subplot appears with QT graphics engine.
Save the plot as pdf, and fails to save.
Close plot window - fails and Octave is terminated.

Restart Octave
Set : graphics_toolkit ("gnuplot");
run script.
Plot window appears, and is slow to present graphs where as QT is near instant.
Save as PDF - saving fails.
Close plot window and no issues.
Run script.
Export plot image as png - this works, but the plot is badly presented in the window and png file too.
Command line for Octave states kf5.kio.widgets: No node found for item that was just removed: QUrl
Close the plot window

Set the graphics to : graphics_toolkit ("fltk");
Run the script
Plot window is still gnuplot, which is malformed.
Close the plot window.

Set graphics to graphics_toolkit ("qt");
Run the script
Plot window is still gnuplot, which is malformed.
Close the plot window.

Quit Octave

Restart Octave
Ran the command graphics_toolkit ()
ans = qt

Open the script and ran with QT the graphics plot
Graphic plot open and instantly provides the plot formed correctly.
Used Control+C to copy the graphic
One of the processor cores is 100%, Octave is unresponsive.
Using ksysguard, killed the Octave process at 100% core usage - will not kill
Opened command line and listed ocatve processes - one is :
======================
3016  3001  0 13:53 ?        00:00:00 /usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -dAutoRotatePages=/None -sDEVICE=png16m -dLanguageLevel=2 -dTextAlphaBits=4 -dGraphicsAlphaBits=1 -r150x150 -dEPSCrop -sOutputFile=/tmp/oct-xfG5Ot.png -
======================

Used kill command as root to kill the process.
Root cannot kill the process.
Killing other processes - not possible to kill other processes.

Attempted to logout and logout cancelled by Octave.
Octave has now stopped and windows closed.

Octave script uploaded.

Regards,
Shadders

Richard Shadbolt <shadders>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

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 shadders (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-28 rik5 Open/ClosedOpen Closed
    2020-03-24 shadders Attached File- Added 2020_03_24_Plot@of@Eq@5_18@and@5_20.m, #48662

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code