Hi, I’m developing application using wxPython (version 4.1.1), which uses grids quite intensively (several hours in a day in a row).
The user recently reported about two cases of application crashing after working for almost whole day, and I suspect, that it somehow related to using GridCellAttributes.
The errors, which are get written to the console before crash looks like follows:
SystemError: <class ‘wx._grid.GridCellAttr.AttrKind’> returned a result with an error set
wx._core.wxAssertionError: C++ assertion “m_hdc” failed at …\src\msw\textmeasure.cpp(61) in wxTextMeasure::BeginMeasuring(): Must not be used with non-native wxDCs
and as well the following one:
wx._core.wxAssertionError: C++ assertion “m_buffer && m_buffer->IsOk()” failed at …\src\common\dcbufcmn.cpp(134) in wxBufferedDC::UnMask(): invalid backing store
I’m not able to reproduce them on my PC, but I use application not so intensively, as the user.
The code in the app for working with grid is based on earlier version of VirtualTable/ MegaTable example.
As well, the issue may be related to https://github.com/wxWidgets/Phoenix/issues/1766
I will be grateful for help/tips, what could be causing such a behaviour.
Many Thanks in Advance
Serhiy Yevtushenko