Skip to content
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

Segmentation fault (something about fonts i guess) #112

Closed
coresistantcanary opened this issue Aug 29, 2018 · 1 comment
Closed

Segmentation fault (something about fonts i guess) #112

coresistantcanary opened this issue Aug 29, 2018 · 1 comment

Comments

@coresistantcanary
Copy link

coresistantcanary commented Aug 29, 2018

Hello, devs

I get "segmentation fault (core dumped)" while executing this script:

import pygame_sdl2 ; pygame_sdl2.import_as_pygame()
import pygame
pygame.init()
font = pygame.font.Font(None, 20)
pygame.quit()  # segfault

No segmentation faults happen if i do either one of these:

  • comment out the line with font = ...
  • comment out pygame.quit()
  • just use pygame instead of pygame_sdl2

I'm using Python3.7 on Linux Mint 19. pygame_sdl2 installed via pip3.7 .
I'm attaching core dump and Valgrind output if they can be useful.
pgsdl2sf.zip

@sheerluck
Copy link

I stumbled upon the same problem and accidentally tried to add del font right before pygame.quit() and it helped — no segfault anymore

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

No branches or pull requests

3 participants