Skip to content

Crash in debug mode using MSVC 2022 #243

Description

@vinnyhorgan

Hello,

I added chipmunk as a submodule in my project that uses cmake, I included it like this:

add_subdirectory(deps/chipmunk)
include_directories(deps/chipmunk/include)
target_link_libraries(${PROJECT_NAME} chipmunk_static)

I then copied the hello world example in the documentation and run the program:

In release mode everything works as expected, the problem is in debug mode where it crashed. Debugging the program shows that the crash happens when calling:

cpSpaceFree(space)

This seems very strange, but cannot figure it out, maybe I missed something in the cmake setup?

If anyone could try and reproduce this bug it would be amazing...

Thanks!

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