My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 561: Spyder crashes when trying to detach the console or the editor
6 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2011

Restricted
  • Only users with Commit permission may comment.


Sign in to add a comment
 
Reported by imriso...@gmail.com, Feb 21, 2011
What steps will reproduce the problem?
1. detaching the internal console/editor or other windows 


What version of the product are you using? On what operating system?
spyder 2.0.5 with python 2.6.6, Qt 4.7.1 PyQt 4.8.3
I'm using Mac OS X 10.6.6

Please provide any additional information below.
I've open spyder with the -d flag to get some more information but all I got is this:

$ spyder -d
Start of MainWindow constructor
Initializing...
End of MainWindow constructor
*** Start of MainWindow setup ***
Loading object inspector...
Loading editor...

Loading file explorer...
Loading history plugin...
Loading online help...
Loading project explorer...
Loading external console...
Loading namespace browser...
Setting up main window...
Setting up window...
*** End of MainWindow setup ***
Segmentation fault


The segmentation fault occurred when I tried to detach the internal console.
I'm sorry that I do not have more information to give, but I just don't know how to get it.


Mar 13, 2011
#1 petrus.h...@gmail.com
I experienced this too on mac osx 10.6.6, repository version (2.0.9) spyderlib, PyQt4 4.8.3. Same results with spyder -d. Got spyder back to work by deleting the .spyder2 directory in user dir. 
Mar 21, 2011
Project Member #2 ccordoba12
Hi,

Does the solution provided by Petrush work for you? Unfortunately most of the main devs don't have a Mac to test Spyder.

Cheers,
Carlos
Mar 21, 2011
#3 imriso...@gmail.com
Sorry, I was out of office and did not have the time to test the suggestion.
I will try it soon, and report back.

Imri


Mar 21, 2011
Project Member #4 ccordoba12
Thanks Imri and please don't forget to update to the latest version of Spyder
Mar 24, 2011
#5 imriso...@gmail.com
I deleting ~/.spyder2 but Spyder continues to crash.

(I've downloaded and reinstalled the latest version of spyder and all its dependencies.)

Is this a Spyder issue? can it be a pyqt issue? or a qt issue?
Is there a way I could get more debug information from spyder to help fix this bug? I tried the -d flag, which you can see at the original bug report, but the output does not look very informative to me.
Mar 24, 2011
Project Member #6 ccordoba12
It seems this is an OS X related problem. See  Issue 502  for other strange problems that occur only on a Mac.

My guess is that this is a PyQt or/and a Qt problem. If you want to get a bit more info, you can go to the View menu and select "Internal console". This is the place where all internal error messages go. Try to look at what gets printed there before spyder crashes, or even better, record a video of your desktop during the process so that you can take a close look of that window.

If something gets printed on the internal console, please report back so we can do something about it.
Mar 25, 2011
#7 imriso...@gmail.com
thank you for your help.
I've opened the the internal console but nothing is printed there. 
Am I missing something?
Mar 26, 2011
Project Member #8 ccordoba12
Don't worry Imri, this means that the problem is not an spyder one (good to know), but a PyQt/Qt one.

I'll try to borrow a Mac's friend to check this out. 
Mar 26, 2011
Project Member #9 ccordoba12
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-Critical OpSys-OSX
Mar 26, 2011
#10 imriso...@gmail.com
thanks
May 16, 2011
Project Member #11 pierre.raybaut
(No comment was entered for this change.)
Labels: Cat-SpyderGUI
Jun 7, 2011
#12 AlexPark...@gmail.com
I also get this problem with spyder 2.0.11, Python 2.7.1, Qt 4.7.2, PyQt 4.8.3 on Mac OS X 10.6.6. The crash occurs when maximising or re-arranging the editor or console panes, but not the object inspector / variable explorer / etc one, which works fine. I think that  issue 673  is a duplicate of this one.
Jun 14, 2011
#13 reinert....@gmail.com
I had a similar crash (Segmentation fault). Click and drag the 'Console' window causes Spyder to crash. Details in the attached crash log. Also on OS X (10.6.7) with Spyder 2.0.12 and Python 2.6.6, Qt 4.7.1, PyQt 4.8.1
Python_2011-06-14-094753.crash
101 KB   View   Download
Jul 3, 2011
#14 C.AlanFi...@gmail.com
Same issue. Similar specs... any updates?
Jul 14, 2011
Project Member #15 pierre.raybaut
 Issue 673  has been merged into this issue.
Jul 14, 2011
Project Member #16 pierre.raybaut
Ok, this is clearly related to OS X only (so this is harder for me to debug unfortunately).

Anyway, here are some facts:
1. On Windows, rearranging dockwidgets works perfectly (no warnings, no segfault)
2. On Linux (Ubuntu 10.04 LTS), there are warnings in the console (see attached file) but no segfault, so it's acceptable

So, maybe preventing the warning display on Linux could prevent the segfault on OS X...
moving_dockwidgets_on_linux.txt
5.8 KB   View   Download
Aug 4, 2011
Project Member #17 pierre.raybaut
 Issue 725  has been merged into this issue.
Aug 15, 2011
#18 ebori...@gmail.com
This is almost certainly due to to the extra buttons that are being drawn in the tab-bar (time / options / kill the current process) -- the internal console happily re-/un-docks, as do the file explorer, and variable explorer, but any windows (not just consoles) with extra buttons in the tab-bar crash, probably because there is nowhere to draw them in a floating (tabless) window...  Perhaps they could go into an actual toolbar when these are un-docked?
Aug 15, 2011
Project Member #19 ccordoba12
I can confirm that only un-docking the editor and the console makes Spyder crash. There are no problems with the other plugins.

I also attach the crash report generated by the system (I can't read anything useful there but maybe it can help).
Crash.txt
90.6 KB   View   Download
Summary: Spyder crashes when trying to detach one of its widgets
Status: Accepted
Aug 15, 2011
Project Member #20 ccordoba12
I discovered the problem after a quick glance at the Qt bug tracker. It's a bug in Qt itself. Check out these two bug reports:

https://bugreports.qt.nokia.com/browse/QTBUG-14365
https://bugreports.qt.nokia.com/browse/QTBUG-20104

The solution is not to enable documentMode in the QTabwidget of both the External Console and Editor plugins. I can confirm that commenting lines 329-330 and 565-566 of spyderlib/plugins/externalconsole.py and spyderlib/widgets/editor.py make the issue disappear.

From the documentation for DocumentMode

http://doc.qt.nokia.com/4.7-snapshot/qtabwidget.html#documentMode-prop

it seems like it wouldn't be a big deal to disable it on Mac to make this ugly bug go away.
Status: Started
Aug 15, 2011
Project Member #21 ccordoba12
(No comment was entered for this change.)
Summary: Spyder crashes when trying to detach the console or the editor
Labels: Milestone-Release2.1
Aug 15, 2011
#22 oren...@gmail.com
 issue 561 
This is a mac specific bug, it doesn't happen in linux. I haven't tried it
in Windows

-- 
Oren Schaedel
Postdoctoral Fellow, Sternberg Lab.
California Institute of Technology
1200 E. California Blvd
Pasadena 91125
MC-156-29
USA

++1-626-395-8391
Aug 16, 2011
Project Member #23 ccordoba12
Thanks Oren. Yes, this is a mac only bug, that's why we have assigned the OpSys-OSX label to it.
Aug 16, 2011
#24 ebori...@gmail.com
Implemented fix proposed in comment 20 in MacPorts r82602.
Aug 29, 2011
Project Member #25 ccordoba12
This issue was closed by revision 4e4ccecf9342.
Status: Fixed
Aug 29, 2011
Project Member #26 ccordoba12
Thanks all for your patience. We added a temporal fix until the mentioned Qt bug is fixed. It will be release with 2.1.
Feb 16, 2015
Project Member #27 ccordoba12
(No comment was entered for this change.)
Labels: Restrict-AddIssueComment-Commit
Feb 16, 2015
Project Member #28 ccordoba12
This issue was migrated to https://github.com/spyder-ide/spyder/issues/

The issue number is exactly the same
Sign in to add a comment

Powered by Google Project Hosting