Open bitlogik opened 3 years ago
Yes, you would probably be best to open a ticket at https://trac.wxwidgets.org/.
BTW, your reproducer has some errors.
OK, thanks, we fixed the issue demo. We'll open an issue where your point to. I let open for now, you can close when the wxWidgets will fix and this will be integrated in wxPython, like a remainder.
Here the corresponding ticket on the wxWidgets side https://trac.wxwidgets.org/ticket/19257
Operating system: MacOS 11, x86_64 arch
wxPython version & source: 4.1.1, installed with pipy prebuilt (pip install)
Python version & source: Officials pkg from Python.org 3.6.8, 3.8.10 and 3.9.6 Probably others I just tested these.
Description of the problem: Our new version of Uniblow was generating a segmentation fault when starting on MacOS. After investigation, this seems to affect all Python versions. This change broke the start of the program. Then we identified the root cause :
SetBitmapPressed(NullBitmap)
.There's a segmentation fault of the Python interpreter when calling SetBitmapPressed with a null bitmap. More specifically, this is the wx 3.1.5 on Cocoa which tries to access an invalid address, probably from a past dereferenced object. A GetImage pointer seems out of his mind.
We're not sure if this issue comes from MacOS 11, or is also present in other version such as X (10.10). It was only tested on MacOS 11 (x86_64).
Here's a minimal reproduction of the problem.
We're working on a workaround. The easiest might be not to initialize SetBitmapPressed, and skip the faulty line.
I have the feeling this issue is more on the wxWidgets side in C++. Let us know if relevant, and where the wx support is, and we'll opened an issue on their side.
Here's the full crash report from MacOS.