Hybrid Skeletal animation ala tutorial 15 - bug?
2 posters
Hybrid Skeletal animation ala tutorial 15 - bug?
I have a very simple model that I am using to animate a 2d-ish character in orthographic projection mode, using the skeletal animation technique demonstrated in tutorial 15.
I had my character animating the legs and walking fine and it looked great. Then I added bones for the arms and my application still works, now whenever I try to add a keyframe for one of my arm bones my app will crash at load time at the line:
141: _SIO2frame->buf = ( unsigned char * )malloc( _size );
in sio2_frame.cc, and displays:
tutorial15(1604,0xa00e2720) malloc: *** error for object 0x187ac00: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
tutorial15(1604,0xa00e2720) malloc: *** error for object 0x187ac00: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
in the log.
I don't even think it is an sio2 error because I tried changing the line to:
unsigned char *testBuf = ( unsigned char * ) malloc ( _size ); and that failed too..
and unsigned char *testBuf = ( unsigned char * ) malloc ( 996 );
fails too.. 996 is the value of _size;
howerever malloc (1) works.
I seriously doubt I am out of memory however??? Have I just found a compiler bug with the 3.0 sdk? Anyone have any ideas of what I could try?
I had my character animating the legs and walking fine and it looked great. Then I added bones for the arms and my application still works, now whenever I try to add a keyframe for one of my arm bones my app will crash at load time at the line:
141: _SIO2frame->buf = ( unsigned char * )malloc( _size );
in sio2_frame.cc, and displays:
tutorial15(1604,0xa00e2720) malloc: *** error for object 0x187ac00: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
tutorial15(1604,0xa00e2720) malloc: *** error for object 0x187ac00: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
in the log.
I don't even think it is an sio2 error because I tried changing the line to:
unsigned char *testBuf = ( unsigned char * ) malloc ( _size ); and that failed too..
and unsigned char *testBuf = ( unsigned char * ) malloc ( 996 );
fails too.. 996 is the value of _size;
howerever malloc (1) works.
I seriously doubt I am out of memory however??? Have I just found a compiler bug with the 3.0 sdk? Anyone have any ideas of what I could try?
Tom- Posts : 13
Join date : 2009-03-23
Re: Hybrid Skeletal animation ala tutorial 15 - bug?
Use malloc debug there's obviously a leak somewhere and since the frame is shaking alot of memories you are seeing the symptoms here...
Re: Hybrid Skeletal animation ala tutorial 15 - bug?
Yeah the problem was with my art assets. Shared faces among vertex groups causes all kinds of madness. Got to be really careful about what faces are in what groups and what not it seems.
Tom- Posts : 13
Join date : 2009-03-23
Re: Hybrid Skeletal animation ala tutorial 15 - bug?
Talk to me about it, I was the one who do all the dirty integration job and debugging Lemme tell you that I scratch my head quite sometimes on that one hehehe
Glad that it work for you now!
Glad that it work for you now!
Similar topics
» Skeletal animation (Tutorial #15)
» Use GL_MATRIX_PALETTE_OES for Skeletal animation
» how to control a object which serve as a skeletal animation
» Collision system
» What is the status of Skeletal Anim
» Use GL_MATRIX_PALETTE_OES for Skeletal animation
» how to control a object which serve as a skeletal animation
» Collision system
» What is the status of Skeletal Anim
Permissions in this forum:
You cannot reply to topics in this forum