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

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

[Octave-bug-tracker] [bug #44387] unwind_protect_cleanup apparently fail


From: Rik
Subject: [Octave-bug-tracker] [bug #44387] unwind_protect_cleanup apparently fails to run when calling graphics C++ code
Date: Fri, 7 Oct 2016 22:42:51 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #10, bug #44387 (project octave):

The test code now works for me if I use the cli version of Octave and fltk (no
qt).

The issue seems to have changed.  The problem now is that throwing an error
when there are multiple threads (interpreter thread and qt thread) seems to
cause a segfault.  This may be because the thrown error is captured by the
wrong thread which does not have an error handler set up.

The message when using FLTK is


print -dfoo tst.eps
Unknown device: foo
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
error: called from
    __opengl_print__ at line 169 column 7
    print at line 503 column 14


versus this when using qt.


print -dfoo tst.eps
Unknown device: foo
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




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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