uiIndex < m_nCount

Jack Andrews wrote:

hi,

i'm getting a couple of assertion failures -- can you diagnose from
these tracebacks or should i post a test case? (which would take me a
while)

Traceback (most recent call last):
File "aui.py", line 141, in OnSC
   X.panes['gr'].GetTable().ResetView(X.cu.fetchall())
File "aui.py", line 40, in ResetView
   if msg:X.g.ProcessTableMessage(wg.GridTableMessage(X,*msg))
File "C:\Python25\Lib\site-packages\wx-2.7.2-msw-ansi\wx\grid.py",
line 1200, in ProcessTableMessage
   return _grid.Grid_ProcessTableMessage(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "uiIndex < m_nCount" failed
at ..\..\include\wx/dynarray.h(810) in wxBaseArrayInt::Item()
Traceback (most recent call last):
File "aui.py", line 25, in GetAttr
   gca=X.gcas[r%2];gca.IncRef();return gca
File "C:\Python25\Lib\site-packages\wx-2.7.2-msw-ansi\wx\grid.py",
line 528, in IncRef
   return _grid.GridCellAttr_IncRef(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "uiIndex < m_nCount" failed
at ..\..\include\wx/dynarray.h(810) in wxBaseArrayInt::Item()

I don't think that IncRef uses a dynarray, so the assertion is probably actually happening in a prior event or callback and not detected until the IncRef call. So, yes, I'll need a runnable sample of this problem.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!