octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55028] plots executed from script containing


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #55028] plots executed from script containing many plots seg fault
Date: Fri, 21 Dec 2018 10:23:02 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #6, bug #55028 (project octave):

I have learned a bit more about this: It is the use of clf
instead of close("all") that causes the seg fault.

clf requires a pause(0.0001) following it to prevent
the seg fault. So, for example:

close ("all");
do_plot = 1;
%% the plot_.. commands below contain: clear -x do_plot -x inpt_file
%% This is to ensure that they do not "inherent" any variable data
plot_orig
%%clf
close ("all")
plot_orig_tr_full
%%clf
close ("all")
plot_demods
clf
%%close ("all")
plot_orig_norm
===================================

seg faults with
Plot file is: airdata_1946-61_extr_1953/de_trend/plot_orig_norm.pdf
title_1 = 21-Dec-2018: airdata_1946-61_extr_1953
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)

replacing the clf with close("all")

prevents the seg fault.

Note that there is in each case only one current figure so it is unclear
why clf and close("all") should produce different results.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55028>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]