Re: GridTableBase segfault crashes on macos/windows

"'raf' via wx-users" <[email protected]> Sun, 27 Apr 2025 11:39:22 +1000
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Tue, Apr 08, 2025 at 02:11:31PM +0200, Vadim Zeitlin <[email protected]> wrote:

> On Mon, 7 Apr 2025 01:11:11 +1000 'raf' via wx-users wrote:
> 
> r> I've converted a wxPython app from
> r> python-2.7/wxPython-2.8.12.1 to
> r> python3.12/wxPython-4.2.2 and we're seeing lots of
> r> segfault crashes when using a grid (GridTableBase, was
> r> PyGridTableBase). Has anyone seen such grid crashes?
> 
>  Hello,
> 
>  I'm not aware of any crashes in wxGrid.
> 
> r> If someone is willing to look at it, I'll construct
> r> smallish example code, but it probably won't be tiny.
> 
>  I'm afraid you would need to debug this yourself. The first step would be
> to build a version of wxWidgets with the debug symbols, so that you could
> get some more useful information out of the stack trace.
> 
> r> My grids have extra behaviour to make cell editing very
> r> automatic and keyboard-efficient.
> 
>  It's possible that this somehow breaks wxGrid assumptions and results in
> dereferencing an invalid pointer in DoHideCellEditControl(). But it would
> be really better to just see where exactly it crashes rather than try to
> guess.
> 
> r> I noticed that there was a recent release of wxWidgets.
> r> Maybe it contains fixes that would help. Any idea when
> r> the new version of wxWidgets will make its way into a
> r> new version of wxPython?
> 
>  No, sorry. This would be a question for the wxPython developers.
> 
>  Regards,
> VZ
> 
> -- 
> TT-Solutions: wxWidgets consultancy and technical support
>               https://www.tt-solutions.com/

Thanks. I was hoping the stack trace would be enough for someone to see
where it crashed. If I'm allowed to pursue this, I'll let you know what
I discover, but there are plans to replace the gui with something else,
so maybe not. Maybe it's something that can be fixed in wxPython. I'll
work on a demonstration program for the wxPython list.

cheers,
raf

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/aA2Kyk9nJrTIfvX7%40raf.org.