bugGNU Octave - Bugs: bug #44283, crash / hang-up during export to...

 
 

bug #44283: crash / hang-up during export to svg via print

Submitter:  None
Submitted:  Tue 17 Feb 2015 09:28:28 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Niko K. Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 Feb 2015 04:18:26 PM UTC, comment #3: 

The underlying problem of having a null ("") graphics toolkit has been fixed in the development code that is about to become the 4.0 release.  For the time being, I would just put the line


graphics_toolkit ("gnuplot");


in your .octaverc file so that it is always set at start-up.



Rik <rik5>
Group administrator
Fri 20 Feb 2015 06:27:31 AM UTC, comment #2: 

tried graphics_toolkit() ... I don't know why but there was none.

Reset it with graphics_toolkit("gnuplot")

and now its working again.


Is there a possibility that this "blanking" o the graphics_toolkit-entry happens during a update routine of ubuntu?


thx for the input.


greets


Niko

Anonymous
Tue 17 Feb 2015 10:24:42 PM UTC, comment #1: 

Which toolkit are you using?  I tried both fltk and gnuplot with the following code and it works.


graphics_toolkit fltk
y = rand (9000, 1);
plot (y, ".")
print ("tst.svg", "-F:24", "-S2048,1536")


Rik <rik5>
Group administrator
Tue 17 Feb 2015 09:28:28 AM UTC, original submission:  

Hello!

I've repeatedly tried to export my figures to svg files.

Every time there is a hang-up / crash when I'm using the following command


  figure(1);
  hold on;
  grid on;
  plot(TAXIS,Avref(:,2),".","color",[1 0 0],TAXIS,Avsec(:,2),"-","color",[0.8 0 0]);
#  plot(TAXIS(a-8192:a),Avref(a-8192:a,2),"color",[1 0 0],TAXIS(a-8192:a),Avsec(a-8192:a,2),"color",[0.8 0 0]);
  xlabel('time [s]');
  ylabel('x-comp [nT]');
  print("./outfiles/DIFFERENCES.svg","-F:24","-S2048,1536");


a the lengths of the vectors are 864000, of the vector(s) Avref and Avsec.
TAXIS is just a linearly increasing time axis.

During export of SVG file the file itself is generated but keeps size 0 kByte - I've waited 15 min, no change - Octave itself hangs and can only be stopped by pressing repeatedly CTRL+C. Happens ind GUI as well as terminal versions.

I've tried this in Octave 3.8.1 as well as Octave 3.8.2. Same results.

Then I tried to reduce the amounts of data points for debugging. with the following commands.


  figure(1);
  hold on;
  grid on;
#  plot(TAXIS,Avref(:,2),".","color",[1 0 0],TAXIS,Avsec(:,2),"-","color",[0.8 0 0]);
  plot(TAXIS(a-8192:a),Avref(a-8192:a,2),"color",[1 0 0],TAXIS(a-8192:a),Avsec(a-8192:a,2),"color",[0.8 0 0]);
  xlabel('time [s]');
  ylabel('x-comp [nT]');
  print("./outfiles/DIFFERENCES.svg","-F:24","-S2048,1536");


With this parameters the export worked.
Worked with this parameters too:


  figure(1);
  hold on;
  grid on;
#  plot(TAXIS,Avref(:,2),".","color",[1 0 0],TAXIS,Avsec(:,2),"-","color",[0.8 0 0]);
  plot(TAXIS(a-8192:a),Avref(a-8192:a,2),'.',"color",[1 0 0],TAXIS(a-8192:a),Avsec(a-8192:a,2),'-',"color",[0.8 0 0]);
  xlabel('time [s]');
  ylabel('x-comp [nT]');
  print("./outfiles/DIFFERENCES.svg","-F:24","-S2048,1536");



If tried this many times with multiples of 2^n.
But only if the length is smaller than 8192 the output works.
8192 equals to 2^13 if I'm correct?

Is there a limitation inbound in the print command when using svg file export?

All other operations with those vectors react as usual.

Greets


Niko

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-20 rik5 StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2015-02-17 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code