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
spyder2 crashes upon launch when pygtk2 is installed #5212
Comments
Thanks for reporting. We'll take a look at this bug in 3.2.4 |
Thanks! Please let me know if you need more information (trace, etc.) and/or if you need someone to do some testing. |
I tried to reproduce it in debian, but installing python-gtk2 doesn't make spyder crash, I think It is a fedora issue.
Maybe the core dumped, I could give a try tracing the bug (although segmentations faults are hard to trace)
Maybe different versions of qt and pyqt could cause the error. If It cause a wrong detection of the qt version; in some places we check the specific pyqt version to use some classes/functions that are only available in some newer versions of the qt. (although that will be a really unlikely) |
I could only generate strace for the crash (attached). If you can tell me how I can go about generating coredump, I can try. As for mismatch between Qt and PyQt, I tried the same spyder version in Fedora 27 where both are at 5.9.x. I get the same segmentation fault. So, I don't think this is the issue but, of course, I could be wrong. |
Thanks for the strace, Now I have an idea of how could be the error: It looks like an incompatibility between pygtk2 and gtk3 (the error is raised when trying to read a translation file of gtk3) Looking at pygtk2, It looks like It haven't been maintained in a long time, (and not gtk3 support was developed) I think this bug doesn't affect only spyder, other applications could be affected Maybe not setting application style to gtk fix the bug https://github.com/spyder-ide/spyder/blob/master/spyder/app/mainwindow.py#L2537 (I don't know if that is still needed to fix #2036) |
I think it's still needed, yes. But we could try to import |
If you make the change, I can test it from git and report back. |
@rlaverde, please open a PR for this so that @nonamedotc can test it on his end. |
@nonamedotc could you test if #5335 fix the error? |
Still segfaults when pygtk2 is installed (strace attached). I made the changes to the mainwindow.py in spyder 3.2.3 released tarball to test this. Would you prefer that I test this master instead? |
Looking at the strace it still raises the same error, maybe It's something about the console style, although I'm not sure, I'll try to reproduce it in a virtualbox and debug it more. |
Hello there! I was looking at this again and I get the same crash with even with 3.2.6. Have any of you had a chance to take a look at this? I can provide the strace again if needed. |
Description of your problem
I maintain the spyder package for Fedora. This issue is about launching spyder (python 2 version) on Fedora 26.
If I have pygtk2 installed in my system, spyder (python2 version) crashes upon launch. If I remove pygtk2 package, I am able to launch spyder (python 2 version) without any issues.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expected: Spyder (py 2 version) should launch
Observed: Segmentation fault.
Versions and main components
Spyder Version: 3.2.2, 3.2.3
This issue was also observed in the older versions of spyder but are now not relevant.
Python Version: 2.7.13
Qt Version: 5.7.1
PyQt Version: 5.8.1
Operating system: Fedora 26 x86_64
Dependencies
Python3 version of spyder is not affected.
The text was updated successfully, but these errors were encountered: