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

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

[Octave-bug-tracker] [bug #48782] Using drawnow (TERM, FILE, DEBUG_FILE)


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #48782] Using drawnow (TERM, FILE, DEBUG_FILE) with qt crashes Octave
Date: Mon, 15 Aug 2016 09:14:39 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Update of bug #48782 (project octave):

                  Status:                    None => Patch Submitted        
             Assigned to:                    None => siko1056               

    _______________________________________________________

Follow-up Comment #1:

I can confirm the crash on Linux and located the source of error in
libinterp/corefcn/gl2ps-print.cc(gl2ps_renderer::draw).


$ ./run-octave --no-gui
octave:1> graphics_toolkit  qt
octave:2> plot (1:2)
octave:3> drawnow ('postscript', 'a.ps', 'a.gp');
error: gl2ps_renderer::draw: Unknown terminal postscript
terminate called after throwing an instance of 'octave_execution_exception'
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Aborted (core dumped)


My proposal for a patch is attached. It chooses GL2PS_PS as default value, as
it is the first one in the defining header


edit /usr/include/gl2ps.h


and a default value + warning is better than a crash. Please verify this
patch. I will commit soon, if there are no complaints. 

(file #38212)
    _______________________________________________________

Additional Item Attachment:

File name: drawnow.patch                  Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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