Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2679633002: [Gamepad API] Fix gamepad crash that happens when a gamepad is disconnected

Created:
3 years, 10 months ago by maksims (do not use this acc)
Modified:
3 years, 10 months ago
Reviewers:
bajones, scottmg
CC:
chromium-reviews, denniskempin (chromium), Rick Byers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Gamepad API] Fix gamepad crash that happens when a gamepad is disconnected This cl fixes the problem of a tab being crashed when a gamepad is suddenly disconnected while being used. The problem here is that assertion happens because the WebGamepad's state is not changed to "disconnected". The error was the following - [1:1:0206/135137.833540:FATAL:GamepadDispatcher.cpp(45)] Check failed: connected == gamepad.connected. BUG=681962

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M device/gamepad/gamepad_provider.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 19 (10 generated)
maksims (do not use this acc)
Please review
3 years, 10 months ago (2017-02-06 12:00:16 UTC) #8
scottmg
It looks like this should be happening in MapAndSanitizeGamepadData later on typically. I'm going to ...
3 years, 10 months ago (2017-02-06 18:11:57 UTC) #12
maksims (do not use this acc)
On 2017/02/06 18:11:57, scottmg wrote: > It looks like this should be happening in MapAndSanitizeGamepadData ...
3 years, 10 months ago (2017-02-08 06:50:52 UTC) #13
maksims (do not use this acc)
gentle reminder
3 years, 10 months ago (2017-02-14 06:29:42 UTC) #14
maksims (do not use this acc)
ping
3 years, 10 months ago (2017-02-16 07:21:43 UTC) #15
scheib
On 2017/02/16 07:21:43, maksims wrote: > ping Drive by comment here: Thanks for patch, can ...
3 years, 10 months ago (2017-02-16 23:54:41 UTC) #16
dougt
On 2017/02/16 23:54:41, scheib wrote: > On 2017/02/16 07:21:43, maksims wrote: > > ping > ...
3 years, 10 months ago (2017-02-17 03:17:49 UTC) #17
maksims (do not use this acc)
On 2017/02/17 03:17:49, dougt wrote: > On 2017/02/16 23:54:41, scheib wrote: > > On 2017/02/16 ...
3 years, 10 months ago (2017-02-20 10:37:49 UTC) #18
maksims (do not use this acc)
3 years, 10 months ago (2017-02-20 10:47:04 UTC) #19
On 2017/02/06 18:11:57, scottmg wrote:
> It looks like this should be happening in MapAndSanitizeGamepadData later on
> typically.
> 
> I'm going to add Brandon here. I'm wondering if we should change the order of
> the delivery instead?

It won't because the call to  OnGamepadConnectionChange is synchronous. And
assertion happens just before MapAndSanitizeGamepadData is called.

Powered by Google App Engine
This is Rietveld 408576698