-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] g.gui and d.mon crash upon mouse-over due to python3.9 segfault #1123
Comments
This sound similar to the very difficult to solve bug trac 3487 for Mac. I went all the way to build a debug version Python, and using lldb and iPython to debug. The debugging per se didn't give much leads to the cause. Turned out the segfault was caused by incomplete generated ctypesgen files. Not implying this is the issue here, but just mentioning in case... |
Before going in that direction, try using latest wxPyhton 4.1.0 (wxWidgets 3.1). Ctypes should not be the problem here (in theory), since it's not related to any ctypes component. |
According my testing problematic is calling System description:
Debug info:
|
I have the package "python-wxpython4" installed as well. Description: "wxPython4 is a is a new implementation of wxPython focused on improving speed, maintainability and extensibility. Just like "Classic" wxPython it wraps the wxWidgets C++ toolkit and provides access to the user interface portions of the wx API, enabling Python applications to have a GUI on Windows, Macs or Unix systems with a native look and feel and requiring very little (if any) platform specific code." Fedora paclage: https://koji.fedoraproject.org/koji/buildinfo?buildID=1590928 Now, I wonder how to tell GRASS' configure about it (it doesn not come with |
Thanks @tmszi for the analysis, I assume this has been just fixed in wxWidgets/Phoenix#1847. |
You are using wxPython 4 already (wxPython 3 is old and without Py3 support). I was specifically asking about newest wxPython 4.1.0 (you are using 4.0.7) because it is using newer wxWidgets. However, if the problem was just fixed in wxPython couple days ago, that won't help... |
Thanks for catching this, @tmszi. Would you mind to add a few lines here to explain how the debugger is attached to the GUI job? |
Excellent! Thanks for identifying this fix. I have downloaded the official Works! Both I'll submit the patch to Fedora to get it included in the official RPM package. I suppose that nothing has to be done in GRASS GIS itself. Update: done in https://bugzilla.redhat.com/show_bug.cgi?id=1901912 (patched in https://src.fedoraproject.org/rpms/python-wxpython4/c/f5471fb86aaae46a686b85c654fcbb98516355e6?branch=rawhide) |
Yes, of course, I added an example to this subsection. |
Describe the bug
With the Fedora distro upgrade (F32 to F33) I now have Python 3.9.0 on my system (and wx 3.0.5).
Opening
g.gui
andd.mon wx0
works but as soon as I move-over the mouse the GUI/wx monitor crashes. It happens both in master and release_branch_7_8.In the system settings I see messages like
To Reproduce
g.gui
ord.mon wx0
System description (please complete the following information):
I wonder how to debug it since it is a background process.
This doesn't show anything relevant:
Here isn't yet too much about it...:
https://grasswiki.osgeo.org/wiki/GRASS_Debugging#wxPython_GUI_debugging
The text was updated successfully, but these errors were encountered: