-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A-frame Random page reloads/refresh #2782
Comments
It restarts randomly, while interacting with the scene, in 2D mode, in VR mode? |
It hasn't happened once on a desktop (am I correct in saying that 2D is desktop). We've only had this page refresh issue on devices, most regularly in VR mode. I believed it was an issue on our end, until we started testing on a-frame.io examples, and it happened there too. |
I can't reproduce on my iPhone 7 Plus with https://aframe.io/examples/hello-metaverse/. |
We're still very much having this issue on multiple devices on a-frame's own projects. Admittedly, on the iPhone 7 Plus it's less regular than the iPhone 7, sometimes 5 minutes, sometimes 1 minutes. I recommend leaving your phone in the VR mode until it happens. If you notice that i's no longer in VR mode, a page refresh has occurred. I'm very much in need of a solution or an explanation to this, so I'm not prepared to close this issue at this point. |
@CallumMitchellRV Can you try with master branch and see if it still reproduces? |
So after getting an unminified version of the files, I have found out that there is an issue with the iOSWakeLock function (lines 80195 and 80195 of aframe-master.js from v0.5.0).
From what I can gather, it is a function to keep the screen from timing out. This has not worked for us and we've had to change phone settings to accomplish this. This also explains why it only occurs on iOS. If anyone can shed any light on why this might be happening that would be great. In the meantime, I've commented this out. |
@CallumMitchellRV thanks for filing this issue. sorry that it's fallen through the cracks. what are your screen-lock settings on your iPhone? the stock, default settings? |
@cvan All of the iPhones with this issue had their display settings set to never auto-lock. |
I'm experiencing the same issue, after every 30s without interaction in VR-mode, the app will reload itself. I'm on iOS 11.0 with the screen-lock setting on 5 minutes. |
Hi 👋 , I am currently running into this issue on iPhone 6S & X (Safari) and my MacBook Pro Retina 2015 and 2016 (on Google Chrome w/ the iPhone simulator). The refresh happens exactly 30 seconds after instantiating the app. Steps to reproduce:
Same thing is happening when I load my app up in VR mode on my iPhone. The page refreshes exactly after 30 seconds, and there are no logs at the moment it happens to tell me why it's happening. Note that the app does NOT refresh if I pull it up on an Android (in VR mode), so this is definitely a problem with iOS. After digging around, this line seems to be the culprit. It sets the I've commented that line out in my production bundle, but I still don't really understand the issue with it. I know it's related to keeping the phone awake, but there has to be another way of doing that instead of directly setting If anyone can shed some light on this, it would be much appreciated! :) |
I've uncommonly heard similar reports on using WebVR polyfill and it comes down to the wakelock. |
Hi, I'm having the same issue on iOS 11. However, NoSleep.js that similar to wakelock.js of A-frame is successfully working. 😃 NoSleep.jsIt plays the video for iOS 11. wakelock.js of A-frameIt does NOT play the video for iOS 11. aframe/vendor/wakelock/wakelock.js Lines 67 to 68 in 619d57c
Does anyone think that replacing with NoSleep.js is a good idea? |
NoSleep.js has already been included in A-frame 0.8.2 through I can see its successful work on my iPhone7 (iOS 11), and think this issue has been solved. 👍 👍 |
Cool @moyashipan. Thanks for verifying |
I've been working on a VR game within A-Frame. When I started testing on devices (iPhone 7/iPhone 7 Plus running Safari, and Samsung Galaxy S6 running Chrome), I began to notice the page would randomly refresh, which is an issue for us, as it restarts the game.
This is happening with the demos on their website, as well as our self-hosted game.
Has anyone experienced this issue, and/or know what the issue or the solution is?
The text was updated successfully, but these errors were encountered: