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

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

[Octave-bug-tracker] [bug #44292] Frequent crashes when printing to eps


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #44292] Frequent crashes when printing to eps on Windows platform
Date: Wed, 18 Feb 2015 19:42:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #4, bug #44292 (project octave):

Print ends up using drawnow().  In my __opengl_print__.m file in the
scripts/plot/private directory I printed out


gl2ps_device{n}
pipeline{n}
strcat ('|',pipeline{n})
    drawnow (gl2ps_device{n}, strcat ('|',pipeline{n}));


and see


ans = epsis2D
ans =  cat > 'junk.eps'
ans = | cat > 'junk.eps'


So, the graphics engine is being piped to the cat function which is redirected
to the file.  The question is if the error happens before the pipe output
(e.g., the gl2ps library), or maybe on the MXE system it is the pipe onward
that doesn't work so well.  It is WIN emulation after all, could have a bug. 
Is there some other system command that could be used?

It doesn't take much for me to make linux Octave crash by tweaking these
settings.  For example, removing the right side of the pipe does it:


gl2ps_device{n}
pipeline{n} = ""
strcat ('|',pipeline{n})
    drawnow (gl2ps_device{n}, strcat ('|',pipeline{n}));


On the other hand, I can keep the pipe from crashing with


gl2ps_device{n}
pipeline{n} = "/dev/null"
strcat ('|',pipeline{n})
    drawnow (gl2ps_device{n}, strcat ('|',pipeline{n}));


If the latter consistently prevents a crash for you, it might indicate the
problem is not the gl2ps library, but something flaky with the pipe setup.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44292>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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