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

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

[Octave-bug-tracker] [bug #50189] Segfault when drawing sphere as first


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #50189] Segfault when drawing sphere as first plot
Date: Wed, 1 Feb 2017 19:13:35 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

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

This problem definitely shows up for me at


changeset:   23013:5dca1727ce94
user:        Pantxo Diribarne <address@hidden>
date:        Thu Jan 05 09:55:28 2017 +0100
summary:     cla.m, newplot.m: make use of reset function to cleanup listeners
(bug #49980).


I can trigger the crash with something as simple as


newplot; newplot


I.e., two successive calls to newplot without an intervening call to drawnow.

This happens for sphere because it calls surf and both call newplot.

The crash happens on the second call to newplot, around line 200.  At that
point I think the axes object is newly created and has four children (text
objects) and deleting them and calling reset isn't the right thing.  Actually,
just the call to reset seems to be causing the trouble because commenting that
out appears to allow the code to work.  I'm not sure whether this sequence of
commands makes sense, but even if they are nonsensical, they shouldn't crash
Octave.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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