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
PySide segfaults immediately on Linux #1404
Conversation
@mdboom : I've put a release critical label on this (If you don't agree, feel free to take it off). |
I can't test this; I don't have a linux machine. |
@pelson: I agree it's release critical. Thanks for that. |
…he cursor. Changing the cursor only on the window and not globally for the application seems to resolve the problem.
I think I have a fix here. When it tries to set the cursor shape globally for the application, it was crashing. Setting the cursor only for the window (and not the app as a whole) mysteriously resolves the issue. Would those on a Mac mind testing this (with both PyQt4 and PySide)? |
With PySide 1.1.2 on OSX 10.8, your test script above works OK with or without this change. Setting the cursor only for the window seems like the right thing to do in any case, doesn't it? |
Yes -- I think this is more "expected" in any event. |
Also, can you confirm it doesn't break if you use PyQt4 instead of PySide? They both use the same backend code (only with different imports). |
On 2012/10/16 7:42 AM, Michael Droettboom wrote:
PyQt4 also works. |
Same here. OS X 10.7 python 2.7.3. |
Great! I'm going to go ahead and merge, then. |
PySide segfaults immediately on Linux
Hi @mdboom et al, I noticed that this change broke code I was using that instantiated a FigureCanvas outside of pyplot. My problem is that
The documentation of FigureManagerBase says it is a "helper class for pyplot mode". Are FigureCanvases used outside of pyplot supposed to have a manager attribute? If so, should that be added to the FigureCanvas.init I can solve my own problem user-side, by creating a manager. I'm just posting here in case this behavior is unintended. |
One solution that I think does the same thing:
since Qt FigureCanvases are QWidgets |
* 'v1.2.x' of github.com:matplotlib/matplotlib: Alternative to #1404. Sets the cursor without refering to a FigureManager Update version numbers Exception message improvement. Fixed transform=None behaviour on Artists. Add trove classifiers to setup.py Fix AttrituteError for .lower on tuple of strings Tables: Fix get_window_extent for table to allow table to be added to bbox_extra_artists. The get_window_extent is a method on the cells not the key of the cells. Conflicts: lib/matplotlib/__init__.py
PySide 1.1.0 crashes upon startup with this script
It may or may not be related to #1323. (It happens whether or not that patch is applied).