-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory errors on Fedora 29 #516
Comments
That's really weird. How did you install the wordcloud package? |
@amueller, as ususal way: pip3 install wordcloud --user |
Can you provide a self-contained example to reproduce?
And what was the output of the pip install?
Sent from phone. Please excuse spelling and brevity.
…On Sat, Dec 7, 2019, 04:28 Yaroslav Zotov ***@***.***> wrote:
@amueller <https://github.com/amueller>, as ususal way:
pip3 install wordcloud --user
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#516?email_source=notifications&email_token=AADNYFVK643ZRP2KO7JP63DQXOJGPA5CNFSM4JWVZOL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGF3VQ#issuecomment-562847190>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADNYFQUI2LUKZA6RI6OX2TQXOJGPANCNFSM4JWVZOLQ>
.
|
The complete example is here - https://gist.github.com/qiray/3c8bc3a78a29d46a76538f6fae6f4049 pip3 output:
|
Sorry for the slow reply. Can you try building wordcloud from scratch on your system and see if you observe the same issue? |
though it seems an issue in PIL, not in wordcloud... Maybe reporting to PIL or fedora would make sense? |
It looks like rebuilding wordcloud doesn't help. I think I'll update Fedora later and check it again. |
Can you see if you can reproduce with just PIL? |
I tried some PIL examples and it seems to be correct. |
Can you open an issue there please? |
Well, I can but I can't reproduce this error using PIL only. |
Oh sorry I misread your reply. Can you isolate the call in wordcloud that produces the failure then? It looks like it is a PIL call. |
I found that it crashes in file wordcloud/wordcloud.py in method generate_from_frequencies() at line: box_size = draw.textsize(word, font=transposed_font) I also tried to make a wordcloud with a custom font but had same result. |
Some updates. I tried clean install of new Fedora 31 and it seems to be correct. So it maybe was an error in my distributive. |
I had the same issue in fedora 30 and solved it by downgrading pillow version to 6.2.2. |
Same thing just happened to me in Fedora 31, |
met the same problem, and successfully got the picture after import the packages...(using Pillow 8.0.1) import matplotlib.pyplot as plt
from gensim import corpora, models finally I install the Pillow 6.2.2 and running good |
Some update for this issue: |
FYI, @shirzady1934 's fix did it for me, but I did have to pass in I also didn't use Full command: pip install --ignore-installed -U --compile --install-option=-O1 Pillow |
AFAIK this is being worked on upstream, the root cause has hopefully been identified in python-pillow/Pillow#4225 and there's a PR that looks promising in python-pillow/Pillow#5062. So this issue can probably be closed? |
The PR has been merged and released as part of Pillow 8.2.0 |
Description
I have strange memory errors on Fedora 29 when use wordcloud package. Error messages are:
or
or
Steps/Code to Reproduce
I run this code ('text' argument is plain text in Russian, 'filename' - something like 'output.png'):
Example:
Something strange. When there are some unsused imports the code runs successfully.
Expected Results
I expect this code to run successfully.
Actual Results
I see "Segmentation fault" error. When run in GDB there is a backtrace like this one:
Versions
I have this error only in Fedora 29 (with different Python versions). When I run it in Linux Mint 19, Fedora 27 or Windows 10 everything seems well.
The text was updated successfully, but these errors were encountered: