New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 669765 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Email to this user bounced
Closed: Jan 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

[sensors] Receive null reading on a device with sensor supported

Project Member Reported by wanming....@intel.com, Nov 30 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2935.3 Safari/537.36

Steps to reproduce the problem:
Test Devices: HP EliteBook Revolve 810 and ThinkPad UltraBook S1 Yoga
Test Platform: Windows 8.1 Enterprise
Test case: https://honry.github.io/demo/tests/ambient-light/AmbientLightSensor_example.https.html

1. run test
2. check the console log
3. change the ambient light and rotate the device

What is the expected behavior?
sensor readings are reported correctly, and 'onchange' event is fired

What went wrong?
Ambient Light and Gyroscope sensors report null reading and 'onchange' isn't fired on HP EliteBook Revolve 810.
Only Gyroscope sensor reports null reading and 'onchange' isn't fired on ThinkPad UltraBook S1 Yoga.

It's odd, I am not sure if the problem is from my devices or the API implementation. But I am sure that my devices support the Ambient Light and Gyroscope sensor and there's no "NotFoundError" thrown. 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 57.0.2935.3  Channel: canary
OS Version: 6.3
Flash Version: Shockwave Flash 24.0 r0
 

Comment 1 by ajha@chromium.org, Nov 30 2016

Labels: M-57
Cc: hdodda@chromium.org
Labels: Needs-Feedback
@wanming.lin -- The given url in comment #0 is opened as blank page . Attached screenshot for reference.

Could you please check the URL and provide us the correct url , that may help in triaging the issue better.

Thanks!
669765.png
56.6 KB View Download
@hdodda, The url is correct, please check the console log to capture reading data.

Comment 5 by canx....@intel.com, Dec 6 2016

Steps to reproduce the problem:
Test Case: https://generic-sensors.appspot.com/
Test Device: Dell Inspiron 13 7000 Series
Test Steps:
1. Click the button at the top right corner
2. A popup shows, and choose the "Groscope" Sensor type, click "ADD" button
3. Turn on the switch button

I found the state of groscope sensor is "activated", but no any value display on the screen(please refer to attachment "Windows 10.jpg"). It is work fine on Linux OS(refer to the "Linux.jpg").
Windows10.jpg
150 KB View Download
Linux.jpg
134 KB View Download

Comment 6 by canx....@intel.com, Dec 6 2016

Besides, I run the test case on Windows 8.1 (HP EliteBook Revolve 810).
The state of Ambient light and Gyroscope sensor is "activated".
The value of timeStamp and x,y,z does not show on the screen.(refer to the comment Windows 8.1.jpg)
Windows 8.1.jpg
104 KB View Download
Project Member

Comment 7 by sheriffbot@chromium.org, Dec 13 2016

Labels: -Needs-Feedback Needs-Review
Owner: hdodda@chromium.org
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by hdodda@chromium.org, Dec 14 2016

Labels: -Needs-Review TE-Hardware-Dependency
Owner: ----
Owner: alexande...@intel.com
@wanming.lin I checked the test and there is a bug in it. Basically, sensor object goes out of scope and GC'ed. You can try rewriting the test by binding sensor object to a onchange function, then I think it would be fine.
@alexander.shalamov, but the issue is still existed, see #5. 
@wanming.lin, #5 shows that sensor is successfully activated, but sensor reading is not yet available. On Windows platform, sensors will deliver new readings whenever there is a change. If you pick up laptop and rotate it, you will see that new readings are available.
hi, @alexander.shalamov, the problem is that there's no new readings event if I rotate the devices(HP EliteBook Revolve 810 and ThinkPad UltraBook S1 Yoga), I am not sure if the problem is from my devices or the API implementation. But I am sure that my devices support the Ambient Light and Gyroscope sensor and there's no "NotFoundError" thrown.  
Status: Started (was: Unconfirmed)
Status: Fixed (was: Started)
Gyroscope issue is fixed, ambient light issue is not reproduceable. Please open new bug for ambient light sensor if you think that bug is not fixed.
QA verified this issue. Gyroscope issue has been fixed.
Status: Verified (was: Fixed)

Sign in to add a comment