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

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

[Octave-bug-tracker] [bug #53342] Segfault in figure with property Integ


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #53342] Segfault in figure with property IntegerHandle set to off
Date: Fri, 23 Mar 2018 14:46:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #5, bug #53342 (project octave):

It seems that the real problem is that the Qt toolkit is not properly handling
the switch to non-integer handles.

It works properly in the FLTK toolkit.  To see what FLTK does, start here: 
http://hg.savannah.gnu.org/hgweb/octave/file/0b9e7fcaab91/libinterp/dldfcn/__init_fltk__.cc#l2343

In the QtHandles code, this function is called with pId set to
ID_INTEGERHANDLE:

http://hg.savannah.gnu.org/hgweb/octave/file/0b9e7fcaab91/libgui/graphics/ObjectProxy.cc#l86

>From there, the sendUpdate signal is emitted and handled in this function:

http://hg.savannah.gnu.org/hgweb/octave/file/0b9e7fcaab91/libgui/graphics/Object.cc#l84

The default case is executed but by that point the object is no longer valid. 
So QtHandles doesn't update the internal value for the figure handle ID. 
Things get worse from that point on.

I'm not sure of what the proper fix is.  I'm not sure we have enough
information at that point to renumber the figure, so some significant changes
may be needed.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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