Hello,
I am having a strange problem with spyder (frequent crash / segmentation
fault at startup), which I am not sure to understand where it comes from. I
thought it could be good to report it here.
First some infos about my config:
Mac Os Lion 10.7.4
Standard macport installation, that is (what I guess is relevant here):
python 2.7.3
qt4-mac 4.7.4
pyqt 4.9.1
ipython 0.12.1
So far I could reproduce it on spyder 2.1.10 as well as with the last
repository version (Rev.675ed3b0779f+:2190+), which I start using the
bootstrap.py script.
I could not find one way to always reproduce it, but this is coming pretty
often so I could start to nail it down.
How I most often encounter the crash (almost always, with few exceptions)
1 Work normally with spyder (it does start at some point and then seems
rather stable)
2 At some point quit spyder (Python -> Quit Python)
3 enter python bootstrap.py (for dev version) or spyder (for regular
macport version)
4
a if the program had not crashed at the last start attempt after the
splash screen and quite a few lines in the terminal, the program terminates
with error 'Segmentation fault: 11', or not.
b if you try again after a crash, a popup window asks whether you want
to restore windows or not. Either option will lead to a crash (or no crash
after a few attempts).
Starting successfully, and quitting again without doing anything never
leads to a crash.
When spyder does crash at startup, I always succeed in restarting the
program after several attempts, n varying from 2 to 10 typically.
Attached are the logs of a 'successful' and 'crashed' start with the
--debug option (dev version). I do not see any difference.
I also attached what ipython returns when spyder is started doing a %run
bootstrap.py from the ipython console.
A 'python bootstrap -- --reset' does help, but does not seem to be an
absolute solution, as the program sometimes crashes directly after I made
the reset.
As you can see from the logs, there are quite a few complains about the
projectmanager, which I do use.
Indeed, one reproducible way of reproducing the problem (after a --reset
start, otherwise not) consists in opening the project manager, and opening
a file. After I quit the program and restart I always get a seg-fault the
first time, and never the second time.
Once or twice I saw the program crashing when opening the project manager
window.
Unfortunately, this does not seem to be the sole problem or the whole
explanation, as I also experiences crashes after opening a file using the
file->open menu. But in this case, the program does not always crash after
I opened the file and restart it. Is there maybe something the editor is
doing with the project manager if you open a file?
Anyway, I could not get any further on that. Does anybody have an idea, or
can give me a way to find more information?
Congratulation in any case to the dev team for the very nice work!
Guillaume
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/spyderlib/-/l3UPzys7hrQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.
potdevin@grenoble:~/workspaces/python/tools/spyderlib$ python bootstrap.py --
--debug
Executing Spyder from source checkout
Revision 675ed3b0779f+:2190+, Branch: default
01. Patched sys.path with /Users/potdevin/workspaces/python/tools/spyderlib
02. No PySide detected, using PyQt4 if available
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygments/plugin.py:39:
UserWarning: Module rope was already imported from
/Users/potdevin/workspaces/python/tools/spyderlib/rope/__init__.pyc, but
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
is being added to sys.path
import pkg_resources
03. Imported Spyder 2.2.0dev (Qt 4.7.4 via PyQt4 (API v2) 4.9.1)
0x. Enforcing parent console (Windows only)
04. Executing spyder.main()
Start of MainWindow constructor
Initializing...
End of MainWindow constructor
*** Start of MainWindow setup ***
Loading object inspector...
Loading outline explorer...
Loading editor...
Loading file explorer...
Loading history plugin...
Loading online help...
Loading project explorer...
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Traceback (most recent call last):
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 455, in icon
project = self.treeview.get_source_project(fname)
File
"/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.py",
line 664, in get_source_project
return self.workspace.get_source_project(fname)
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Loading external console...
Loading IPython console...
Loading namespace browser...
Setting up main window...
Setting up window...
*** End of MainWindow setup ***
crash-start-debugoption.rtf
Description: RTF file
ipython
Python 2.7.3 (default, Apr 19 2012, 00:55:09)
Type "copyright", "credits" or "license" for more information.
IPython 0.12.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: %run bootstrap.py
Executing Spyder from source checkout
Revision 675ed3b0779f+:2190+, Branch: default
01. Patched sys.path with /Users/potdevin/workspaces/python/tools/spyderlib
02. No PySide detected, using PyQt4 if available
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygments/plugin.py:39:
UserWarning: Module readline was already imported from
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/rlineimpl.pyc,
but
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/readline
is being added to sys.path
import pkg_resources
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygments/plugin.py:39:
UserWarning: Module rope was already imported from
/Users/potdevin/workspaces/python/tools/spyderlib/rope/__init__.pyc, but
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
is being added to sys.path
import pkg_resources
03. Imported Spyder 2.2.0dev (Qt 4.7.4 via PyQt4 (API v2) 4.9.1)
0x. Enforcing parent console (Windows only)
04. Executing spyder.main()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in icon(self, icontype_or_qfileinfo)
453 fname = osp.normpath(unicode(qfileinfo.absoluteFilePath()))
454 if osp.isdir(fname):
--> 455 project = self.treeview.get_source_project(fname)
456 if project is None:
457 return super(IconProvider, self).icon(qfileinfo)
/Users/potdevin/workspaces/python/tools/spyderlib/spyderlib/widgets/projectexplorer.pyc
in get_source_project(self, fname)
662 def get_source_project(self, fname):
663 """Return project which contains source *fname*"""
--> 664 return self.workspace.get_source_project(fname)
665
666 def get_project_from_name(self, name):
AttributeError: 'ExplorerTreeWidget' object has no attribute 'workspace'
Segmentation fault: 11
