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

threading issue. #4684

Open
Simoncl opened this issue Feb 3, 2025 · 1 comment
Open

threading issue. #4684

Simoncl opened this issue Feb 3, 2025 · 1 comment

Comments

@Simoncl
Copy link

Simoncl commented Feb 3, 2025

I have used Bullet for a long time with no issues! It's great.
However, now I'm getting

m_batchManifoldsPtr[btGetCurrentThreadIndex()].push_back(manifold);
btGetCurrentThreadIndex()=12

but
m_batchManifoldsPtr.resize(btGetTaskScheduler()->getNumThreads());
getNumThreads=12

So I get an assert at when it runs m_batchManifoldsPtr[btGetCurrentThreadIndex()].push_back(manifold);

I'm not sure why this is showing up now.

Any help would be great!

Cheers

Simon

@HanetakaChou
Copy link

HanetakaChou commented Mar 18, 2025

I have the same problem

I use tbb::this_task_arena::current_thread_index() to replace the implementation of btGetCurrentThreadIndex

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