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

Heap corruption when disposing a bullet object #69

Open
maxilevi opened this issue Feb 22, 2020 · 0 comments
Open

Heap corruption when disposing a bullet object #69

maxilevi opened this issue Feb 22, 2020 · 0 comments

Comments

@maxilevi
Copy link
Contributor

Rarely and on some computers on disposing an object the heap gets corrupted. Here is the trace from WinDBG

OS Thread Id: 0x2338 (0)
        Child SP               IP Call Site
000000c19d36e4b0 00007ff94141cc14 [InlinedCallFrame: 000000c19d36e4b0] BulletSharp.UnsafeNativeMethods.btCollisionShape_delete(IntPtr)
000000c19d36e4b0 00007ff8ce413359 [InlinedCallFrame: 000000c19d36e4b0] BulletSharp.UnsafeNativeMethods.btCollisionShape_delete(IntPtr)
000000c19d36e480 00007ff8ce413359 BulletSharp.CollisionShape.Dispose(Boolean)
    PARAMETERS:
        this = <no data>
        disposing = <no data>

000000c19d36e530 00007ff8ce347db0 BulletSharp.BulletDisposableObject.Dispose()
    PARAMETERS:
        this (<CLR reg>) = 0x0000022a21132c00

000000c19d36e560 00007ff8ce4a4b8d *** WARNING: Unable to verify checksum for Hedra.exe
Hedra.Engine.Bullet.BulletPhysics.DisposeBody(BulletSharp.RigidBody) [D:\Project Hedra\Hedra\Engine\Bullet\BulletPhysics.cs @ 459]
    PARAMETERS:

000000c19d36e5b0 00007ff8ce4a4302 Hedra.Engine.Bullet.BulletPhysics.RemoveAndDispose(BulletSharp.RigidBody) [D:\Project Hedra\Hedra\Engine\Bullet\BulletPhysics.cs @ 391]
    PARAMETERS:

000000c19d36e620 00007ff8ce4a5318 Hedra.Engine.WorldBuilding.BaseStructure.Dispose() [D:\Project Hedra\Hedra\Engine\WorldBuilding\BaseStructure.cs @ 88]

Any ideas of what could be causing this?

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

1 participant