Hi Bullet, here is a fairly small piece of code which demonstrates a bug I'm fighting which occurs in release mode but not debug mode, and is also non-deterministic(ie, doesn't occur 100% of the time):
class PlayerController
{
public:
PlayerController( ) { mQ = btQuadWord();
};
~PlayerController() {};
btQuadWord mQ;
};
int main (void)
{
PlayerController *mPlayercontrollertest = new PlayerController();
return 0;
}
As you can see there is nothing there. I actually hunted it down by slowly weeding out code in bullet's own files, and what is happening is that the _m128 assignment is failing(it's been typedef'd, I think it was buried somewhere in btScaler.h). This happens on other machines I have shipped my binaries to as well. _m128 is a way of directly accessing the registers on the cpu's. Anyone have any idea what's going on here? I'm using a slightly older version of bullet(bullet-2.81-rev2613), but with something this low level the code is probably pretty stable. Any ideas? Can anyone else reproduce this?
To be clear, running on windows 7, and compiled on visual studio 2012. Amd Phenom(II), so 64 bit, although the code is being compiled in 32 bit.
Edit: Applying the latest VS 2012 patch makes this no longer crash, but the bug in my original code continues to trigger, so I don't think that fixed it, just reshaped the instructions enough to make this one work.
Thanks!
Strange and fairly low level bug( btQuaternion/btQuadWord )
-
- Posts: 5
- Joined: Sun Oct 27, 2013 10:05 pm
-
- Posts: 36
- Joined: Sun Feb 10, 2013 6:52 pm
Re: Strange and fairly low level bug( btQuaternion/btQuadWor
Could this be the solution to your problem?
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=8915
Edit:
Nevermind, I see Erwin helped you here:
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=9631
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=8915
Edit:
Nevermind, I see Erwin helped you here:
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=9631