Aframe: Aframe Camera issues in latest Android chrome version

Created on 15 Mar 2018  Â·  61Comments  Â·  Source: aframevr/aframe

The camera cannot be tilted, also camera movement very slow.
Dowgrade to ver. 56 of Chrome resolved the issue.

  • A-Frame Version: 0.7.1 / 0.8.0
  • Platform / Device: Android 7, Chrome 65.0.3325.109
  • Reproducible Code Snippet or URL: Aframe.io
mobile

Most helpful comment

I am also experiencing a gyro problem on 2 phones except they are accessing the gyro but with either random input, or very very sensitive input. If i keep my hand still and don't move it is almost still but i can see the micromovements on screen with my hand's micro shaking.

The Gyro works 100% fine with this link:

https://aframe.io/examples/showcase/sky/

but not the image gallery:
https://aframe.io/examples/showcase/360-image-gallery/

Honor 6x | Android 7.0 EMUI 5.0.2 / Google Chrome 67.0.3396.87 / aframe 0.8.2
&
Samsung S8 |Google Chrome 67.0.3396.87 / aframe 0.8.2

Thanks!

All 61 comments

Same issue with

  • A-Frame Version: 0.7.1
  • Platform / Device: Android 8, Chrome 65.0.3325.109
  • Reproducible Code Snippet or URL: Aframe.io (examples)

AFrame doesn't use the gyros anymore, and behaves as the non-gyro-equipped phones.
It impacts every Android app using Cordova (the webview is based on Chrome)

I checked the master, and the #3453 fixes in part the issue.
Now, the camera have a low refresh rate.
It's linked to an issue of Chromium : https://bugs.chromium.org/p/chromium/issues/detail?id=819413&desc=3

Moreover, the VR view is and moves in the wrong way when using aframe master and Chrome 65.0.3325.109.
It's OK with the old version of Chrome and aframe master.

More information on the workarounds and Chrome regressions can be found in the polyfill's v0.10.3 release notes

@jeanmatthieud the camera moving the wrong way, is this only when you start in landscape? I believe https://github.com/aframevr/aframe/pull/3466 will fix this if that's the issue you're running into

@jeanmatthieud this should be fixed on master now. Can you confirm?

No, it's not fixed.

What's the result? If it's stuttering on rotation updates, that's a platform regression on Chrome m65 and not much we can do to fix in JS land.

It's stuck on some random axis, and mobile device movement doesn't do anything anymore on Android Chrome.

@dirkk0 what version of the polyfill (or commit of A-Frame build) is being used on that site?

@jsantell thanks for looking into this!
it was:
//cdnjs.cloudflare.com/ajax/libs/aframe/0.7.1/aframe.min.js
and is now:
//rawgit.com/aframevr/aframe/4d90df5/dist/aframe-master.min.js
(because we hoped the latest version would somehow mitigate the problem)

Do you have a link to the site anywhere where you can reproduce?

my apologies:
it is indeed stuttering on rotation updates, as you said. I was probably looking at a cached version.
So we need to wait for m66, hoping there is a fix, right?

There's a fix in m66 for the stuttering, correct -- there may be a m65 update with a fix, but at this point seems unlikely

Hi, can anyone tell me if the problem with the VR camera has been solved?

In earlier versions of Chrome it works perfectly.

This webvr-polyfill release details what issues are on latest Chrome, and the workarounds employed

Having no luck with our site The Union Project A-Frame 0.8 fixes issues we've been having on mobile with one click causing two click events, but the Gyroscope is totally disabled on chrome Android 65 & beta 66. We are using the dist above with the latest Polyfill version, also clicking is kinda weird and insensitive at times on mobile and in the mobile emulator; but I think the lack of Gyro is more severe.

@Kezzsim On the A-Frame side we won't be able to work around all of the problems introduced on m65. We will have to wait till the fixes are deployed in m66 to have everything working as before.

Hello, I'm new to this and found this thread because I've got no gyroscope in chrome...but i have sound...while in Firefox I have gyroscope but no sound....any suggestions for the best browser to test my projects on that will allow both sound and head movement? Using Galaxy note 4, for now.
Thanks

@chngngclrs gyroscope issue fixed (mostly) in latest aframe; audio issue sounds like a codec that Firefox does not support

I got the same issue on Samsung S6. When I move right to left or up and down, it moves slowly. I tested on every browser on Samsung S6. But same thing I have found. It's really slow.

Updated the Samsung browser late last night and I get full gyroscope and my
sound is working. So I’ll use this browser for a bit.

On Thu, Mar 29, 2018 at 12:34 AM MD Sabbir Hossain notifications@github.com
wrote:

I got the same issue on Samsung S6. When I move right to left or up and
down, it moves slowly. I tested on every browser on Samsung S6. But same
thing I have found. It's really slow.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aframevr/aframe/issues/3458#issuecomment-377136628,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AjuFdzDzX-0ON7JcGQCEvsZQS7Dc5jwyks5tjIBzgaJpZM4Sr03S
.

I checked some aframe example on Samsung S6 even on Samsung S6 edge some times. But I have found same problem. It's moving very slow.
I checked with these examples:
https://aframe.io/aframe/examples/performance/cubes/
https://aframe.io/aframe/examples/performance/entity-count/
https://aframe.io/aframe/examples/performance/animation/
https://aframe.io/aframe/examples/test/geometry-gallery/
And some other. What can I do for this lagging issue?

I wonder why the Threejs examples still work on m65?
https://threejs.org/examples/webvr_cubes.html

@sabbir420 w/r/t lagging issue: https://github.com/aframevr/aframe/issues/3458#issuecomment-375915490
@dirkk0 three.js examples use an origin trial, so using native WebVR most likely rather than the polyfill, which uses devicemotion/orientation which is the source of issues in Chrome m65

Any news about this?

nothing to update on until m66

Can someone tell me if the problem has been solved? Thanks

Nope, but hope is m66 is to be released very soon:
https://www.chromestatus.com/features/schedule
I can also confirm that it is fixed in Chrome Canary already.

Looks like it's gotten worse with m66 - camera is now moving on it's own: https://drive.google.com/file/d/1CeFykDjUC9GkZxLFqRnhQiROQ_lO1qDl/view?usp=drivesdk

are you sure you are on m66?

ok, I have m66 too, now.
Switching through the example section of aframe.io, I can confirm that some examples work, while others look weird.
I think this is because some of the examples are not on the latest version.
@FeralRizvi what aframe version did you import?

I'm on 0.8.0 @dirkk0

@FeralRizvi Update to 0.8.2

Works now!!! Thank you so much @dmarcos !

People my Chrome updated to 66 but the gyroscope bug continues, any solution? Thanks

@Adilmar are you using 0.8.2

@dmarcos Yes in the browser only it works, in the phonegap app no longer works.

As far as I know phonegap goes behind in the chromium version they use. If they are behind m66 then the bugs introduced in m65 will remain until phonegap catches up.

@dmarcos I understand, but when I come back to the version of my Chrome it works.

@Adilmar You're probably on Chrome m66 or on a version older than m65 that's why it works, right? Phonegap might be shipping a Chrome version affected by the bugs described in this issue.

@dmarcos I understood, thanks, I'll wait for an update.

Gyroscope doesn't work before to enter on VR Mode!
I have this issue on Samsung S8 ( Chrome 66.0.3359.158) with Aframe 0.8.2.

It works with Aframe 0.7.1

Gyroscope doesn't work in fullscreen and VR
Android 6 / Chrome 67 /aframe 0.8.2

Indeed, same here. Samsung S8, Android 8, Aframe 0.8.2, Chrome 67. No gyros in the non-vr mode, just the one axis touch movement.

I am also experiencing a gyro problem on 2 phones except they are accessing the gyro but with either random input, or very very sensitive input. If i keep my hand still and don't move it is almost still but i can see the micromovements on screen with my hand's micro shaking.

The Gyro works 100% fine with this link:

https://aframe.io/examples/showcase/sky/

but not the image gallery:
https://aframe.io/examples/showcase/360-image-gallery/

Honor 6x | Android 7.0 EMUI 5.0.2 / Google Chrome 67.0.3396.87 / aframe 0.8.2
&
Samsung S8 |Google Chrome 67.0.3396.87 / aframe 0.8.2

Thanks!

https://aframe.io/examples/showcase/sky/ is using 0.8.2
https://aframe.io/360-image-gallery-boilerplate/ is using Aframe 0.3.2

Older versions of aframe will not work on the latest versions of Chrome

Gyro was finally working good with 0.8.2 and Chrome m66.
Now on Chrome m67 it is not working again (not shaking this time, but completely still I can just rotate on one axis swiping with my finger) is it expected?

Same problem here: 0.8.2 and Chrome m67: camera not shaking, but no gyro active until entering VR-mode.

same issue with Chrome m68 using 0.8.2
fixed (update): I got issue with aframe-layout and no error with version 0.8.2 and m68 just the other library causing the issue.

update (issue): there is a slight movement to the left when I intend to focus or stand still (no movement). This slow movement keeping me as a user to notice that my view has been automatically rotating. Is there are quick fix to this issue?

thanks,

@eggybot what phone?

With Chrome Version 70.0.3538.80 and Aframe version 0.8.2, The Movement is very slow in android mobile

@srdmathur What phone / chrome version?

I can't reproduce on Pixel 3 / Chrome m71

Gyro should work on Chrome m66+ / A-Frame 0.8.2+

If it doesn’t please open a new issue with Phone / Chrome version / A-Frame version and link with demo that reproduces the issue.

A-Frame Version: 0.7.x / 0.8.x/ 0.9.x
Working Done show this solution
tested on android 7 / 8
https://github.com/walidabazo/a-frame-android-

@walidabazo Sorry I don't understand. Is there still a problem?

FYI, Chrome and Safari now ship with devicemotion events disabled by default. The user has to enable manually on settings:

  • chrome://flags/#enable-generic-sensor in Chrome

  • Settings -> Safari -> Motion & Orientation Access in Safari iOS

Content also must be served over https.

More info on: https://github.com/aframevr/aframe/issues/3976

I noticed that gyro doesn't work on Android when you serves from localhost over HTTP.
Changing my Webpack devServer config to https: true makes gyro work.

Correct. Browsers enforce https to access the sensors

A-Frame Version: 0.7.x / 0.8.x/ 0.9.x
Working Done show this solution
tested on android 7 / 8
https://github.com/walidabazo/a-frame-android-

I Use this:

work on the latest versions of Chrome

Thanks for your support.

You are in a very old A-Frame version. Use 1.0.4

Was this page helpful?
0 / 5 - 0 ratings