aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.58k stars 3.93k forks source link

Constant stream of error messages in console log: "Invalid timestamps detected. Time step between successive gyroscope sensor samples is very small or not monotonic" #815

Closed ngokevin closed 6 years ago

ngokevin commented 8 years ago

Issue by cemkod Wednesday Jan 13, 2016 at 00:55 GMT Originally opened as https://github.com/aframevr/aframe-core/issues/793


Device: Nexus 7 II Browser: Firefox 43.0

When running the examples, there is a constant stream of the following error message in console log: Invalid timestamps detected. Time step between successive gyroscope sensor samples is very small or not monotonic

Gyro controls seem to be responsive with no lag.

eskalera commented 8 years ago

Same issue here.

dmarcos commented 8 years ago

@eskalera Is this still an issue on master?

eswara1997 commented 8 years ago

@dmarcos still having this error. I'm using a samsung s7 edge with firefox.

Edit: I was able to almost get rid of the error by going intoaframe.js and changing util.max_timestep and 'util.min_timestep' Is this bad. What should be done to solve this error.

anthonybarsotti commented 8 years ago

I'm having this error occur too using an iPhone 6 Plus. I'm not currently using Aframe but I'm using the WebVR polyfill so I feel like it's potentially related to that.

perqa commented 7 years ago

It is clearly related to WebVR polyfill. See webvr-polyfill.js:5706:


                if (deltaS <= Util.MIN_TIMESTEP || deltaS > Util.MAX_TIMESTEP) {
                    console.warn('Invalid timestamps detected. Time step between successive ' +
                    'gyroscope sensor samples is very small or not monotonic');
                    this.previousTimestampS = timestampS;
                    return;
                }```
jsantell commented 7 years ago

This appears to be still an issue: https://github.com/googlevr/webvr-polyfill/issues/201

If anyone can follow up there with more info (what are the timestamps? are they not updated or too small/large?), I'll check it out

jsantell commented 6 years ago

Closed via https://github.com/googlevr/cardboard-vr-display/pull/9 -- will be in the next polyfill release. To clarify, this just silences the messages and only displays once. In testing, was getting messages for this in iOS and Firefox for Android, but the pose estimation was still working just fine, so this clears out the console a bit. If anyone has issues with this warning AND poses are not working, would love to learn more!

dmarcos commented 6 years ago

@jsantell sweet! thanks.