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

Crash in debug mode using MSVC 2022 #243

Open
vinnyhorgan opened this issue Nov 23, 2023 · 1 comment
Open

Crash in debug mode using MSVC 2022 #243

vinnyhorgan opened this issue Nov 23, 2023 · 1 comment

Comments

@vinnyhorgan
Copy link

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!

@jacknicklenson
Copy link

+1 yeah that's exactly happened to me.

This is just previous call stack of crash:
image

This is crash point:
image

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

2 participants