[Top][All Lists]
[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, 3 Dec 2012 12:57:01 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Marc,
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)
Thanks,
Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346