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

Sample program sometimes fails on assert in a debug build #145

Closed
HolyBlackCat opened this issue Apr 20, 2024 · 0 comments · Fixed by #149
Closed

Sample program sometimes fails on assert in a debug build #145

HolyBlackCat opened this issue Apr 20, 2024 · 0 comments · Fixed by #149

Comments

@HolyBlackCat
Copy link

Open the samples program in Debug mode, go to Benchmark -> CreateDestroy, click a block.

The program then fails with an assertion:

SAMPLE ASSERTION: body->jointList == B2_NULL_INDEX && body->jointCount == 0, /path/to/box2c/src/body.c, line 306

The line number points to this:

static void b2DestroyBodyInternal(b2World* world, b2Body* body)
{
	// User must destroy joints before destroying bodies
	B2_ASSERT(body->jointList == B2_NULL_INDEX && body->jointCount == 0);
erincatto added a commit that referenced this issue Apr 25, 2024
- more sanitizer usage, delayed by an enkiTS issue:
dougbinks/enkiTS#125
- fix #145
- address #144
- fix #141
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

Successfully merging a pull request may close this issue.

1 participant