Skip to content

Fix segmentation fault - #2207

Merged
LysandreJik merged 2 commits into
masterfrom
fix_seg_fault
Dec 17, 2019
Merged

LysandreJik merged 2 commits into
masterfrom
fix_seg_fault

Conversation

@LysandreJik

@LysandreJik LysandreJik commented Dec 17, 2019 •

Copy link
Copy Markdown
Member

Fix segmentation fault that started happening yesterday night.
Following the fix from #2205 that could be reproduced using circle ci ssh access.

Currently fixing the unforeseen event with Python 2. The error with Python 2 was due to Regex releasing a new version (2019.12.17) that couldn't be built on Python 2.7.

@codecov-io

codecov-io commented Dec 17, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #2207 into master will increase coverage by 1.13%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2207      +/-   ##
==========================================
+ Coverage   80.32%   81.46%   +1.13%     
==========================================
  Files         122      122              
  Lines       18342    18345       +3     
==========================================
+ Hits        14734    14945     +211     
+ Misses       3608     3400     -208
Impacted Files Coverage Δ
transformers/file_utils.py 70.42% <83.33%> (-1.01%) ⬇️
transformers/modeling_openai.py 81.51% <0%> (+1.32%) ⬆️
transformers/modeling_ctrl.py 96.47% <0%> (+2.2%) ⬆️
transformers/modeling_xlnet.py 74.54% <0%> (+2.32%) ⬆️
transformers/modeling_roberta.py 71.76% <0%> (+12.35%) ⬆️
transformers/tests/modeling_tf_common_test.py 97.41% <0%> (+17.24%) ⬆️
transformers/modeling_tf_pytorch_utils.py 92.15% <0%> (+83%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f061606...14cc752. Read the comment docs.

@boy2000-007man

Copy link
Copy Markdown
Contributor

is this issue related to scipy/scipy#11237, which also started happening yesterday.

@LysandreJik

Copy link
Copy Markdown
Member Author

Indeed, this is related to that issue. I've just tested on the CircleCI machine directly, the segmentation fault happens when importing torch after tensorflow, when scipy is installed on the machine.

@loretoparisi

Copy link
Copy Markdown
Contributor

@LysandreJik I get this error on transfomers 2.2.2 on PyPi. When it will be updated?

>>> import transformers
Segmentation fault (core dumped)
root@261246f307ae:~/src# python --version
Python 3.6.8

@LysandreJik

Copy link
Copy Markdown
Member Author

This is due to an upstream issue related to scipy 1.4.0. Please pin your scipy version to one earlier than 1.4.0 and you should see this segmentation fault resolved.

@loretoparisi

Copy link
Copy Markdown
Contributor

@LysandreJik thank you this issue is destroying everything 🗡

@LysandreJik

Copy link
Copy Markdown
Member Author

Did pinning the scipy version fix your issue?

@loretoparisi

Copy link
Copy Markdown
Contributor

@LysandreJik I'm now pinning scipy==1.3.3 that is the latest version before RC1.4.x

@loretoparisi

loretoparisi commented Dec 19, 2019 •

Copy link
Copy Markdown
Contributor

I confirm that with 1.3.3 works, but they have just now pushed scipy==1.4.1. We have tested it and it works as well.

@LysandreJik

Copy link
Copy Markdown
Member Author

Glad you could make it work!

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