Skip to content

make_report example segfault - #5894

Closed
massich wants to merge 4 commits into
mne-tools:masterfrom
massich:report_segfault
Closed

massich wants to merge 4 commits into
mne-tools:masterfrom
massich:report_segfault

Conversation

@massich

@massich massich commented Jan 30, 2019

Copy link
Copy Markdown
Contributor

related to #5893.

This is what I get on my machine:

~/code/mne-python report_segfault*
(mne) ❯ ipython examples/visualization/make_report.py         
Fatal Python error: Segmentation fault

Thread 0x00007f6211648700 (most recent call first):
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/threading.py", line 295 in wait
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/threading.py", line 551 in wait
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/core/history.py", line 829 in run
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/core/history.py", line 58 in needs_sqlite
  File "<decorator-gen-24>", line 2 in run
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/threading.py", line 884 in _bootstrap

Current thread 0x00007f621490a740 (most recent call first):
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/tvtk/tvtk_base.py", line 595 in _wrap_call
  File "tvtk_classes/open_gl_render_window.py", line 79 in get_pixel_data
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/mayavi/tools/figure.py", line 348 in screenshot
  File "/home/sik/code/mne-python/mne/report.py", line 150 in _iterate_trans_views
  File "/home/sik/code/mne-python/mne/report.py", line 1965 in _render_trans
  File "/home/sik/code/mne-python/mne/report.py", line 298 in _iterate_files
  File "/home/sik/code/mne-python/mne/report.py", line 1470 in <genexpr>
  File "/home/sik/code/mne-python/mne/report.py", line 1470 in parse_folder
  File "/home/sik/code/mne-python/mne/utils/_logging.py", line 74 in verbose
  File "<string>", line 2 in parse_folder
  File "/home/sik/code/mne-python/examples/visualization/make_report.py", line 30 in <module>
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/utils/py3compat.py", line 188 in execfile
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2683 in safe_execfile
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/core/shellapp.py", line 323 in _exec_file
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/core/shellapp.py", line 391 in _run_cmd_line_code
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/core/shellapp.py", line 271 in init_code
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/terminal/ipapp.py", line 323 in initialize
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/traitlets/config/application.py", line 87 in catch_config_error
  File "<decorator-gen-112>", line 2 in initialize
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/traitlets/config/application.py", line 657 in launch_instance
  File "/home/sik/miniconda3/envs/mne/lib/python3.6/site-packages/IPython/__init__.py", line 125 in start_ipython
  File "/home/sik/miniconda3/envs/mne/bin/ipython", line 11 in <module>
zsh: segmentation fault (core dumped)  ipython examples/visualization/make_report.py

let's see what travis has to say

@codecov

codecov Bot commented Jan 30, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5894 into master will decrease coverage by 2.48%.
The diff coverage is 11.11%.

@@            Coverage Diff             @@
##           master    #5894      +/-   ##
==========================================
- Coverage   89.31%   86.82%   -2.49%     
==========================================
  Files         405      396       -9     
  Lines       74271    71878    -2393     
  Branches    12297    12071     -226     
==========================================
- Hits        66335    62411    -3924     
- Misses       5072     6586    +1514     
- Partials     2864     2881      +17

@sappelhoff

Copy link
Copy Markdown
Member

slightly different but same result here:

(mne) stefanappelhoff@arc-lin-004309:~/Desktop/bids/mne-python$ ipython examples/visualization/make_report.py 
Embedding : jquery-1.10.2.min.js
Embedding : jquery-ui.min.js
Embedding : bootstrap.min.js
Embedding : jquery-ui.min.css
Embedding : bootstrap.min.css
Iterating over 28 potential files (this may take some time)
Rendering : /home/stefanappelhoff/mne_data/MNE-sample-data/MEG/sample/all-trans.fif
Using outer_skin.surf for head surface.
Getting helmet for system 306m
Segmentation fault (core dumped)

Comment thread mne/report.py
mlab.view(view[0], view[1])
if fig.scene is not None:
try:
mlab.process_ui_events()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this helps or if it's the same. I have this in one of my scripts:

from pyface.api import GUI
GUI().process_events()

copied from some github issue ...

@larsoner

Copy link
Copy Markdown
Member

There was a commit one month ago to Mayavi that might fix it:

enthought/mayavi#771

Can you see if updating Mayavi fixes the problem?

@larsoner

larsoner commented Jun 7, 2019

Copy link
Copy Markdown
Member

I think I found a fix, PR coming hopefully soon

@massich
massich deleted the report_segfault branch August 7, 2019 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants