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

Issue 2809043005: Work around GPU process crashing in TracingControllerAndroid

Created:
3 years, 8 months ago by klausw
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, agrieve+watch_chromium.org, oystein (OOO til 10th of July)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Work around GPU process crashing in TracingControllerAndroid In WebVR presentation mode, the GPU process crashes when receiving tracing broadcasts due to not having native methods such as nativeGetDefaultCategories available. Add a try/catch to work around this. BUG=710591

Patch Set 1 #

Patch Set 2 : Update error message to include intent data #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -20 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/TracingControllerAndroid.java View 1 1 chunk +25 lines, -20 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 9 (2 generated)
klausw
I'm not convinced this is the right way to fix it, but it worked for ...
3 years, 8 months ago (2017-04-11 20:37:15 UTC) #2
Sami
That's very strange, I'm sure I've been able to trace the GPU process on Android ...
3 years, 8 months ago (2017-04-12 13:19:22 UTC) #3
klausw
On 2017/04/12 13:19:22, Sami wrote: > That's very strange, I'm sure I've been able to ...
3 years, 8 months ago (2017-04-12 17:17:21 UTC) #4
Sami
+cc some tracing folks for ideas, I'm still not sure how this could be broken ...
3 years, 8 months ago (2017-04-13 09:26:01 UTC) #6
Primiano Tucci (use gerrit)
"In WebVR presentation mode, the GPU process crashes when receiving tracing broadcasts due to not ...
3 years, 8 months ago (2017-04-13 09:29:40 UTC) #7
Primiano Tucci (use gerrit)
On 2017/04/13 09:29:40, Primiano Tucci wrote: > "In WebVR presentation mode, the GPU process crashes ...
3 years, 8 months ago (2017-04-13 09:31:09 UTC) #8
klausw
3 years, 8 months ago (2017-04-13 15:56:50 UTC) #9
On 2017/04/13 09:31:09, Primiano Tucci wrote:
> On 2017/04/13 09:29:40, Primiano Tucci wrote:
> > "In WebVR presentation mode, the GPU process crashes when receiving tracing
> > broadcasts due to not having native methods such as
nativeGetDefaultCategories
> > available."
> > 
> > Ehm, why does that happen in the first place? That function is defined in
> > content/browser/android/tracing_controller_android.cc.
> > This smells to me like there is some more substantial problem underneath and
> we
> > are just trying to hide the place where it shows up

I am fully aware that this is just a crude workaround, and agree that the
underlying issue should be fixed. My primary goal for this patch was to get
traces working again and to provide a bit more information in the error message
as opposed to just crashing, I don't know enough about the underlying code to do
a more fundamental fix.

> Also, hold on, how do we end up hitting
> content/**browser**/TracingControllerAndroid.java in the GPU process in the
> first place?

Can we move the discussion about the underlying issue to the bug? I added more
information in http://crbug.com/710591#c4 but I'm mystified about what's going
on.

Powered by Google App Engine
This is Rietveld 408576698