Re: GetBox not called correctly on Linux GTK 3 3.0.2.0?
Hélio Guilherme <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
There was no crash here: Fedora 22, 64-bit, Python 2.7.10, wxPython 3.0.2.0, (SWIG-3.0.7 but not sure if the one for 3.0.2) Also worked with wxPython 3.0.3 recent dev. terça-feira, 20 de Setembro de 2016 às 17:17:32 UTC+1, ABC escreveu: > > 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.