assert in OgreMath with 13.5.2

Problems building or running the engine, queries about how to use features etc.
Post Reply
Pellaeon
Goblin
Posts: 226
Joined: Thu Apr 28, 2011 12:23 pm
x 25

assert in OgreMath with 13.5.2

Post by Pellaeon »

Hi,

I updated my Ogre version from 13.2.3 to 13.5.2. My settings: VS 17.4.0, Win10, x64, compiled Ogre witch C++20, my current program with C++17.

Compiling works fine and release mode seems to work very well. When starting in debug mode, I get an assert in OgreMath.h (line 323)

Code: Select all

#if defined(__FAST_MATH__) || defined(_M_FP_FAST)
            assert(false && "not available with fast math");
#endif
            // std::isnan() has non-portable behaviour on MSVC
            // However NaN always fails this next test, no other number does.
            return f != f;
        }

It's triggered by a call of Node::setPosition, debugger shows (0.0, 0.0, 0.0) as position values.
Why is the assert triggered? How can I fix this?

Best regards

Pellaeon

Pellaeon
Goblin
Posts: 226
Joined: Thu Apr 28, 2011 12:23 pm
x 25

Re: assert in OgreMath with 13.5.2

Post by Pellaeon »

another code location, same problem:

Code: Select all

static inline bool isNaN(Real f)
        {
#if defined(__FAST_MATH__) || defined(_M_FP_FAST)
            assert(false && "not available with fast math");
#endif
            // std::isnan() has non-portable behaviour on MSVC
            // However NaN always fails this next test, no other number does.
            return f != f;
        }

This #if defined seems not to have a real use her? but only to disturb the debug mode experience?

paroj
OGRE Team Member
OGRE Team Member
Posts: 1814
Joined: Sun Mar 30, 2014 2:51 pm
x 960
Contact:

Re: assert in OgreMath with 13.5.2

Post by paroj »

Post Reply