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

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

[Octave-bug-tracker] [bug #53010] SIGABRT while using print command with


From: Sahil Yadav
Subject: [Octave-bug-tracker] [bug #53010] SIGABRT while using print command with unknown printer
Date: Mon, 29 Jan 2018 20:31:08 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?53010>

                 Summary: SIGABRT while using print command with unknown
printer
                 Project: GNU Octave
            Submitted by: batterylow
            Submitted on: Tue 30 Jan 2018 01:31:06 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: Sahil Yadav
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When printing something to a printer, if the printer doesn't exist, octave
exits with SIGABRT (in case of GUI).
 
The following are the outputs of octave-cli.
The output for version 4.0.0 is (which works fine in handling the exception):


>> clf()
>> surf(peaks)
>> print -dpswrite -PPS_printer
lpr: PS_printer: unknown printer
warning: broken pipe

>>



While the output for version 4.2.1 (stable) is : 



octave:1> clf()
octave:2> surf(peaks)
octave:3> print -dpswrite -PPS_printer
lpr: PS_printer: unknown printer
warning: broken pipe
error: gl2ps_renderer::draw: internal pipe error
terminate called after throwing an instance of 'octave::execution_exception'
panic: Aborted -- stopping myself...



Whereas, the following was the output for the dev branch: 



octave:1> clf()
octave:2> surf(peaks)
octave:3> print -dpswrite -PPS_printer
lpr: PS_printer: unknown printer
  ./base/gsicc_manage.c:1088: gsicc_open_search(): Could not find
default_gray.icc 
| ./base/gsicc_manage.c:1708: gsicc_set_device_profile(): cannot find device
profile
arg_st =

  scalar structure containing the fields:

    append_to_file = 0
    canvas_size = [](0x0)
    debug = 0
    debug_file = octave-print-commands.log
    devopt = pswrite
    epstool_binary = /usr/bin/epstool
    figure =  1
    fig2dev_binary = /usr/bin/fig2dev
    fontsize = 
    font = 
    scalefontsize =  1
    force_solid = 0
    formatted_for_printing = 0
    ghostscript =

      scalar structure containing the fields:

        binary = /usr/bin/gs
        debug = 0
        device = 
        epscrop = 1
        level =  2
        output = 
        papersize = 
        pageoffset = [](0x0)
        resolution =  150
        antialiasing = 0
        antialiasing_textalphabits =  4
        antialiasing_graphicsalphabits =  1

    loose = 0
    lpr_binary = /usr/bin/lpr
    name = 
    orientation = 
    pstoedit_binary = /usr/bin/pstoedit
    preview = 
    printer = -PPS_printer
    send_to_printer = 0
    special_flag = textnormal
    tight_flag = 0
    use_color = 0
    lpr_options = -l
    unlink = {}(0x0)

error: gl2ps_renderer::draw: internal pipe error
terminate called after throwing an instance of 'octave::execution_exception'
fatal: caught signal Aborted -- stopping myself...



The above problem exists only in the case of QT graphics toolkit as the other
two toolkits do not abort octave and continue after showing the some errors. A
familiar bug was : 

https://savannah.gnu.org/bugs/?48703




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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