Skip to content

Bullet skipping enqueued tasks - found possible issue #867

@riccardobl

Description

@riccardobl

In my code, bullet was skipping some enqueued tasks, i found out that pQueue.poll() is called twice at the beginning of this code

AppTask task = pQueue.poll();
task = pQueue.poll();
while (task != null) {
while (task.isCancelled()) {
task = pQueue.poll();
}
try {
task.invoke();
} catch (Exception ex) {
logger.log(Level.SEVERE, null, ex);
}
task = pQueue.poll();
}

This looks like the issue to me and without the double poll the issue is gone. I need some confirmations that i'm not breaking something i don't know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PhysicsIssues with all kinds of Physics and their Bindings

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions