Re: Re: GetBox not called correctly on Linux GTK 3 3.0.2.0?
Nitzan Weinberg <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <CA+UZkiZX2Q4v_JFYCw0xq2d1rhExLfZAaV=-7E44AYiQzfwpLw@mail.gmail.com> |
Thank you folks for testing it out! It would be a tremendous help, if this fix can find its way into a form, that I can automatically bring it over with Fedora and wxPython. I don't have the knowledge to build the code myself. When I check dnf install wxWidgets my Fedora 24 reports: Package wxGTK3-3.0.2-19.fc24.i686 is already installed, skipping. For wxPython I get: Package wxPython-3.0.2.0-10.fc24.i686 is already installed, skipping. On Tue, Sep 20, 2016 at 5:02 PM, Scott Talbert <[email protected]> wrote: > I can reproduce it. > > It looks like it was fixed in wxWidgets some time ago: > https://github.com/wxWidgets/wxWidgets/commit/148971013ee48926dfe153ca39c94be92acde37c > > Do you use the Fedora packages for wxWidgets? If so, I can update them to > include the patch. If not, you'll probably have to patch the source > yourself as I don't expect Robin will make any more wxPython Classic > releases. > > > On Tue, 20 Sep 2016, Hélio Guilherme wrote: > >> 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. >> >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "wxPython-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/wxPython-dev/_NU0PAYTrIE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. -- 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.