bugGNU Octave - Bugs: bug #46982, Octave crashes when saving a plot...

 
 

bug #46982: Octave crashes when saving a plot to a file with *print*

Submitter:  None
Submitted:  Tue 26 Jan 2016 01:50:43 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 07 Apr 2016 11:29:33 AM UTC, comment #5: 

Could not resolve the problem with Mesa. Using gnuplot

graphics_toolkit ("gnuplot")

worked out in the end.

Anonymous
Fri 26 Feb 2016 07:13:50 AM UTC, comment #4: 

Yes this appears to be a Mesa Intel bug, possibly this one: https://bugs.freedesktop.org/show_bug.cgi?id=80568

Either try the workaround suggested or try updating Mesa (see https://wiki.ubuntu.com/Kernel/LTSEnablementStack if you are stuck with Ubuntu LTS).

Mike Miller <mtmiller>
Group Member
Wed 27 Jan 2016 02:52:25 PM UTC, comment #3: 

Did you build this version of Octave from source on
your system. If so, you should check that you have
the required mesa libraries.

In any case, you will need to use the "visible off"...
sequence until that bug is fixed.

Michael Godfrey <godfrey>
Group Member
Wed 27 Jan 2016 02:28:38 PM UTC, comment #2: 

Thanks for the quick reply.
Unfortunately, I get a new error


error: __osmesa_print__: support for offscreen rendering was disabled when Octave was built


with the workaround described in bug 46197, and the same with figure(1, "visible", "off");, see bug 45348.

Anonymous
Wed 27 Jan 2016 02:31:51 AM UTC, comment #1: 

This appears to be a duplicate of bug 46197.
Please try the workaround that is described there
and report if that works.

Michael Godfrey <godfrey>
Group Member
Tue 26 Jan 2016 01:50:43 PM UTC, original submission:  

Example:


a = zeros(2);
imagesc(a)
print('a.pdf')


returns


octave-gui: ../../../../src/mesa/vbo/vbo_exec_draw.c:278: vbo_exec_vtx_unmap: Assertion `exec->vtx.buffer_ptr != ((void *)0)' failed.
panic: Aborted -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
octave exited with signal 6


I get the same error for other formats (png, jpg,..) and also for saveas. I can however use imwrite.
The error also occurred after updating GNUplot from 4.6 to 5.0.2. I am using Ubuntu 14.04.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 mtmiller (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-26 mtmiller CategoryPlotting with gnuplot Plotting with OpenGL
        StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code