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

Issue 879903 link

Starred by 7 users

Issue metadata

Status: Verified
Owner:
Closed: Sep 10
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Crostini should handle Chrome crash gracefully

Project Member Reported by tbuck...@chromium.org, Sep 2

Issue description

Chrome version: 70.0.3538.0 canary
OS: Chrome

Repro steps:
1. Start Crostini
2. Crash chrome
3. Open launcher
4. Right-click Terminal icon

Expected: option to shut down crostini (see  Issue 848116 )
Actual: no option to shut down crostini

The option is also missing when right-clicking the Terminal icon in the shelf.
 
Can we explain how we crash Chrome? That seems to be a non-standard step!

Comment 2 Deleted

To clarify: crashing Chrome means all bets are off for Crostini
CrostiniManager dies, so forgets state like which vms are running
Summary: Handle Chrome crash gracefully (was: Terminal missing shut down option)
Updating this bug to indicate that we need to better handle Chrome crashes. We should guarantee that CrostiniManager and the VM are always in the same state after a crash, which means either:
1) We recover CrostiniManager so it knows VMs are running (preferred)
2) We shut down the VM to match CrostiniManager
Cc: za...@chromium.org dgreid@chromium.org smbar...@chromium.org
This also ties in with efforts to make Wayland continue working after a Chrome crash.
For CrostiniManager, what state is it storing that could not be recovered from garcon?
Summary: Crostini should handle Chrome crash gracefully (was: Handle Chrome crash gracefully)
Cc: jkardatzke@chromium.org
Owner: chirantan@chromium.org
chirantan will look into shutting down the VM after a Chrome crash. Adding jkardatzke who did something similar for ARC++.
Labels: -M-71 M-70
Mine was tied more closely to ARC..so it's not a good example unfortunately:

https://chrome-internal-review.googlesource.com/c/chromeos/platform/arc-oemcrypto/+/624256

But I know this handled Chrome crashes/restarts as well.
Cc: cmumford@chromium.org reve...@chromium.org
 Issue 848213  has been merged into this issue.
Project Member

Comment 12 by bugdroid1@chromium.org, Sep 8

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/1c7f7d4bf3bd1c17f4d99eb6ea850b6cc301c49f

commit 1c7f7d4bf3bd1c17f4d99eb6ea850b6cc301c49f
Author: Chirantan Ekbote <chirantan@chromium.org>
Date: Sat Sep 08 01:37:09 2018

login: Stop VMs if chrome exits

Stop any running VMs if chrome exits.  This ensures that the VMs don't
end up in a state where GUI apps don't work because they are trying to
connect to a wayland server that no longer exists.

BUG= chromium:879903 
TEST=unit test and manual
     start 2 vms, navigate to chrome://restart, and check the logs to
     see that the StopAllVms method was called and all vms exited

Change-Id: I94e71192b53c7d26e083477df87763d89962459c
Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1205817

[modify] https://crrev.com/1c7f7d4bf3bd1c17f4d99eb6ea850b6cc301c49f/login_manager/session_manager_process_test.cc
[modify] https://crrev.com/1c7f7d4bf3bd1c17f4d99eb6ea850b6cc301c49f/login_manager/session_manager_service.cc
[modify] https://crrev.com/1c7f7d4bf3bd1c17f4d99eb6ea850b6cc301c49f/login_manager/session_manager_service.h

Labels: Merge-Request-70
Requesting a merge for the change in #12
Labels: Merge-Approved-70
Labels: -Merge-Request-70
Project Member

Comment 16 by bugdroid1@chromium.org, Sep 10

Labels: merge-merged-release-R70-11021.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/852290202446b3371644c32ed9aa84dee8ef3700

commit 852290202446b3371644c32ed9aa84dee8ef3700
Author: Chirantan Ekbote <chirantan@chromium.org>
Date: Mon Sep 10 22:22:56 2018

login: Stop VMs if chrome exits

Stop any running VMs if chrome exits.  This ensures that the VMs don't
end up in a state where GUI apps don't work because they are trying to
connect to a wayland server that no longer exists.

BUG= chromium:879903 
TEST=unit test and manual
     start 2 vms, navigate to chrome://restart, and check the logs to
     see that the StopAllVms method was called and all vms exited

Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1205817

(cherry picked from commit 1c7f7d4bf3bd1c17f4d99eb6ea850b6cc301c49f)
Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>

Change-Id: I94e71192b53c7d26e083477df87763d89962459c
Reviewed-on: https://chromium-review.googlesource.com/1217823
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Commit-Queue: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: Chirantan Ekbote <chirantan@chromium.org>

[modify] https://crrev.com/852290202446b3371644c32ed9aa84dee8ef3700/login_manager/session_manager_service.cc
[modify] https://crrev.com/852290202446b3371644c32ed9aa84dee8ef3700/login_manager/session_manager_process_unittest.cc
[modify] https://crrev.com/852290202446b3371644c32ed9aa84dee8ef3700/login_manager/session_manager_service.h

Status: Fixed (was: Assigned)
Project Member

Comment 18 by sheriffbot@chromium.org, Sep 14

Cc: geo...@google.com
This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Approved-70
I've made a new bug related to running wayland applications after chrome crash without having to restart the VMs: https://bugs.chromium.org/p/chromium/issues/detail?id=884398
Cc: rohi...@chromium.org avkodipelli@chromium.org
Status: Verified (was: Fixed)
Verified by crashing chrome and observed StopAllVms in logs in kevin with M71- 11120.0.0.

Sign in to add a comment