bugGNU Octave - Bugs: bug #46197, print causes octvate to crash

 
 

bug #46197: print causes octvate to crash

Submitter:  None
Submitted:  Tue 13 Oct 2015 09:30:39 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Need Info Assigned to:  None
Originator Name:  Mikael Fremling 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
   

Jump to the original submission

Fri 29 Jan 2016 04:05:42 AM UTC, comment #7: 

Since this comes up so often, would it be worth implementing the "visible off" workaround automatically "behind the scenes" until mesa fixes the underlying bug?

Does any of you know how to identify which systems the bug will apply to? In the worst case, it could just turn visible off before printing and on afterwards for all systems.

Lachlan Andrew <lachlan>
Fri 23 Oct 2015 03:27:26 PM UTC, comment #6: 

Yes, unfortunately this tells you are using a currently buggy driver for your hardware. As explained by Michael in comment #1 the workaround is to first turn your figure invisible, print and then turn it back visible.

Pantxo Diribarne <pantxo>
Group Member
Fri 23 Oct 2015 02:13:55 PM UTC, comment #5: 

For now the workaround will have to be to disable the opengl rendering and fall back to gnuplot

graphics_toolkit ("gnuplot")

glxinfo says among other thing that:
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)

Is this helpfull?

Anonymous
Thu 22 Oct 2015 10:25:35 AM UTC, comment #4: 

Hi,

The warning you are seeing is probably iniquitous, it just tells you that if you try to zoom, the zoom.m function from the plot package will be run instead of the core Octave one. If you want to get rid of it, simply unload the "plot" package:


pkg unload plot


What we need to know about your hardware is the driver you use for opengl rendering.

@Michael G: can you provide verbatim a command that the OP can run in a terminal to know if he is using HD500/6000 board and MESA driver? Those are known to cause problems when printing (and clicking in a figure).

Pantxo Diribarne <pantxo>
Group Member
Thu 22 Oct 2015 09:58:36 AM UTC, comment #3: 

I don't know if this is relevand but i get a warning regarding the zoom fuction on startup

warning: function /usr/share/octave/packages/plot-1.1.0/zoom.m shadows a core library function
warning: called from
    load_packages_and_dependencies at line 47 column 5
    load_packages at line 60 column 3
    pkg at line 422 column 7
    /usr/share/octave/4.0.0/m/startup/octaverc at line 22 column 1


(attaching hardware specs  as appended file)

Anonymous
Sat 17 Oct 2015 07:26:16 AM UTC, comment #2: 

I'll close this report as the OP did not provide the informations on his video hardware necessary to diagnose this bug.

Pantxo Diribarne <pantxo>
Group Member
Tue 13 Oct 2015 09:54:42 AM UTC, comment #1: 

You might take a look at bug #45348

This is an outstanding problem in the mesa drivers for
some hardware. It would help if you reported your
hardware, particularly the video.

In any case, the workaround is:
set(gcf(), "visible", "off")
print q.pdf
set(gcf(), "visible", "on");

Michael Godfrey <godfrey>
Group Member
Tue 13 Oct 2015 09:30:39 AM UTC, original submission:  

I have had this problem also in octave 3.8.
I can generate plots as expected but whenever i try to save them octave crashes.

I don't not get any more infomation than what is included bellow. (attaching the octave-workspace)


>> plot(1:10)
>> print "q.pdf"
panic: Segmentation fault -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Segmentation fault (core dumped)



Any ideas?

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #35257:  specs.txt added by None (15KiB - text/plain - Full specs of system)
file #35177:  octave-workspace added by None (33B - application/octet-stream - The octave workspace file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by None (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-10-22 None Attached File- Added specs.txt, #35257
    2015-10-17 pantxo StatusNone Need Info
        Open/ClosedOpen Closed
    2015-10-13 None Attached File- Added octave-workspace, #35177

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code