bugGNU Octave - Bugs: bug #48703, printing to unknown device w/ qt...

 
 

bug #48703: printing to unknown device w/ qt backend coredumps

Submitter:  Dmitri A. Sergatskov <dasergatskov>
Submitted:  Thu 04 Aug 2016 11:41:03 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  4 - Important
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Dmitri A. Sergatskov Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 08 Nov 2017 09:36:46 AM UTC, comment #7: 

The ghostscript device is now checked early and this issue does not happen anymore.

Closing report as fixed.

Pantxo Diribarne <pantxo>
Group Member
Wed 24 Aug 2016 02:40:32 AM UTC, comment #6: 

The crash seems to be because the print thread calls error() which in turns throws an exception.  With FLTK, which operates in the interpreter thread, the correct error handler catches it.  With Qt, I think the wrong handler is catching it.

Rik <rik5>
Group administrator
Fri 19 Aug 2016 04:22:50 PM UTC, comment #5: 

Crash still happens for me (8/19/16) with tip (22343:029c5f4eac3a).
22343:029c5f4eac3a


run-octave -f -q --no-gui
octave:1> graphics_toolkit qt
octave:2> plot (1:3)
octave:3> print t1 -djunk
Unknown device: junk
sfopen: gs_parse_file_name failed.
sfopen: gs_parse_file_name failed.
  ./base/gsicc_manage.c:1084: gsicc_open_search(): Could not find default_gray.icc
| ./base/gsicc_manage.c:1690: gsicc_set_device_profile(): cannot find device profile
Unrecoverable error: unknownerror in .special_op
Operand stack:
    defaultdevice
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
warning: broken pipe
error: gl2ps_renderer::draw: internal pipe error
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
Abort



Rik <rik5>
Group administrator
Tue 16 Aug 2016 04:45:46 AM UTC, comment #4: 

It looks like bug #48782.
The submitted patch seems to fix this report also.

Avinoam Kalma <avinoam>
Group Member
Mon 08 Aug 2016 01:29:08 AM UTC, comment #3: 

Confirmed with cset 22218:6bb0f32d22a5.

Rik <rik5>
Group administrator
Sat 06 Aug 2016 12:37:38 PM UTC, comment #2: 

I just updated (HG ID for this build is "1723063e65f3")
changeset:   22213:1723063e65f3
bookmark:    @
tag:         tip
user:        CarnĂ« Draug <carandraug@octave.org>
date:        Sat Aug 06 05:18:34 2016 +0100
summary:     dim-vector: add missing, and remove unecessary, #includes.

and it is still there:

octave:1> graphics_toolkit qt
octave:2> plot(1:3)
octave:3> print t1 -djunk
Unknown device: junk
sfopen: gs_parse_file_name failed.
sfopen: gs_parse_file_name failed.
  ./base/gsicc_manage.c:1086: gsicc_open_search(): Could not find default_gray.icc
| ./base/gsicc_manage.c:1692: gsicc_set_device_profile(): cannot find device profile
Unrecoverable error: unknownerror in .special_op
Operand stack:
    defaultdevice
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
warning: broken pipe
error: gl2ps_renderer::draw: internal pipe error
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)

Dmitri.

Dmitri A. Sergatskov <dasergatskov>
Sat 06 Aug 2016 06:32:34 AM UTC, comment #1: 

Dmitri, is that changeset before or after http://hg.savannah.gnu.org/hgweb/octave/rev/e68128601f5e
which JWE applied to fix bug #46501?

This looks like the sort of bug that the patch was trying to fix.

Lachlan Andrew <lachlan>
Thu 04 Aug 2016 11:41:03 PM UTC, original submission:  

With changeset:   22203:2f301a30aeed
+varbatim+
octave:1> graphics_toolkit qt
octave:2> plot(1:3)
octave:3> print t1 -djunk
Unknown device: junk
sfopen: gs_parse_file_name failed.
sfopen: gs_parse_file_name failed.
  ./base/gsicc_manage.c:1086: gsicc_open_search(): Could not find default_gray.icc
| ./base/gsicc_manage.c:1692: gsicc_set_device_profile(): cannot find device profile
Unrecoverable error: unknownerror in .special_op
Operand stack:
    defaultdevice
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
warning: broken pipe
error: gl2ps_renderer::draw: internal pipe error
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)
-verbatim-

fltk looks better:


octave:1> graphics_toolkit fltk
octave:2> plot(1:3)
octave:3> print t1 -djunk
Unknown device: junk
sfopen: gs_parse_file_name failed.
sfopen: gs_parse_file_name failed.
  ./base/gsicc_manage.c:1086: gsicc_open_search(): Could not find default_gray.icc
| ./base/gsicc_manage.c:1692: gsicc_set_device_profile(): cannot find device profile
Unrecoverable error: unknownerror in .special_op
Operand stack:
    defaultdevice
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
warning: broken pipe
error: gl2ps_renderer::draw: internal pipe error
error: called from
    __opengl_print__ at line 169 column 7
    print at line 499 column 14
octave:3>


No crash w/ 4.0.3

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-08 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-08-17 rik5 Dependencies- Depends on bugs #48782
    2016-08-08 rik5 StatusNone Confirmed
    2016-08-06 lachlan Severity3 - Normal 4 - Important

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code