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

segfault when using pygame for ~5 minutes #87837

Closed
Pycryptor10 mannequin opened this issue Mar 30, 2021 · 6 comments
Closed

segfault when using pygame for ~5 minutes #87837

Pycryptor10 mannequin opened this issue Mar 30, 2021 · 6 comments
Labels
3.9 only security fixes topic-tkinter type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@Pycryptor10
Copy link
Mannequin

Pycryptor10 mannequin commented Mar 30, 2021

BPO 43671
Nosy @terryjreedy, @serhiy-storchaka, @E-Paine, @Pycryptor10
Files
  • segfault.rtf
  • aliens.py
  • segfaultpygame.txt
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-04-03.01:30:12.944>
    created_at = <Date 2021-03-30.14:34:47.086>
    labels = ['expert-tkinter', '3.9', 'type-crash']
    title = 'segfault when using pygame for ~5 minutes'
    updated_at = <Date 2021-04-03.01:33:47.284>
    user = 'https://github.com/Pycryptor10'

    bugs.python.org fields:

    activity = <Date 2021-04-03.01:33:47.284>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-04-03.01:30:12.944>
    closer = 'terry.reedy'
    components = ['Tkinter']
    creation = <Date 2021-03-30.14:34:47.086>
    creator = 'Pycryptor10'
    dependencies = []
    files = ['49919', '49920', '49921']
    hgrepos = []
    issue_num = 43671
    keywords = []
    message_count = 6.0
    messages = ['389827', '389829', '389831', '389845', '389846', '390112']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'serhiy.storchaka', 'epaine', 'Pycryptor10']
    pr_nums = []
    priority = 'normal'
    resolution = 'third party'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue43671'
    versions = ['Python 3.9']

    @Pycryptor10
    Copy link
    Mannequin Author

    Pycryptor10 mannequin commented Mar 30, 2021

    Per the attached file, when testing an adapted version of pygame's alien script as part of research. Python segfaulted.

    This has occured twice about 5 minutes in.

    I had console running all messages at the time if more logs needed.

    MacOS Big Sur 11.2.3 on MacBook Air (Retina, 13-inch, 2018) with 1.6 GHz Dual-Core Intel Core i5 & 8 GB 2133 MHz LPDDR3 Memory

    @Pycryptor10 Pycryptor10 mannequin added 3.9 only security fixes topic-tkinter type-crash A hard crash of the interpreter, possibly with a core dump labels Mar 30, 2021
    @Pycryptor10
    Copy link
    Mannequin Author

    Pycryptor10 mannequin commented Mar 30, 2021

    Can reproduce with a modified pygame.examples.alien to run in a loop after a similar time.

    @Pycryptor10
    Copy link
    Mannequin Author

    Pycryptor10 mannequin commented Mar 30, 2021

    Also filed pygame/pygame#2543 as not sure where issue comes from

    @E-Paine
    Copy link
    Mannequin

    E-Paine mannequin commented Mar 30, 2021

    Not sure why this was marked as a problem with tkinter (neither Pygame nor the example use it). I would be very surprised if this wasn't an issue with Pygame, as the Python is just requesting a dictionary deallocation which is then handled by Pygame's font.cpython-39-darwin.so.

    @Pycryptor10
    Copy link
    Mannequin Author

    Pycryptor10 mannequin commented Mar 30, 2021

    My original script has tkinter used as well. I wasn't entirely sure where it was when I filed the bug at first and just saw a tk/tcl mentioned in the logs. It does look now I've managed to investigate further to be something in pygame. I've never had to debug a segfault before.

    @terryjreedy terryjreedy changed the title segfault when using tkinter + pygame for ~5 minutes segfault when using pygame for ~5 minutes Apr 3, 2021
    @terryjreedy terryjreedy changed the title segfault when using tkinter + pygame for ~5 minutes segfault when using pygame for ~5 minutes Apr 3, 2021
    @terryjreedy
    Copy link
    Member

    I would not be surprised if using the gui features of both tkinter and pygame together did cause a crash, as both would be competing for the screen. Ditto if both were handling key and mouse events. That might be closed instead as "won't fix"

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes topic-tkinter type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant