2.2 beta 1 crash when changing main working directory from the toolbar

55 views
Skip to first unread message

Sylvain Corlay

unread,
Jan 22, 2013, 11:01:46 PM1/22/13
to spyd...@googlegroups.com
This occurs only with the 2.2 beta 1 version of spyder (not with 2.1). I experienced it on Ubuntu 12.04 64 bits as well as Windows XP. Apparently, it works on Windows 7.
S.

David Verelst

unread,
Jan 23, 2013, 3:33:51 AM1/23/13
to spyder
I can replicate this on Archlinux 64bit. Although it doesn't seem to happen on every change, it takes a few seconds before the crash happens. With the --debug option it get this:

$ spyder -d
Start of MainWindow constructor
Initializing...
End of MainWindow constructor
*** Start of MainWindow setup ***
abort: repository /usr/lib/python2.7/site-packages not found!
Loading object inspector...
Loading outline explorer...
Loading editor...
Loading file explorer...
Loading history plugin...
Loading online help...
Loading project explorer...
Loading external console...
Loading IPython console...
Loading namespace browser...
Setting up main window...
Setting up window...
*** End of MainWindow setup ***
Segmentation fault (core dumped)

I don't know yet what the first line means (no site-packages repo found) because that is actually the valid and correct site-packages directory of my system.

Regards,
David


On 23 January 2013 05:01, Sylvain Corlay <sylvain...@gmail.com> wrote:
This occurs only with the 2.2 beta 1 version of spyder (not with 2.1). I experienced it on Ubuntu 12.04 64 bits as well as Windows XP. Apparently, it works on Windows 7.
S.

--
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/-/1GgnTsQfwu4J.
To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.

Pierre Raybaut

unread,
Jan 27, 2013, 4:57:50 AM1/27/13
to spyd...@googlegroups.com
Hi,

This may be related to the new Project Explorer design which is based
on the same base class as File Explorer
(spyderlib.widgets.explorer.FilteredDirView).

Another similar segmentation fault was fixed recently:
http://code.google.com/p/spyderlib/source/detail?r=8d6d603d1f31

Thank you for these bug reports.
However, the only way for us to understand where it comes from and to
fix it is to be able to study a real traceback. Following instructions
of this wiki page will provide such a traceback:
http://code.google.com/p/spyderlib/wiki/HowToDebugQtCrash

Cheers,
-Pierre

2013/1/23 David Verelst <david....@gmail.com>:

Pierre Raybaut

unread,
Jan 27, 2013, 5:00:33 AM1/27/13
to spyd...@googlegroups.com
Hmmm... sorry I've read your posts too quickly: I was sure that you
wrote "Changing Workspace" instead of "Changing working directory". So
this has probably nothing to do with the new Project Explorer
design... However, the full traceback is still needed.

-Pierre

2013/1/27 Pierre Raybaut <pierre....@gmail.com>:

Sylvain Corlay

unread,
Jan 27, 2013, 11:41:01 AM1/27/13
to spyd...@googlegroups.com
Hi Pierre, here is the backtrace and a list of threads. I hope this helps. 
S. 
backtrace.txt
threads.txt

Pierre Raybaut

unread,
Jan 27, 2013, 11:58:03 AM1/27/13
to spyd...@googlegroups.com
Unfortunately, this is not helping much (maybe someone else will be
inspired). Are you using debug versions of Python and PyQt? (because I
saw more detailed backtraces with informations on the Python script
line which is involved in the segmentation fault)

Apparently, this has something to do with the combo box object
(spyderlib.widgets.comboboxes.PathComboBox). This is a generic object
also used by the "Find in files" plugin. So I suspect that you should
experience segfault when changing the search directory in this plugin
too, do you?

Thanks,
-Pierre

2013/1/27 Sylvain Corlay <sylvain...@gmail.com>:
> Visit this group at http://groups.google.com/group/spyderlib?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Sylvain Corlay

unread,
Jan 27, 2013, 12:43:19 PM1/27/13
to spyd...@googlegroups.com
I don't experience this bug with the "Find in files" plugin. 

A detail that could help though: the first time I change the working directory, it works fine. The crash occurs when clicking on the combobox the second time. 

Regarding the generation of the core file in debug mode by running boostrap.py through gdb with "gdb -ex r --args python bootstrap.py", when the crash occurs, xorg would completely freeze and I need to kill gdb.

S. 

Sylvain Corlay

unread,
Jan 27, 2013, 12:45:59 PM1/27/13
to spyd...@googlegroups.com
One workaround for the bug seems to click elsewhere (such as the editor) between the two changes of working directory.
When I do this, it seems to work just fine. 
Reply all
Reply to author
Forward
0 new messages