Hi all,

i have a small bug report in the manipulators after updating from 3.01 to
3.1.3.
after some searching, i found a division by 0.

    double throwScale =  (_thrown && _ga_t0.valid() && _ga_t1.valid()) ?
        _delta_frame_time / (_ga_t0->getTime() - _ga_t1->getTime()) : 1.0;

I suspect the changes in the eventQueue (  time reset to the next valid
time )
cause the _ga_t0 and _ga_t1 to be equal, causing a divide by zero.

(also note i'am running in ON_DEMAND mode).

the problem occurs after 'throwing' with a manipulator, this causes NaN in
matrices.

one way to reproduce the problem is running the osgviewer like this:

>set OSG_NOTIFY_LEVEL=DEBUG
>osgviewerd cow.osg --window 40 40 500 500 --run-on-demand
--run-max-frame-rate 10

and throw and scroll simultaneously with the mouse several times and
very quickly. ( lower framerate helps with reproduction )

you will eventually get:
CullVisitor::apply(Geode&) detected NaN,
etc

gr.

René
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to