Closed Bug 1509030 Opened 7 years ago Closed 7 years ago

The X11 widget does not populate the graphics adapter annotations

Categories

(Core :: Widget: Gtk, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: gsvelto, Unassigned, Mentored)

Details

(Whiteboard: [good first bug][lang=c++])

Attachments

(1 file)

The GfxInfo implementation for X11 does gather information about the graphics adapter but does not add the relevant annotations to crash report. Interestingly enough it does declare the AddCrashReportAnnotations() method name but never implements it: https://searchfox.org/mozilla-central/rev/55895c49f55073d82d977cb74ec1d3a71ae4b25f/widget/GfxInfoX11.h#77 On this topic, every widget seems to add the annotations on an ad-hoc basis so it might be worth generalizing it outside of the platform-specific code to cut on code duplication.
Mentor: gsvelto
Whiteboard: [good first bug][lang=c++]

In AddCrashReportAnnotations() in windows/Gfxinfo.cpp, certain functions are specific to windows platform, how can I find their alternatives for linux?

Flags: needinfo?(gsvelto)

As Ted pointed out on IRC we already gather some information from Linux by running the 'glxtest' program and reading it's output, see here:

https://searchfox.org/mozilla-central/rev/78cd247b5d7a08832f87d786541d3e2204842e8e/toolkit/xre/glxtest.cpp#105

The data is read in GfxInfo::GetData():

https://searchfox.org/mozilla-central/rev/78cd247b5d7a08832f87d786541d3e2204842e8e/widget/GfxInfoX11.cpp#47

The data retrieved from the program is parsed here:

https://searchfox.org/mozilla-central/rev/78cd247b5d7a08832f87d786541d3e2204842e8e/widget/GfxInfoX11.cpp#102-123

Finally we format it into a string and add it to the crash annotation notes:

https://searchfox.org/mozilla-central/rev/78cd247b5d7a08832f87d786541d3e2204842e8e/widget/GfxInfoX11.cpp#167-179

You would need to change this to add crash annotations instead. In particular the vendor string (mVendor) should be assigned to the AdapterVendorID annotation, the adapter description (mAdapterDescription) should go into the AdapterDeviceID and finally the vendor string into the AdapterDriverVersion annotation.

It would also be best if the annotations themselves would be moved into the AddCrashReportAnnotations() method.

Flags: needinfo?(gsvelto)

Bug 1509030 : The X11 widget populate graphics adapter annotations through AddCrashReportAnnotations()

Assignee: nobody → sharma.divyansh.501
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Assignee: sharma.divyansh.501 → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: