-
Notifications
You must be signed in to change notification settings - Fork 335
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
Crash on draw_text #517
Comments
Interesting. How easy is it for you to modify the
...if changing 5000 to 10 would fix it. |
I changed it to 10, but still crashing. I ran the sample code under |
@pvcraven It seems the problem is in the line Crashing code example (munmap_chunk(): invalid pointer):
Works without any problem:
What should I do next? Should I post it as a bug in Pillow repository or should we think how to change signature of |
Interesting. Your sample code doesn't error out for me. Fonts could be cached though to help with performance. I spent all morning trying to work the text to use Pyglet's text commands, but I'm not sure if that is the right track to take. |
Though I use official Fedora build it seems the error to be specific to my OS. I can handle it by implementing my own version of |
This seems to be pillow-depended, so closing here. |
Bug Report
I'm trying to add scoring to my game, but sometimes program just crashed. I found out that the problem is with
arcade.draw_text
. I localized the problem to a minimal example below. This code will crash very fast (for me from 30 to 500 score points) with 2 different errors:OR
What I'm doing wrong?
P.S. Of course in my game score doesn't change so fast, but application crash sooner or later which is very disappointing behaviour.
Steps to reproduce/example code:
OS Fedora 30
Python 3.7.5
arcade==2.1.7
numpy==1.17.4
Pillow==6.2.1
pyglet==1.4.7
pyglet-ffmpeg2==0.1.15
The text was updated successfully, but these errors were encountered: