when i try to run multiplayer, i get this error
****A math operation resulted in an invalid result (NAN)****
("c:\users\johan jansen\programmering\egoboo2.8.x\game\egoboo_math.inl" -623)
so is there a fix and if so, what is it?
fatal error
Moderator: Developers
- penguinflyer5234
- Sheep (Developer)
- Posts: 3025
- Joined: Wed Jul 23, 2008 1:39 am
- Location: Best Southwest
Re: fatal error
Hmm... between rev1473 and rev1538, sounds like 2.8.1
I suspect some memory corruption Nothing really can be done; could you try 2.8.2 or 2.9.0 RC 1 and see if that fixes it?
(It's technically not logged as fatal, but can do some unexpected things)
Spoiler: code in question
[code]# define LOG_NAN(XX) if( ieee32_bad(XX) ) log_error( "**** A math operation resulted in an invalid result (NAN) ****\n (\"%s\" - %d)\n", __FILE__, __LINE__ );
static INLINE float fvec3_length_abs( const fvec3_base_t A )
{
float retval;
if ( NULL == A ) return 0.0f;
retval = ABS( A[kX] ) + ABS( A[kY] ) + ABS( A[kZ] );
LOG_NAN( retval ); // Error's here
return retval;
}[/code]
static INLINE float fvec3_length_abs( const fvec3_base_t A )
{
float retval;
if ( NULL == A ) return 0.0f;
retval = ABS( A[kX] ) + ABS( A[kY] ) + ABS( A[kZ] );
LOG_NAN( retval ); // Error's here
return retval;
}[/code]
(It's technically not logged as fatal, but can do some unexpected things)
...
Re: fatal error
i am currently using 2.8.2 version, and this only happens with more than one player, could it be a problem with two players using the keyboard setting with different controls? or is it something that cant be fixed at all currently?