gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-bugs] <bug>: and again.... without signing any document,


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] <bug>: and again.... without signing any document,
Date: Thu, 24 Jan 2013 11:37:23 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jan 22, 2013 at 04:32:56PM -0500, Marc Angermann wrote:

> user comment  : and again.... without signing any document, just after 
> clicking on items and switching back to inbox

The conditions identified so far:

- patient is active before it happens
- there are "quite a few items in the list" (> 50 as per observation)
- it only happens "after a while", not right away
- it always happens when the list filling code gets called twice
  (should happen in a row and not error out, but)

> 2013-01-22 22:30:27  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::_schedule_data_reget()
>  #797): _schedule_data_reget()
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::_populate_with_data()
>  #801): _populate_with_data() (after _schedule_data_reget ?)
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #836): populating provider inbox
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #839): total # of inbox msgs for current provider: 55
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #851): inbox set to show all messages
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #853): # of inbox msgs to actually show: 55
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #864): # of list items created from msgs: 55
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::_populate_with_data()
>  #801): _populate_with_data() (after _schedule_data_reget ?)
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #836): populating provider inbox
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #839): total # of inbox msgs for current provider: 55
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #851): inbox set to show all messages
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #853): # of inbox msgs to actually show: 55
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #864): # of list items created from msgs: 55
> 2013-01-22 22:31:31  DEBUG     gm.gui 
> (/usr/share/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #165): unhandled exception caught:

- we have proven that DeleteAllItems() does not do what we think:

> 2013-01-22 22:31:31  DEBUG     gm.gui 
> (/usr/share/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #165): unhandled exception caught:
> Traceback (most recent call last):
...
>   File "/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py", line 
> 865, in __populate_inbox
>     self._LCTRL_provider_inbox.set_string_items(items = items)
>   File "/usr/share/gnumed/Gnumed/wxpython/gmListWidgets.py", line 956, in 
> set_string_items
>     raise ValueError('.ItemCount not 0 after .DeleteAllItems()')
> ValueError: .ItemCount not 0 after .DeleteAllItems()

despite that the correct number of items is passed in:

> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #853): # of inbox msgs to actually show: 55
> 2013-01-22 22:31:31  DEBUG     gm.ui 
> (/usr/share/gnumed/Gnumed/wxpython/gmProviderInboxWidgets.py::__populate_inbox()
>  #864): # of list items created from msgs: 55

Attached find, again, two files for testing which work on
the hypothesis that it has got to do with threads getting in
the way of each other. They also give us yet more information.

Thanks,
Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

Attachment: gmListWidgets.py
Description: Text Data

Attachment: gmProviderInboxWidgets.py
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]