bugGNU Octave - Bugs: bug #54560, Unable to send large figures to...


bug #54560: Unable to send large figures to the default printer

Submitted by:  Pantxo Diribarne <pantxo>
Submitted on:  Thu 23 Aug 2018 02:22:24 PM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 29 Aug 2018 12:54:27 AM UTC, comment #2:

I don't have this problem with the example provided:

However, I can trigger it with

This seems like a fairly easy fix to go through a temporary file.

Rik <rik5>
Project Administrator
Thu 23 Aug 2018 02:44:55 PM UTC, comment #1:

There is a similar error here (https://stackoverflow.com/questions/31116490/error-12-closing-pdfwrite-device) and I guess the problem is the capacity of the pipe we use to send the output of ghostscript to lpr.

What about using an intermediate file and the "-r" switch for lpr?

Pantxo Diribarne <pantxo>
Project Member
Thu 23 Aug 2018 02:22:24 PM UTC, original submission:

The simple command bellow for printing the current figure to the default printer fails on linux:

I get the error bellow:

I changed _opengl_print_.m so that it prints the commands onscreen and here is what I observe

While when printing to a ps file here is the command:

The main difference, except the use of lpr, is that ghostscript writes to stdout instead of a file.

This is not a problem for small figures (e.g plot (1:10)) and the workaround is to print to ps first and then use lpr manually:

Pantxo Diribarne <pantxo>
Project Member


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

Attach Files:

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 pantxo (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-29 rik5 StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.4