[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] [Gnumed-bugs] <bug>: on saving printing document in o
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] [Gnumed-bugs] <bug>: on saving printing document in overview scr |
Date: |
Mon, 14 Jan 2013 11:07:15 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Dec 03, 2012 at 12:57:01PM +0100, Karsten Hilbert wrote:
> this crash:
>
> > 2012-11-29 18:14:31 CRITICAL gm.tools
> > (/usr/share/gnumed/Gnumed/pycommon/gmTools.py::handle_uncaught_exception_console()
> > #95): unhandled exception caught
> > Traceback (most recent call last):
> > File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
> > line 14665, in <lambda>
> > lambda event: event.callable(*event.args, **event.kw) )
> > File "/usr/share/gnumed/Gnumed/wxpython/gmNarrativeWidgets.py", line
> > 1898, in _after_on_focus
> > evt = wx.PyCommandEvent(wx_expando.wxEVT_ETC_LAYOUT_NEEDED,
> > self.GetId())
> > File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
> > line 14615, in __getattr__
> > raise PyDeadObjectError(self.attrStr % self._name)
> > PyDeadObjectError: The C++ part of the cSoapLineTextCtrl object has been
> > deleted, attribute access no longer allowed.
>
> might at least provide a *hint* (Though I am not at all
> sure. Unfortunately, this very log did not come from
> --debug).
>
> Can you replace the function _after_on_focus() in
> .../client/wxpython/gmNarrativeWidgets.py with the following
> code and see what gives ?
>
> def _after_on_focus(self):
> # robustify against PyDeadObjectError - since we are called
> # from wx.CallAfter this SoapCtrl may be gone by the time
> # we get to handling this layout request, say, on patient
> # change or some such
> if not self:
> return
> evt = wx.PyCommandEvent(wx_expando.wxEVT_ETC_LAYOUT_NEEDED,
> self.GetId())
> evt.SetEventObject(self)
> self.GetEventHandler().ProcessEvent(evt)
Regardless of not having any feedback on this I have
backported the check to rel-1-2-patches such that it
will be included with a potential 1.2.8 release.
Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Gnumed-devel] [Gnumed-bugs] <bug>: on saving printing document in overview scr,
Karsten Hilbert <=