[Demo mode] If demo session is started offline, ARC should use offline demo mode provisioning |
|||||||||||||
Issue descriptionDemo mode account is implemented as a public session account, whose ARC provisioning is done online on each session start (and if it fails, the session is restarted). This means that (online enrolled) demo sessions will fail to initialize ARC sessions that are started offline. To work around this, when starting demo sessions, we can fall back to offline demo mode provisioning if chrome does not succeed in getting the account's auth token (and proceed with arc in the same mode as for offline enrolled demo mode sessions).
,
Aug 31
I've seen this work, but the session is still forcibly restarted sometimes -- I think if the device hasn't been online since boot, we have this problem. If the device is connected to a network, then disconnected, new sessions will work okay.
,
Aug 31
,
Aug 31
,
Sep 5
,
Sep 5
Yury, can you work with Michael and others to diagnose this provisioning problem?
,
Sep 6
My observation is the same with #2. But I don't have much progress here.
,
Sep 6
Could we summarize the problem, steps to repro, symptoms? Reading the bug but don't clear understand the problem. Thanks
,
Sep 6
Re #8: 1) Enroll the device to online demo mode. (Start with the OOBE welcome screen, hit "ctrl+alt+D" and follow the steps. Please make sure the device is connected to network the whole time.) 2) After entering the demo session, disconnect the network. and either suspend the device for some time, or restart the device, as long as when the white boot splash screen is shown, there's no network connection. 3) Observe that after entering demo session, it enters a crash loop. Note that in 2), if we simply disconnect the network and restart the user session, there's no crash loop (I believe this is part is addressed by the CL in #1, so the issue is to find out what's the differences are between the two scenarios). Please let me know if you have questions.
,
Sep 6
note that the cl in #1 switches to offline demo account (for which arc provisioning will run offline, but without setting up an account for play store) if auth token fetch for the demo robot account fails. Otherwise, Chrome restarts user session when ARC provisioning fails for a public session account - including the case public session is started when offline. Perhaps the timeout for fetching the auth token exceeds the timeout for public session ARC setup, so the session is restarted before we even detect that an offline demo account should be used, i.e. while ARC setup is still stuck waiting for account details from Chrome)? Though, if Chrome actually starts a crash loop soon after entering demo session, that hypothesis doesn't match the symptoms too well (I think public session normally exists after few minutes). A crash stack might provide more clues.
,
Sep 12
The crash is happening in ArcRobotAuthCodeFetcher::Fetch(). I think we need to bypass this too, if fetching the auth code failed previously. Will send a CL shortly if that works. 1 chrome!arc::ArcRobotAuthCodeFetcher::Fetch(base::RepeatingCallback<void (bool, std::__1::basic_string<char, std::__1::char_traits <char>, std::__1::allocator<char> > const&)> const&) + 0xd4 2 chrome!arc::ArcAuthService::FetchDeviceAccountInfo(bool) + 0x3da 3 chrome!arc::mojom::AuthHostStubDispatch::Accept(arc::mojom::AuthHost*, mojo::Message*) + 0x264 4 chrome!mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) + 0x217
,
Sep 20
atwilson: does this crash repro in non-Demo Mode public sessions that have ARC++ enabled? Repro steps: 1. make sure your device won't connect to the internet (e.g. disable or remove networks) 2. reboot 3. start a public session The session will repeatedly crash a few seconds after sign-in. Crash fix: https://chromium-review.googlesource.com/c/chromium/src/+/1237255
,
Sep 21
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/50e0e4fcd954889201bd7e287553114c394c0c61 commit 50e0e4fcd954889201bd7e287553114c394c0c61 Author: Michael Giuffrida <michaelpg@chromium.org> Date: Fri Sep 21 21:14:27 2018 Fix ArcRobotAuthCodeFetcher crash when offline ArcRobotAuthCodeFetcher will crash if there is no CloudPolicyClient, which can happen when the device hasn't been online since boot. Bug: 875504 Test: ArcRobotAuthCodeFetcherOfflineBrowserTest Change-Id: Ia5412be9a85cfe5028aa30caf74a7b4562d342e7 Reviewed-on: https://chromium-review.googlesource.com/1237255 Commit-Queue: Michael Giuffrida <michaelpg@chromium.org> Reviewed-by: Yury Khmel <khmel@chromium.org> Cr-Commit-Position: refs/heads/master@{#593333} [modify] https://crrev.com/50e0e4fcd954889201bd7e287553114c394c0c61/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc [modify] https://crrev.com/50e0e4fcd954889201bd7e287553114c394c0c61/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher_browsertest.cc
,
Sep 24
,
Sep 24
This bug requires manual review: M70 has already been promoted to the beta branch, so this requires manual review Please contact the milestone owner if you have questions. Owners: benmason@(Android), kariahda@(iOS), geohsu@(ChromeOS), abdulsyed@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 24
,
Sep 24
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a4f4074b528820308440e98d80bca54c09435298 commit a4f4074b528820308440e98d80bca54c09435298 Author: Michael Giuffrida <michaelpg@chromium.org> Date: Mon Sep 24 22:16:00 2018 Fix ArcRobotAuthCodeFetcher crash when offline ArcRobotAuthCodeFetcher will crash if there is no CloudPolicyClient, which can happen when the device hasn't been online since boot. Bug: 875504 Test: ArcRobotAuthCodeFetcherOfflineBrowserTest TBR=michaelpg@chromium.org Change-Id: Ia5412be9a85cfe5028aa30caf74a7b4562d342e7 Reviewed-on: https://chromium-review.googlesource.com/1237255 Commit-Queue: Michael Giuffrida <michaelpg@chromium.org> Reviewed-by: Yury Khmel <khmel@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#593333}(cherry picked from commit 50e0e4fcd954889201bd7e287553114c394c0c61) Reviewed-on: https://chromium-review.googlesource.com/1241768 Reviewed-by: Michael Giuffrida <michaelpg@chromium.org> Cr-Commit-Position: refs/branch-heads/3538@{#623} Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811} [modify] https://crrev.com/a4f4074b528820308440e98d80bca54c09435298/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc [modify] https://crrev.com/a4f4074b528820308440e98d80bca54c09435298/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher_browsertest.cc
,
Sep 24
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a4f4074b528820308440e98d80bca54c09435298 Commit: a4f4074b528820308440e98d80bca54c09435298 Author: michaelpg@chromium.org Commiter: michaelpg@chromium.org Date: 2018-09-24 22:16:00 +0000 UTC Fix ArcRobotAuthCodeFetcher crash when offline ArcRobotAuthCodeFetcher will crash if there is no CloudPolicyClient, which can happen when the device hasn't been online since boot. Bug: 875504 Test: ArcRobotAuthCodeFetcherOfflineBrowserTest TBR=michaelpg@chromium.org Change-Id: Ia5412be9a85cfe5028aa30caf74a7b4562d342e7 Reviewed-on: https://chromium-review.googlesource.com/1237255 Commit-Queue: Michael Giuffrida <michaelpg@chromium.org> Reviewed-by: Yury Khmel <khmel@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#593333}(cherry picked from commit 50e0e4fcd954889201bd7e287553114c394c0c61) Reviewed-on: https://chromium-review.googlesource.com/1241768 Reviewed-by: Michael Giuffrida <michaelpg@chromium.org> Cr-Commit-Position: refs/branch-heads/3538@{#623} Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811}
,
Sep 26
|
|||||||||||||
►
Sign in to add a comment |
|||||||||||||
Comment 1 by bugdroid1@chromium.org
, Aug 22