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

Issue 715871 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug
Proj-VR
Proj-XR
Proj-XR-VR



Sign in to add a comment

Determine why DaydreamApi calls silently fail

Project Member Reported by vollick@chromium.org, Apr 27 2017

Issue description

As per comments here:
https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApiImpl.java?sq=package:chromium&dr=CSs&l=23

We need to recreate the DaydreamApi each use or API calls begin to silently fail. This is unfortunate; we should find out why this is happening and fix if possible.

 
Cc: jdduke@chromium.org
Labels: VR-TD Proj-VR-Daydream OS-Android
Owner: mthiesse@chromium.org
Status: Started (was: Available)
I think this issue has been inadvertently fixed at some point in the past. CL incoming.
Project Member

Comment 3 by bugdroid1@chromium.org, Jan 11 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b1e26c25b6592ee5ac0617b1dd9df0daa580a8b5

commit b1e26c25b6592ee5ac0617b1dd9df0daa580a8b5
Author: Michael Thiessen <mthiesse@chromium.org>
Date: Thu Jan 11 01:50:33 2018

VR: Cache DaydreamApi instance.

A long time ago we ran into an issue where the DaydreamApi seemed to
silently stop working unless we recreated it each time before using it.

I can no longer reproduce this. My best guess as to the cause is that
I think at the time we weren't properly recreating the DaydreamApi
instance when switching between Activities, so it was associated with
a wrong or leaked context.

If things in VR start flakily breaking, this is a good candidate to
revert.

Bug:  715871 
Change-Id: Iaf8c31e6d99079134b2893fae14222096e203fe6
Reviewed-on: https://chromium-review.googlesource.com/861062
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Reviewed-by: Yash Malik <ymalik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#528528}
[modify] https://crrev.com/b1e26c25b6592ee5ac0617b1dd9df0daa580a8b5/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApi.java
[modify] https://crrev.com/b1e26c25b6592ee5ac0617b1dd9df0daa580a8b5/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrDaydreamApiImpl.java
[modify] https://crrev.com/b1e26c25b6592ee5ac0617b1dd9df0daa580a8b5/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
[modify] https://crrev.com/b1e26c25b6592ee5ac0617b1dd9df0daa580a8b5/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/mock/MockVrDaydreamApi.java

Status: Fixed (was: Started)
Didn't find out why it was happening, but oh well. I think the issue's gone.
Labels: M-65 Test-Complete

Sign in to add a comment