GetBox not called correctly on Linux GTK 3 3.0.2.0?
ABC <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fedora 24, 32-bit, Python 2.7.12, wxPython 3.0.2.0, SWIG-1.3.29,
the following call to DrawEllipticArc causes a segmentation fault:
import wx
class DrawPanel(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="Draw on Panel")
self.Bind(wx.EVT_PAINT, self.OnPaint)
def OnPaint(self, event=None):
dc = wx.PaintDC(self)
dc.Clear()
dc.SetPen(wx.Pen(wx.BLACK, 4))
dc.SetBrush(wx.TRANSPARENT_BRUSH)
dc.DrawEllipticArc(10, 10, 350, 200, 0, 180)
app = wx.App(False)
frame = DrawPanel()
frame.Show()
app.MainLoop()
GDB shows the following:
Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0xb6ed6657 in wxGraphicsPath::GetBox(double*, double*, double*, double*)
const () from /lib/libwx_gtk3u_core-3.0.so.0
(gdb) bt
#0 0xb6ed6657 in wxGraphicsPath::GetBox(double*, double*, double*,
double*) const () from /lib/libwx_gtk3u_core-3.0.so.0
#1 0xb6ed8674 in wxGraphicsPath::GetBox() const () from
/lib/libwx_gtk3u_core-3.0.so.0
#2 0xb6e7df16 in wxGCDCImpl::DoDrawEllipticArc(int, int, int, int, double,
double) () from /lib/libwx_gtk3u_core-3.0.so.0
#3 0xafe438b7 in _wrap_DC_DrawEllipticArc () from
/usr/lib/python2.7/site-packages/wx-3.0-gtk3/wx/_gdi_.so
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.