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.

Segfault with raw.plot() on macOS

See original GitHub issue

Consider the following example:

import numpy as np
import mne
info = mne.create_info(10, 500, "eeg")
raw = mne.io.RawArray(np.random.normal(scale=1e-5, size=(10, 10000)), info)
raw.plot()

When I run this script interactively (i.e. from IPython with %run plot_example.py) everything works fine. However, when I run the script with python3 plot_example.py, I get a segfault:

[1]    44467 segmentation fault  python3 plot_example.py

I use Python 3.8.2 installed via Homebrew, but the same happens with Anaconda Python 3.7.6 and 3.8.2. Is it just me or can someone reproduce this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
cbrnrcommented, Apr 7, 2020
0reactions
larsonercommented, Apr 27, 2020

I’ll close since it looks like @cbrnr is taking care of this upstream in https://github.com/matplotlib/matplotlib/pull/17084 (thanks!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

raw.plot() causing segmentation fault - does this represent an ...
I'm just trying to work my way through one of the very first tutorials, and every time I attempt to use the raw.plot()...
Read more >
Matplotlib segmentation fault Mac OS 11(Big Sur)
I am using the matplotlib's backend MacOSX to show a plot on GUI with the newest Mac OS 11 big sur. The script...
Read more >
rhdf5 segfault
Hi, I'm trying to install the devel version of graph on the devel version of R. This fails with the error: Error: object...
Read more >
What's new — MNE 1.3.dev0 documentation
Fix bug in mne.export.export_raw() when exporting raw to EDF with EDFLib when subject sex is missing (#11375 by new contributor Mark Alexander Henney)....
Read more >
Changes — BioXTAS RAW 2.1.4 documentation
Fixed a bug where changing the range for REGALS in the SVD plot when there were ... Made RAW mostly dark mode compatible...
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