changing working directory results in hard crash Ubuntu 12.10 Python 2.7.3

229 views
Skip to first unread message

matt

unread,
Dec 31, 2012, 9:31:44 AM12/31/12
to spyd...@googlegroups.com
Hey guys, I'm a long time user of Spyder on Windows but am working some with Linux now.

When I change the working directory to path that comes from mounted media (such as my windows partition)

/media/LinuxUsername/OS/Users/WindowsUsername/blah

I get a hard crash in spyderlib (the version from apt-get, I guess I should try the development clone).  When I start back up it opens up my previously loaded files and then I can change to the directory without issue.  I didn't file an issue because I thought possibly it could be my unfamiliarity with Ubuntu and I was doing something wrong.  Any ideas on this?

Matt

Carlos Córdoba

unread,
Dec 31, 2012, 5:48:07 PM12/31/12
to spyd...@googlegroups.com
Hi Matt,

Do you have the Project Explorer open when doing the dir switch? We found some time ago that spyder is crashing when it's active.

Cheers,
Carlos

2012/12/31 matt <wmatta...@gmail.com>

Matt

--
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/-/sa764U9FZtYJ.
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.

Matt Anderson

unread,
Dec 31, 2012, 5:51:06 PM12/31/12
to spyd...@googlegroups.com
No, I have never really used the Project Explorer.  That view is closed/widget off

Carlos Córdoba

unread,
Dec 31, 2012, 6:00:54 PM12/31/12
to spyd...@googlegroups.com
Hhmm, if it's not that hard for you, please try to follow our guide to give us an stacktrace with which we can see what's exactly happening to you:


Cheers,
Carlos

2012/12/31 Matt Anderson <wmatta...@gmail.com>

Matt Anderson

unread,
Dec 31, 2012, 6:34:54 PM12/31/12
to spyd...@googlegroups.com
I think it must have something to do with the Unity desktop because it only occurs after a restart (Ubuntu 12.10).  I will work on the stacktrace, probably Wednesday morning.

Thanks, 
<Matt

Matt Anderson

unread,
Jan 1, 2013, 11:28:04 PM1/1/13
to spyd...@googlegroups.com
Any idea how this works with apport?  Apport seems to be robbing my core files on 12.10.  Possibly there is an easy way to get the stacktrace from Apport.  If not, I'll figure something out eventually.

Matt Anderson

unread,
Jan 2, 2013, 11:24:13 AM1/2/13
to spyd...@googlegroups.com
Ok, just fyi in order to get a core dump in 12.10 you have to reroute your core file arround apport in the /proc/sys/kernel/core_pattern file.

(gdb) bt

#0  0x00007f3891197425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f389119ab8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f38911d539e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007f38911dfb96 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007f3878c49916 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#5  0x00007f388ab000a8 in g_object_unref ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6  0x00007f3878c36f19 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#7  0x00007f3878c3b314 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#8  0x00007f388ab000a8 in g_object_unref ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9  0x00007f3878bdd99a in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#10 0x00007f3878c12f1f in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#11 0x00007f388aafb07e in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007f388ab0c865 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007f388ab144af in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007f388ab14642 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007f3878cb71b0 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#16 0x00007f388ab011b0 in g_object_run_dispose ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007f3878bdd99a in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#18 0x00007f3878c12f1f in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#19 0x00007f388aafb07e in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007f388ab0c865 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007f388ab144af in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007f388ab14642 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007f3878cb71b0 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#24 0x00007f388ab011b0 in g_object_run_dispose ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#25 0x00007f3878c12f1f in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#26 0x00007f388aafb140 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#27 0x00007f388ab0c865 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#28 0x00007f388ab144af in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#29 0x00007f388ab14642 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#30 0x00007f3878cb71b0 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#31 0x00007f388ab011b0 in g_object_run_dispose ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#32 0x00007f388bba6abb in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#33 0x00007f388bce42bb in QFileDialog::getExistingDirectory(QWidget*, QString const&, QString const&, QFlags<QFileDialog::Option>) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x00007f388c789db9 in ?? ()
   from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#35 0x000000000045f912 in call_function (oparg=<optimized out>, pp_stack=
    0x7fff836be750) at ../Python/ceval.c:4021
#36 PyEval_EvalFrameEx (f=f@entry=
    Frame 0x1e184e0, for file /usr/lib/python2.7/dist-packages/spyderlib/qt/compat.py, line 95, in getexistingdirectory (parent=<MainWindow(projectexplorer=<ProjectExplorer(plugin_actions=[], default_margins=(0, 0, 0, 0), ismaximized=False, selector=<WorkspaceSelector(line_edit=<QLineEdit at remote 0x3e1b320>, create_btn=None, first_time=True, browse_btn=<QPushButton at remote 0x3e1b440>) at remote 0x3e1b290>, isvisible=False, treewidget=<ExplorerTreeWidget(parent_widget=<...>, root_path=None, proxymodel=<ProxyModel(path_list=[], root_path=None) at remote 0x3e1b5f0>, fsmodel=<QFileSystemModel at remote 0x3e1b560>, _DirView__expanded_state=None, menu=<QMenu at remote 0x3e1b680>, show_all=False, _to_be_loaded=None, _scrollbar_positions=(0, 0), workspace=<Workspace(root_path=None, name=None, projects=[], ioerror_flag=False) at remote 0x39fd750>, valid_types=['.py', '.pyw', '.ipy', '.pyx', '.pxd', '.pxi', '.c', '.h', '.cc', '.cpp', '.cxx', '.h', '.hh', '.hpp', '.hxx', '.cl', '.f', '.for', '.f77', '.f90', '.f95', '.f2...(truncated), throwflag=throwflag@entry=0) at ../Python/ceval.c:2666
#37 0x0000000000467209 in PyEval_EvalCodeEx (co=0x2273b30, 
    globals=<optimized out>, locals=locals@entry=0x0, args=<optimized out>, 
    argcount=argcount@entry=3, kws=0x7f3804003378, kwcount=0, defs=0x244d958, 
    defcount=4, closure=closure@entry=0x0) at ../Python/ceval.c:3253
#38 0x000000000045ff77 in fast_function (nk=<optimized out>, na=3, 
    n=<optimized out>, pp_stack=0x7fff836be9e0, func=
    <function at remote 0x234ecf8>) at ../Python/ceval.c:4117
#39 call_function (oparg=<optimized out>, pp_stack=0x7fff836be9e0)
    at ../Python/ceval.c:4042
#40 PyEval_EvalFrameEx (f=f@entry=
    Frame 0x7f38040031d0, for file /usr/lib/python2.7/dist-packages/spyderlib/plugins/workingdirectory.py, line 295, in select_directory (self=<WorkingDirectory(pathedit=<PathComboBox(tips={False: u'This path is incorrect.\nEnter a correct directory path,\nthen press enter to validate', True: u'Press enter to validate this path'}, font=<QFont at remote 0x36450c0>) at remote 0x3651b90>, previous_action=<QAction at remote 0x3651c20>, plugin_actions=(None, None), default_margins=None, mainwindow=None, isvisible=False, histindex=0, next_action=<QAction at remote 0x3651cb0>, dockwidget=None, main=<MainWindow(projectexplorer=<ProjectExplorer(plugin_actions=[], default_margins=(0, 0, 0, 0), ismaximized=False, selector=<WorkspaceSelector(line_edit=<QLineEdit at remote 0x3e1b320>, create_btn=None, first_time=True, browse_btn=<QPushButton at remote 0x3e1b440>) at remote 0x3e1b290>, isvisible=False, treewidget=<ExplorerTreeWidget(parent_widget=<...>, root_path=None, proxymodel=<ProxyModel(path_list=[], root_path=None) at re...(truncated), throwflag=throwflag@entry=0) at ../Python/ceval.c:2666
#41 0x0000000000467209 in PyEval_EvalCodeEx (co=0x1698e30, 
    globals=<optimized out>, locals=<optimized out>, args=<optimized out>, 
    argcount=<optimized out>, kws=kws@entry=0x0, kwcount=kwcount@entry=0, 
    defs=defs@entry=0x0, defcount=defcount@entry=0, closure=closure@entry=0x0)
    at ../Python/ceval.c:3253
#42 0x00000000004a9fea in function_call (func=<optimized out>, 
    arg=<optimized out>, kw=<optimized out>) at ../Objects/funcobject.c:526
#43 0x000000000048249d in PyObject_Call (kw=0x0, arg=
    (<WorkingDirectory(pathedit=<PathComboBox(tips={False: u'This path is incorrect.\nEnter a correct directory path,\nthen press enter to validate', True: u'Press enter to validate this path'}, font=<QFont at remote 0x36450c0>) at remote 0x3651b90>, previous_action=<QAction at remote 0x3651c20>, plugin_actions=(None, None), default_margins=None, mainwindow=None, isvisible=False, histindex=0, next_action=<QAction at remote 0x3651cb0>, dockwidget=None, main=<MainWindow(projectexplorer=<ProjectExplorer(plugin_actions=[], default_margins=(0, 0, 0, 0), ismaximized=False, selector=<WorkspaceSelector(line_edit=<QLineEdit at remote 0x3e1b320>, create_btn=None, first_time=True, browse_btn=<QPushButton at remote 0x3e1b440>) at remote 0x3e1b290>, isvisible=False, treewidget=<ExplorerTreeWidget(parent_widget=<...>, root_path=None, proxymodel=<ProxyModel(path_list=[], root_path=None) at remote 0x3e1b5f0>, fsmodel=<QFileSystemModel at remote 0x3e1b560>, _DirView__expanded_state=None, menu=<QMenu at remote 0x3e1b680>, show_all...(truncated), func=<function at remote 0x16a0de8>) at ../Objects/abstract.c:2529
#44 instancemethod_call.8751 (func=<function at remote 0x16a0de8>, arg=
    (<WorkingDirectory(pathedit=<PathComboBox(tips={False: u'This path is incorrect.\nEnter a correct directory path,\nthen press enter to validate', True: u'Press enter to validate this path'}, font=<QFont at remote 0x36450c0>) at remote 0x3651b90>, previous_action=<QAction at remote 0x3651c20>, plugin_actions=(None, None), default_margins=None, mainwindow=None, isvisible=False, histindex=0, next_action=<QAction at remote 0x3651cb0>, dockwidget=None, main=<MainWindow(projectexplorer=<ProjectExplorer(plugin_actions=[], default_margins=(0, 0, 0, 0), ismaximized=False, selector=<WorkspaceSelector(line_edit=<QLineEdit at remote 0x3e1b320>, create_btn=None, first_time=True, browse_btn=<QPushButton at remote 0x3e1b440>) at remote 0x3e1b290>, isvisible=False, treewidget=<ExplorerTreeWidget(parent_widget=<...>, root_path=None, proxymodel=<ProxyModel(path_list=[], root_path=None) at remote 0x3e1b5f0>, fsmodel=<QFileSystemModel at remote 0x3e1b560>, _DirView__expanded_state=None, menu=<QMenu at remote 0x3e1b680>, show_all...(truncated), kw=0x0) at ../Objects/classobject.c:2602
#45 0x000000000049629d in PyObject_Call (kw=<optimized out>, arg=(), func=
    <instancemethod at remote 0x4030e60>) at ../Objects/abstract.c:2529
#46 PyEval_CallObjectWithKeywords (func=<instancemethod at remote 0x4030e60>, 
    arg=(), kw=<optimized out>) at ../Python/ceval.c:3890
#47 0x00007f388ceb7e70 in sip_api_invoke_slot ()
   from /usr/lib/python2.7/dist-packages/sip.so
#48 0x00007f388e17d7a6 in ?? ()
   from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
#49 0x00007f388e17daf0 in ?? ()
   from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
#50 0x00007f388e17dba2 in ?? ()
   from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
#51 0x00007f388dc8f123 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#52 0x00007f388b813a32 in QAction::triggered(bool) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#53 0x00007f388b813c20 in QAction::activate(QAction::ActionEvent) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#54 0x00007f388bbd851f in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#55 0x00007f388bbd87cc in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#56 0x00007f388bc9299a in QToolButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#57 0x00007f388b869850 in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#58 0x00007f388b819e9c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#59 0x00007f388b81eb6b in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#60 0x00007f388c841a56 in ?? ()
   from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#61 0x00007f388dc7956e in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#62 0x00007f388b81acd3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#63 0x00007f388b898554 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#64 0x00007f388b89744f in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#65 0x00007f388b8befa2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#66 0x00007f388d346ab5 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007f388d346de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#68 0x00007f388d346ea4 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007f388dca7bf6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#70 0x00007f388b8bec1e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#71 0x00007f388dc782bf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#72 0x00007f388dc78548 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#73 0x00007f388dc7d708 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#74 0x00007f388c80392b in ?? ()
   from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#75 0x000000000045f912 in call_function (oparg=<optimized out>, pp_stack=
    0x7fff836c0630) at ../Python/ceval.c:4021
#76 PyEval_EvalFrameEx (f=<optimized out>, throwflag=throwflag@entry=0)
    at ../Python/ceval.c:2666
#77 0x00000000004602b7 in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fff836c0800, func=
    <function at remote 0x3431050>) at ../Python/ceval.c:4107
#78 call_function (oparg=<optimized out>, pp_stack=0x7fff836c0800)
    at ../Python/ceval.c:4042
#79 PyEval_EvalFrameEx (f=<optimized out>, throwflag=throwflag@entry=0)
    at ../Python/ceval.c:2666
#80 0x00000000004602b7 in fast_function (nk=<optimized out>, 
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fff836c09d0, func=
    <function at remote 0x3431140>) at ../Python/ceval.c:4107
#81 call_function (oparg=<optimized out>, pp_stack=0x7fff836c09d0)
    at ../Python/ceval.c:4042
#82 PyEval_EvalFrameEx (f=f@entry=
    Frame 0x15faac0, for file spyder.py, line 2035, in <module> (), 
    throwflag=throwflag@entry=0) at ../Python/ceval.c:2666
#83 0x0000000000467209 in PyEval_EvalCodeEx (co=co@entry=0x1917130, 
    globals=globals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated), locals=locals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated), args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, 
    kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, 
    closure=closure@entry=0x0) at ../Python/ceval.c:3253
#84 0x00000000004d0242 in PyEval_EvalCode (co=co@entry=0x1917130, 
    globals=globals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated), locals=locals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated)) at ../Python/ceval.c:667
#85 0x00000000005102bb in run_mod.42724 (mod=<optimized out>, 
    filename=filename@entry=0x7fff836c248f "spyder.py", globals=globals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated), locals=locals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated), flags=flags@entry=0x7fff836c0c50, arena=arena@entry=0x15f9fd0)
    at ../Python/pythonrun.c:1365
