question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder crashes with segmentation fault on startup in Anaconda 4.5.0

See original GitHub issue

DEVELOPER NOTE: This error is now fixed in Spyder >= 3.3.0. To resolve it, please update to the current version with conda update spyder from the Anaconda Prompt/Terminal/command line, which also fixes other bugs and adds new features, enhancement and usability/documentation improvements. Thanks!

Hi, after updating Spyder on Anaconda it crashes on startup. The splash screen shows up before terminating with a segmentation fault. It can be reproduced in a minimal Anaconda environment with:

# Create minimal environment:
~$ conda --version
conda 4.5.0
~$ conda create --name tst
~$ conda activate tst
~$ conda install spyder
~$ rm -rf ~/.config/spyder-py3
~$ SPYDER_DEBUG="3" spyder --reset
*** Reset Spyder settings to defaults ***
removing: /home/brunn/.config/spyder-py3/spyder.ini
removing: /home/brunn/.config/spyder-py3/langconfig

# Run spyder:
~$ SPYDER_DEBUG="3" spyder
Start of MainWindow constructor
End of MainWindow constructor
*** Start of MainWindow setup ***
  ..core actions
  ..toolbars
  ..tools
  ..sift?
  ..plugin: internal console
    ..internal console: initializing
  ..plugin: working directory
Loading help...
Loading outline explorer...
Loading editor...
Introspection Plugin Loaded: rope
Introspection Plugin Loaded: jedi
Introspection Plugin Loaded: fallback
setfocusto: <spyder.widgets.sourcecode.codeeditor.CodeEditor object at 0x7f99901c3948>
current_changed: 0 <spyder.widgets.sourcecode.codeeditor.CodeEditor object at 0x7f99901c3948> 140297524492616
Added thread <spyder.widgets.editor.AnalysisThread object at 0x7f9990155ee8> to queue
Added thread <spyder.widgets.editor.AnalysisThread object at 0x7f9990155f78> to queue
  ..widgets
Loading file explorer...
Loading history plugin...
Loading online help...
Loading project explorer...
Updating queue:
    started: 0
    pending: 2
===>starting: <spyder.widgets.editor.AnalysisThread object at 0x7f9990155ee8>
Updating queue:
    started: 1
    pending: 1
===>starting: <spyder.widgets.editor.AnalysisThread object at 0x7f9990155f78>
Loading namespace browser...
Updating queue:
    started: 0
    pending: 0
Updating queue:
    started: 0
    pending: 0
Loading IPython console...
Setting up main window...
Setting up window...
*** End of MainWindow setup ***
Speicherzugriffsfehler (means: segmentation fault)

I’m not quite sure how to continue debugging. Investigating the core dump did not yield in any results. I’m using Debian unstable. The conda package info returns:

spyder 3.2.8 py36_0
-------------------
file name   : spyder-3.2.8-py36_0.tar.bz2
name        : spyder
version     : 3.2.8
build string: py36_0
build number: 0
channel     : https://repo.anaconda.com/pkgs/main/linux-64
size        : 2.6 MB
arch        : None
constrains  : ()
license     : MIT
md5         : 9ad003181d3ce2134a6f024b86a2cdab
platform    : None
subdir      : linux-64
timestamp   : 1521092348360
url         : https://repo.anaconda.com/pkgs/main/linux-64/spyder-3.2.8-py36_0.tar.bz2
dependencies:
    chardet >=2.0
    cloudpickle
    jedi >=0.9
    nbconvert
    numpydoc
    pickleshare
    psutil
    pycodestyle
    pyflakes
    pygments >=2.0
    pylint
    pyqt
    python >=3.6,<3.7.0a0
    pyzmq
    qtawesome >=0.4.1
    qtconsole >=4.2
    qtpy >=1.2.0
    rope >=0.9.4
    sphinx

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:38 (16 by maintainers)

github_iconTop GitHub Comments

49reactions
vollbiercommented, May 2, 2018

Following a suggestion in #3326, I was able to work around the problem by doing

conda install pyopengl

This problem is also addressed in PR #7029. Thanks.

14reactions
jaxankeycommented, May 3, 2018

Same issue for me on Ubuntu 18.04. Doing a conda install pyopengl fixed it for me as well. Here is the output, which may shed some light.

conda install pyopengl
Solving environment: done

## Package Plan ##

  environment location: /home/jack/Anaconda3

  added / updated specs: 
    - pyopengl


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    pyopengl-3.1.1a1           |      np113py36_0         1.1 MB
    numpy-1.13.3               |   py36hdbf6ddf_4         3.9 MB
    freeglut-2.8.1             |                0         554 KB
    ------------------------------------------------------------
                                           Total:         5.6 MB

The following NEW packages will be INSTALLED:

    freeglut: 2.8.1-0              
    pyopengl: 3.1.1a1-np113py36_0  

The following packages will be DOWNGRADED:

    numpy:    1.14.2-py36hdbf6ddf_1 --> 1.13.3-py36hdbf6ddf_4
Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder anaconda crashes on Linux with segmentation fault
(Spyder maintainer here) This problem is caused by faulty graphical card drivers and there are two ways to fix it: Update to Spyder...
Read more >
Spyder on Anaconda crashes with Segmentation fault error on ...
Solution: I uninstalled the latest Anaconda release (5.2) and downgraded to Anaconda 5.0. Now everything works just fine.
Read more >
Index of Portage & Programming - Gentoo Forums
Page:1 · "media-libs/mesa ERROR: Problem encountered: EGL requires dri" Page:1 · "xattr-install segmentation fault when installing compsize" Page:1 ...
Read more >
conda-forge - :: Anaconda.org
aiohue, 4.5.0, Apache-2.0, X, Python module to talk to Philips Hue. ... Provider for Apache Airflow. Implements apache-airflow-providers-segment package.
Read more >
spyder-ide/public - Gitter
@CAM-Gerlach the IPython console error is gone whith pip install -U matplotlib ... edge-case bugs I've never had any critical problems (crashes, freezes, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found