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

 
 

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

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Thu 04 Aug 2016 11:41:03 PM UTC  
 
Category: Plotting with OpenGLSeverity: 4 - Important
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Dmitri A. SergatskovOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission 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>
Project 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>
Project 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

Rik <rik5>
Project 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>
Project Member
Mon 08 Aug 2016 01:29:08 AM UTC, comment #3:

Confirmed with cset 22218:6bb0f32d22a5.

Rik <rik5>
Project 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>
Project Member
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:

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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Nov 2017 09:36:46 AM UTCpantxoStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 17 Aug 2016 03:37:21 PM UTCrik5Dependencies-=>Depends on bugs #48782
    Mon 08 Aug 2016 01:29:08 AM UTCrik5StatusNone=>Confirmed
    Sat 06 Aug 2016 06:32:34 AM UTClachlanSeverity3 - Normal=>4 - Important

    Back to the top


    Powered by Savane 3.1-cleanup1