#86 0x000000000044a466 in PyRun_FileExFlags (fp=fp@entry=0x15fbf20, 
    filename=filename@entry=0x7fff836c248f "spyder.py", start=start@entry=257, 
    globals=globals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated), locals=locals@entry=
    {'QMainWindow': <PyQt4.QtCore.pyqtWrapperType at remote 0x232b9f0>, 'Console': <PyQt4.QtCore.pyqtWrapperType at remote 0x1669bf0>, 'load_session': <function at remote 0x2be0e60>, 'osp': <module at remote 0x7f38921fada8>, 'QtSvg': <module at remote 0x24571d8>, 'QDesktopServices': <PyQt4.QtCore.pyqtWrapperType at remote 0x22e0a60>, 'CONF': <UserConfig(_optcre=<_sre.SRE_Pattern at remote 0x1bf8c30>, name='spyder', subfolder='.spyder2', _defaults=<OrderedDict(_OrderedDict__root=[[...], [...], None], _OrderedDict__map={}) at remote 0x24f00c0>, raw=1, _dict=<type at remote 0x1819840>, defaults=[('main', {'lightwindow/is_maximized': False, 'lightwindow/is_fullscreen': False, 'animated_docks': True, 'window/is_fullscreen': False, 'window/size': (1260, 740), 'vertical_dockwidget_titlebars': False, 'lightwindow/size': (650, 400), 'window/position': (10, 10), 'lightwindow/position': (30, 30), 'window/is_maximized': False, 'vertical_tabs': False}), ('quick_layouts', {'place_holder': ''}), ('editor_appearance', {'completi...(truncated), closeit=closeit@entry=1, flags=flags@entry=0x7fff836c0c50)
    at ../Python/pythonrun.c:1351
#87 0x000000000044a97a in PyRun_SimpleFileExFlags (fp=fp@entry=0x15fbf20, 
    filename=<optimized out>, filename@entry=0x7fff836c248f "spyder.py", 
    closeit=closeit@entry=1, flags=flags@entry=0x7fff836c0c50)
    at ../Python/pythonrun.c:943
#88 0x000000000044aa39 in PyRun_AnyFileExFlags (fp=fp@entry=0x15fbf20, 
    filename=filename@entry=0x7fff836c248f "spyder.py", 
    closeit=closeit@entry=1, flags=flags@entry=0x7fff836c0c50)
    at ../Python/pythonrun.c:747
#89 0x000000000044b6bc in Py_Main (argc=<optimized out>, argv=0x7fff836c0e08)
    at ../Modules/main.c:639
#90 0x00007f389118276d in __libc_start_main ()
   from /lib/x86_64-linux-gnu/libc.so.6
#91 0x00000000004ce0ad in _start ()

(gdb) info threads

  Id   Target Id         Frame 
  13   Thread 0x7f3816ffd700 (LWP 2818) 0x00007f389124e023 in select ()
   from /lib/x86_64-linux-gnu/libc.so.6
  12   Thread 0x7f38177fe700 (LWP 2817) 0x00007f3891e4904d in accept ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
  11   Thread 0x7f38163e2700 (LWP 2821) 0x00007f3891e4914c in recv ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
  10   Thread 0x7f3815be1700 (LWP 2837) 0x00007f3891e460fe in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  9    Thread 0x7f385cc9e700 (LWP 2814) 0x00007f3891e45d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  8    Thread 0x7f385d49f700 (LWP 2816) 0x00007f3891e4904d in accept ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
  7    Thread 0x7f385dcf2700 (LWP 2810) 0x00007f3891e45d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  6    Thread 0x7f3817fff700 (LWP 2811) 0x00007f3891249303 in poll ()
   from /lib/x86_64-linux-gnu/libc.so.6
  5    Thread 0x7f385f87f700 (LWP 2808) 0x00007f3891e45d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  4    Thread 0x7f385ef7e700 (LWP 2809) 0x00007f3891249303 in poll ()
   from /lib/x86_64-linux-gnu/libc.so.6
  3    Thread 0x7f3874905700 (LWP 2805) 0x00007f3891249303 in poll ()
   from /lib/x86_64-linux-gnu/libc.so.6
  2    Thread 0x7f3875106700 (LWP 2804) 0x00007f3891249303 in poll ()
   from /lib/x86_64-linux-gnu/libc.so.6
* 1    Thread 0x7f3890f49700 (LWP 2799) 0x00007f3891197425 in raise ()
   from /lib/x86_64-linux-gnu/libc.so.6
gdb.txt

Matt Anderson

unread,
Jan 30, 2013, 10:57:56 AM1/30/13
to spyd...@googlegroups.com
This happens because on a fresh boot, the partition isn't mounted until I click on Nautilus and view it.  Or at least that is how it works by default, so I added gvfs-mount -d <device> to my start up scripts and it works fine.  However, it seems Spyder will hard crash because somehow it can see the folder to browse to it, but it is not there yet because no gvfs-mount has been done.
Message has been deleted

Pierre Raybaut

unread,
Jan 31, 2013, 7:54:14 AM1/31/13
to spyd...@googlegroups.com
I've been able to reproduce this bug on Ubuntu 12.04 at home last night.
Reproducing it is very easy: just click several times on the "Working
directory" toolbar combo box, without even trying to change the
working directory (I tried to change the working directory in a
previous session though, so maybe it requires that at least two
different locations are already in the combo box history but that's
all).

So I agree with Sylvain: I doubt that this is coming from the fact
that a partition is mounted or not.

I'll try to fix it tonight (not sure if it's an easy one or not).

-Pierre

2013/1/30 Matt Anderson <wmatta...@gmail.com>:
> To unsubscribe from this group and stop receiving emails from it, send an
> email to spyderlib+...@googlegroups.com.
> To post to this group, send email to spyd...@googlegroups.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 31, 2013, 12:00:55 PM1/31/13
to spyd...@googlegroups.com
Hi Pierre, 
I am not sure if Matt refers to the same bug as he is using the stable version. 

Regarding the crash when clicking twice on the "working directory" toolbar, I noticed that if one clicks elsewhere in the meanwhile, putting the focus on a different widget, the change of working directory works fine. Maybe this will help. 

Sylvain

Matt Anderson

unread,
Jan 31, 2013, 12:36:21 PM1/31/13
to spyd...@googlegroups.com
I believe they are two different problems, although they may be related.  My issue is definitely with trying to change to a working directory that wasn't mounted before I started the qt open file dialog. 

Pierre Raybaut

unread,
Jan 31, 2013, 3:07:46 PM1/31/13
to spyd...@googlegroups.com
Hi,

A couple of 'hg bisect' commands later, I found out where the problem
comes from.
This bug has been introduced trying to solve Issue 918
(http://code.google.com/p/spyderlib/issues/detail?id=918) with
revision efc44f0ab900
(http://code.google.com/p/spyderlib/source/detail?r=efc44f0ab900).

I can't take action on this right now, but I'll try and fix asap.
Finding the bad revision was 75% of the job.

Cheers,
-Pierre


2013/1/31 Sylvain Corlay <sylvain...@gmail.com>:

Pierre Raybaut

unread,
Jan 31, 2013, 4:41:28 PM1/31/13
to spyd...@googlegroups.com
Ok, now it should be fixed with the following changeset:
http://code.google.com/p/spyderlib/source/detail?r=11d0f586f23c21073401e5205b02f3113d69e00a

You're very welcome to test it and review the code changes.

Cheers,
-Pierre

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

Sylvain Corlay

unread,
Jan 31, 2013, 11:12:25 PM1/31/13
to spyd...@googlegroups.com
Hi,
I just checked out the last revision and it seems to work nicely now. Thanks,

Sylvain

David Verelst

unread,
Feb 1, 2013, 3:13:39 AM2/1/13
to spyder
I occasionally still got some crashes (not consistently as before I have the impression), I'll try to get some tracebacks later and run it with the bootstrap method instead via my Archlinux package. Maybe its me and spyder stopped liking me ;-)

David


Pierre Raybaut

unread,
Feb 1, 2013, 3:45:59 AM2/1/13
to spyd...@googlegroups.com
The most important thing is to be able to reproduce the bug.
At least for the bug we discussed here, it was the only thing I
actually used to find where the problem comes from and then fix it.

-Pierre

2013/2/1 David Verelst <david....@gmail.com>:
Reply all
Reply to author
Forward
0 new messages