Closed Bug 1672176 Opened 4 years ago Closed 1 year ago

Firefox keeps crashing randomly on Linux with _BAD_WINDOW

Categories

(Core :: Widget: Gtk, defect, P3)

80 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: karthikeyan.iyengar, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36

Steps to reproduce:

Unable to find steps to reproduce, although this happens very frequently.

Actual results:

Firefox keeps crashing with the following error on the terminal:

λ 
firefox          

(firefox:48947): Gdk-ERROR **: 15:57:27.928: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 2013 error_code 3 request_code 20 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
ExceptionHandler::GenerateDump cloned child 49346
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
[1]    48947 trace trap (core dumped)  firefox

Once it starts crashing, I cannot get it to run correctly without logging out and logging in to X. I'm using XMonad on Ubuntu 20.04. I have also sent multiple crash reports. This behavior can also be reproduced with the --safe-mode flag.

Here are the details from the crash reporter:

AdapterDeviceID: 0x3ea0
AdapterDriverVendor: mesa/iris
AdapterDriverVersion: 20.0.8.0
AdapterVendorID: 0x8086
BuildID: 20201012085804
ContentSandboxCapabilities: 119
ContentSandboxCapable: 1
ContentSandboxLevel: 4
CrashTime: 1603202621
DOMIPCEnabled: 1
DesktopEnvironment: unknown
ExperimentalFeatures: browser.startup.homepage.abouthome_cache.enabled,network.cookie.sameSite.laxByDefault,network.cookie.sameSite.noneRequiresSecure,network.cookie.sameSite.schemeful,layout.css.constructable-stylesheets.enabled,layout.css.focus-visible.enabled,layout.css.grid-template-masonry-value.enabled,devtools.inspector.color-scheme-simulation.enabled,devtools.inspector.compatibility.enabled,devtools.webconsole.input.context,devtools.debugger.features.windowless-service-workers,apz.allow_zooming,image.avif.enabled,dom.media.mediasession.enabled,print.tab_modal.enabled,dom.input_events.beforeinput.enabled,dom.forms.inputmode,network.preload,dom.webgpu.enabled
FramePoisonBase: 9223372036600930304
FramePoisonSize: 4096
InstallTime: 1603098596
IsWayland: 0
IsWaylandDRM: 0
Notes: Ubuntu 20.04.1 LTSFP(D00-L1000-W00000000-T000) WR? WR- OMTP? OMTP- 
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: release
SafeMode: 1
SecondsSinceLastCrash: 44
StartupCrash: 0
StartupTime: 1603202601
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20201012085804","version":"81.0.2","vendor":"Mozilla","displayVersion":"81.0.2","platformVersion":"81.0.2","xpcomAbi":"x86_64-gcc3","updaterAvailable":false},"partner":{"distributionId":"canonical","distributionVersion":"1.0","partnerId":"ubuntu","distributor":"canonical","distributorChannel":"ubuntu","partnerNames":["ubuntu"]},"system":{"memoryMB":15823,"virtualMaxMB":null,"cpu":{"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3","hasSSSE3","hasSSE4_1","hasSSE4_2","hasAVX","hasAVX2","hasAES"]},"os":{"name":"Linux","version":"5.4.0-51-generic","locale":"en-US"},"hdd":{"profile":{"model":null,"revision":null,"type":null},"binary":{"model":null,"revision":null,"type":null},"system":{"model":null,"revision":null,"type":null}},"gfx":{"D2DEnabled":null,"DWriteEnabled":null,"ContentBackend":"Skia","Headless":false,"EmbeddedInFirefoxReality":null,"adapters":[{"description":"Mesa Intel(R) UHD Graphics 620 (WHL GT2)","vendorID":"0x8086","deviceID":"0x3ea0","subsysID":null,"RAM":3072,"driver":null,"driverVendor":"mesa/iris","driverVersion":"20.0.8.0","driverDate":null,"GPUActive":true}],"monitors":[{"screenWidth":2560,"screenHeight":1440}],"features":{"compositor":"basic","hwCompositing":{"status":"blocked:FEATURE_FAILURE_COMP_SAFEMODE"},"gpuProcess":{"status":"unused"},"wrQualified":{"status":"denied"},"webrender":{"status":"unavailable-in-safe-mode"},"wrCompositor":{"status":"disabled:FEATURE_FAILURE_DISABLED"},"openglCompositing":{"status":"unavailable:FEATURE_FAILURE_OPENGL_NEED_HWCOMP"}}},"appleModelId":null},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":8,"telemetryEnabled":false,"locale":"en-US","intl":{"requestedLocales":["en-US"],"availableLocales":["en-US"],"appLocales":["en-US"],"systemLocales":["en-US"],"regionalPrefsLocales":["de-DE"],"acceptLanguages":["en-US","en"]},"update":{"channel":"release","enabled":true,"autoDownload":false},"userPrefs":{"browser.search.region":"SE","browser.search.widget.inNavBar":false,"browser.startup.page":3,"fission.autostart":false,"privacy.trackingprotection.enabled":true,"privacy.donottrackheader.enabled":true,"signon.rememberSignons":false},"sandbox":{"effectiveContentProcessLevel":4},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":true,"defaultSearchEngine":"google-b-d","defaultSearchEngineData":{"loadPath":"[other]addEngineWithDetails:google@search.mozilla.org","name":"Google","origin":"default","submissionURL":"https://www.google.com/search?channel=fs&client=ubuntu&q="}},"profile":{"creationDate":18442,"resetDate":18554,"firstUseDate":18442},"addons":{"activeAddons":{"doh-rollout@mozilla.org":{"version":"2.0.0","scope":1,"type":"extension","updateDay":18548,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"This used to be a Mozilla add-on that supported the roll-out of DoH, but now only exists as a stub t","name":"DoH Roll-Out","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18548},"formautofill@mozilla.org":{"version":"1.0","scope":1,"type":"extension","updateDay":18548,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":null,"name":"Form Autofill","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18548},"screenshots@mozilla.org":{"version":"39.0.0","scope":1,"type":"extension","updateDay":18548,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Take clips and screenshots from the Web and save them temporarily or permanently.","name":"Firefox Screenshots","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18548},"webcompat@mozilla.org":{"version":"14.0.0","scope":1,"type":"extension","updateDay":18548,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Urgent post-release fixes for web compatibility.","name":"Web Compat","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18548}},"theme":{"id":"firefox-compact-dark@mozilla.org","blocklisted":false,"description":"A theme with a dark color scheme.","name":"Dark","userDisabled":false,"appDisabled":false,"version":"1.0","scope":4,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18554,"updateDay":18554},"activePlugins":[],"activeGMPlugins":{"gmp-gmpopenh264":{"version":"1.8.1.1","userDisabled":false,"applyBackgroundUpdates":1},"gmp-widevinecdm":{"version":"4.10.1582.2","userDisabled":false,"applyBackgroundUpdates":1}}},"experiments":{"bug-1652585-rollout-staged-rollout-for-appcache-removal-release-81-83":{"branch":"active","type":"normandy-prefrollout","enrollmentId":"c9658098-d814-458c-86a2-01a99dbdde57"},"bug-1653900-rollout-tracker-cookie-purging-release-79-82":{"branch":"active","type":"normandy-prefrollout","enrollmentId":"e307a4a6-b216-4a1c-85ec-889541f9f042"}},"services":{"accountEnabled":true,"syncEnabled":true}}
ThreadIdNameMapping: 50707:"Gecko_IOThread",50708:"Timer",50709:"Netlink Monitor",50710:"Socket Thread",50711:"Permission",50720:"JS Watchdog",50721:"JS Helper",50724:"JS Helper",50722:"JS Helper",50725:"JS Helper",50726:"JS Helper",50723:"JS Helper",50727:"JS Helper",50728:"JS Helper",50730:"Cache2 I/O",50731:"Cookie",50732:"StreamTrans #1",50734:"Worker Launcher",50735:"SoftwareVsyncThread",50736:"Compositor",50737:"ImgDecoder #1",50738:"ImageIO",50739:"IPDL Background",50744:"ImageBridgeChld",50745:"DOM Worker",50747:"QuotaManager IO",50748:"IndexedDB #1",50750:"StreamTrans #5",50752:"StyleThread#1",50751:"StyleThread#0",50754:"StyleThread#3",50755:"StyleThread#4",50756:"StyleThread#5",50753:"StyleThread#2",50759:"TRR Background",50791:"DOM Worker",50883:"StreamTrans #15",50884:"Breakpad Server",50886:"IPC Launch",50888:"GMPThread",50903:"FS Broker 50887",50904:"ProcessHangMon",50926:"StreamTrans #16",50947:"DataStorage",50969:"BackgroundThreadPool #1",50970:"Cache I/O",50971:"localStorage DB",50991:"DNS Resolver #1",50992:"URL Classifier",50993:"ImgDecoder #2",50994:"ImgDecoder #3",50995:"ImgDecoder #4",50997:"IndexedDB #3",50998:"HTML5 Parser",50999:"DNS Resolver #2",51000:"DNS Resolver #3",51001:"DNS Resolver #4",51002:"DNS Resolver #5",51007:"FS Broker 51003",51022:"mozStorage #1",51023:"mozStorage #2",51024:"mozStorage #3",51025:"mozStorage #4",51035:"DOM Worker",51042:"DOM Worker",51043:"IndexedDB #5",51045:"ExtensionProtocolHandler",51055:"IndexedDB #6",51061:"FS Broker 51056",51073:"SSL Cert #1",51089:"mozStorage #5",51090:"SSL Cert #3",51091:"SSL Cert #4",51092:"SSL Cert #5",51108:"FS Broker 51104",51130:"BgIOThreadPool #1",51133:"mozStorage #6",51141:"mozStorage #7",51142:"StreamTrans #19",51143:"mozStorage #8",51161:"FS Broker 51157",
Throttleable: 1
URL: https://ogs.google.com/u/0/widget/app?origin=https%3A%2F%2Fwww.google.com&cn=app&pid=1&spid=1&hl=en
UptimeTS: 20.1514214
Vendor: Mozilla
Version: 81.0.2
useragent_locale: en-US

I have also tried the snap variant with version 82, but I still run into this issue from time to time.

Expected results:

Firefox should not crash (Chrome works perfectly fine).

For additional context, this bug does not seem to be Ubuntu specific, as I run into this on my NixOS device as well (with a similar WM setup)

Hi Karthikeyan,

Can you please submit your about:support information?

Setting a component for this in order to get the dev team involved.
(If the team feels it's an incorrect one please feel free to change it to a more appropriate one.)

Best regards,
Clara

Component: Untriaged → Crash Reporting
Flags: needinfo?(karthikeyan.iyengar)
Product: Firefox → Toolkit
Attached file System Info
Please find attached:

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Closing the bug as incomplete.

For more information, please visit auto_nag documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE

The requested information was provided in comment 3.

Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(karthikeyan.iyengar)
Resolution: INCOMPLETE → ---

Moving to Widget as this doesn't belong to the crash reporting component, however given two years have passed chances are that this was fixed already.

Component: Crash Reporting → Widget: Gtk
Product: Toolkit → Core
Priority: -- → P3

Given that there was a crash, getting a link from about:crashes would've been more helpful. Given the age of this bug, I don't think we'll be able to debug it at this point.

Status: REOPENED → RESOLVED
Closed: 2 years ago1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: