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

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

[Octave-bug-tracker] [bug #41216] epslatexstandalone not working for flt


From: Rik
Subject: [Octave-bug-tracker] [bug #41216] epslatexstandalone not working for fltk backend
Date: Tue, 14 Jan 2014 13:19:56 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Follow-up Comment #3, bug #41216 (project octave):

Take a look at the file private/__fltk_print__.m at the bottom near line 170. 
There is the following:


for n = 1:numel (pipeline)
  if (opts.debug)
    fprintf ("fltk-pipeline: '%s'\n", pipeline{n});
  endif
  drawnow (gl2ps_device{n}, strcat ('|',pipeline{n}));
endfor

if (! isempty (strfind (opts.devopt, "standalone")))
  opts.latex_standalone (opts);
endif


The intermittent failure seems to point to a race condition.  The drawnow call
actually uses gl2ps to create the output and then pipes it through a command
that might include ghostscript or epstool.

To confirm that it is a race condition you might want to add a 'sleep (1)'
call just before opts.latex_standalone (opts).  If that works repeatedly then
we can sort out a better solution.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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