Skip to content

Main game loop segmentation fault #2

Description

@choongjae

We've been running into segmentation faults in our main game loop. Changing the conditional to if st.key = 'q' then clear_graph () fixes the problem, but then we have no need for a try-with expression, because clear_graph doesn't raise any errors. In fact, I'm not sure why clear_graph () works, because it's only supposed to clear the window - not delete it. On the other hand, if st.key = 'q' then close_graph () still causes a segmentation fault.

For now, I'm making it so that if st.key = 'q' then raise Exit and then the exception handling is | Exit -> clear_graph ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions