bugGNU Octave - Bugs: bug #36576, "invalid graphics...

 
 

bug #36576: "invalid graphics object" leads to segfault

Submitted by:  Thomas Ruedas <trg818>
Submitted on:  Sat 02 Jun 2012 04:03:07 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 18 Jun 2012 05:46:36 PM UTC, comment #5:

It appears fixed, at least for the sample code given in this bug report which did reliably segfault on a Linux platform before the changeset.

Rik <rik5>
Project Administrator
Sun 17 Jun 2012 11:26:29 PM UTC, comment #4:

I think I've fixed it.

http://hg.savannah.gnu.org/hgweb/octave/rev/1230d5d58d2d

The deletefcn was changing the axes position property and triggering a listener that was no longer valid.

The deletecolorbar() may also need this fix.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sun 17 Jun 2012 12:57:23 AM UTC, comment #3:

On the default branch, adding drawnow() to resetaxis() prevents the core-dump.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sun 03 Jun 2012 09:58:58 PM UTC, comment #2:

I can confirm this on a recent development tip (6/3/12). The crash occurs with the second invocation of colorbar and occurs with either gnuplot or the FLTK backend.

I have updated the Category to "plotting" since it affects both graphics toolkits -- not just gnuplot.

Rik <rik5>
Project Administrator
Sat 02 Jun 2012 05:38:54 PM UTC, comment #1:

This is the same error that Jose posted Jun 1
this simple script shows the error
from Jose

have confirmed this on 3.7.0+ and 3.6.1 and 3.2.3
the error message is
error: base_graphics_object:: get_properties: invalid graphics object

It seems to be the second call to colorbar that shows it, but not always.

Doug Stewart <dastew>
Sat 02 Jun 2012 04:03:07 PM UTC, original submission:

I use Octave 3.4.0 as provided by the pre-compiled dmg for Mac OS X. My system has Mac OS 10.5.8.
When repeatedly plotting certain types of graphs, Octave crashes with the following error message:

error: base_graphics_object::get_properties: invalid graphics object
panic: Segmentation fault -- stopping myself...

A typical scenario is like this: I run a Matlab script and get a correct plot just as I should, which indicates that the script itself works correctly. But when I rerun the same, unchanged script, the crash occurs. The same thing happens when the plotting commands are in a loop. It does not happen with any sort of script, however; I also have scripts that produce plots that can be run as often as I want.
Here is a Matlab script that produces a crash (slightly modified from "Introduction to Numerical Geodynamic Modelling" by T. Gerya, it can be expected to run correctly under Matlab):

Thomas Ruedas <trg818>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dastew (Posted a comment)
  • -unavailable- added by trg818 (Submitted the item)
  • -unavailable- added by trg818
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 29 Jun 2012 05:20:56 PM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 17 Jun 2012 11:26:29 PM UTCbpabbottStatusConfirmed=>Ready For Test
      Assigned toNone=>bpabbott
    Sun 17 Jun 2012 12:57:23 AM UTCbpabbottRelease3.4.0=>dev
      Operating SystemMac OS=>Any
    Sun 03 Jun 2012 09:58:58 PM UTCrik5CategoryPlotting with gnuplot=>Plotting
      StatusNone=>Confirmed
      Summaryinvalid graphics object=>"invalid graphics object" leads to segfault
    Sat 02 Jun 2012 04:03:08 PM UTCtrg818Carbon-Copy-=>Added trg818

    Back to the top


    Powered by Savane 3.1-cleanup1