Closed Bug 1769473 Opened 2 years ago Closed 2 years ago

[sway] Unable to select font from Font Settings dropdown

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 100
defect

Tracking

()

RESOLVED DUPLICATE of bug 1695591

People

(Reporter: mbagnara, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Steps to reproduce:

Under about:preferences#general -> Fonts -> Advanced, when I select any of the font dropdowns, nothing happens. Sometimes Firefox will crash.

Actual results:

No font dropdown is displayed, and sometimes if I repeat pressing the dropdown, Firefox will crash

Expected results:

I should be able to select the fonts

I was using a user agent spoofer. Real agent: Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

I'm not seeing this issue on my Ubuntu machine; the font dropdowns seem to work fine for me.

No font dropdown is displayed, and sometimes if I repeat pressing the dropdown, Firefox will crash

Can you share a crash report (see about:crashes) related to this?

Flags: needinfo?(mbagnara)
AdapterDeviceID: 0x1616
AdapterDriverVendor: mesa/iris
AdapterDriverVersion: 22.0.3.0
AdapterVendorID: 0x8086
Add-ons: doh-rollout%40mozilla.org:2.0.0,formautofill%40mozilla.org:1.0.1,pictureinpicture%40mozilla.org:1.0.0,screenshots%40mozilla.org:39.0.1,webcompat-reporter%40mozilla.org:1.4.2,webcompat%40mozilla.org:101.6.0,default-theme%40mozilla.org:1.3,addons-search-detection%40mozilla.com:2.0.0,google%40search.mozilla.org:1.2,amazondotcom%40search.mozilla.org:1.3,wikipedia%40search.mozilla.org:1.1,bing%40search.mozilla.org:1.3,ddg%40search.mozilla.org:1.1,ebay%40search.mozilla.org:1.3
AvailablePageFile: 0
AvailablePhysicalMemory: 109436928
AvailableSwapMemory: 4939898880
AvailableVirtualMemory: 403574784
BackgroundTaskMode: 0
BuildID: 20220516095144
ContentSandboxCapabilities: 119
ContentSandboxCapable: 1
ContentSandboxLevel: 4
CrashTime: 1652714857
DOMFissionEnabled: 1
DOMIPCEnabled: 1
DesktopEnvironment: sway
EventLoopNestingLevel: 1
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.grid-template-masonry-value.enabled,devtools.inspector.compatibility.enabled
HeadlessMode: 0
InstallTime: 1652712215
IsWayland: 1
LinuxUnderMemoryPressure: 0
MozCrashReason: Attempting to create a 375x22552 window/document
Notes: FP(D00-L1000-W00000000-T000) WR? WR+ EGL? EGL- GL Context? GL Context+ 
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: nightly
SafeMode: 0
SecondsSinceLastCrash: 2587
StartupCrash: 0
StartupTime: 1652714833
SubmittedFrom: Client
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20220516095144","version":"102.0a1","vendor":"Mozilla","displayVersion":"102.0a1","platformVersion":"102.0a1","xpcomAbi":"x86_64-gcc3","updaterAvailable":true},"partner":{"distributionId":null,"distributionVersion":null,"partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":3829,"virtualMaxMB":null,"cpu":{"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3","hasSSSE3","hasSSE4_1","hasSSE4_2","hasAVX","hasAVX2","hasAES"]},"os":{"name":"Linux","version":"5.17.7-arch1-1","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) HD Graphics 5500 (BDW GT2)","vendorID":"0x8086","deviceID":"0x1616","subsysID":null,"RAM":0,"driver":null,"driverVendor":"mesa/iris","driverVersion":"22.0.3.0","driverDate":null,"GPUActive":true}],"monitors":[{"screenWidth":1920,"screenHeight":1080}],"features":{"compositor":"webrender","hwCompositing":{"status":"available"},"gpuProcess":{"status":"unused"},"wrQualified":{"status":"available"},"webrender":{"status":"available"},"wrCompositor":{"status":"blocklisted:FEATURE_FAILURE_WEBRENDER_COMPOSITOR_DISABLED"},"wrSoftware":{"status":"available"},"openglCompositing":{"status":"available"},"omtp":{"status":"unused"}}},"appleModelId":null,"hasWinPackageId":null},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":8,"fissionEnabled":true,"telemetryEnabled":true,"locale":"en-US","intl":{"requestedLocales":["en-US"],"availableLocales":["en-US"],"appLocales":["en-US"],"systemLocales":["en-US"],"regionalPrefsLocales":["en-US"],"acceptLanguages":["en-US","en"]},"update":{"channel":"nightly","enabled":false,"autoDownload":true,"background":true},"userPrefs":{"browser.shell.checkDefaultBrowser":false,"browser.search.region":"US","browser.search.widget.inNavBar":false,"browser.urlbar.quicksuggest.dataCollection.enabled":false,"browser.urlbar.suggest.quicksuggest.nonsponsored":true,"browser.urlbar.suggest.quicksuggest.sponsored":true,"browser.urlbar.suggest.bestmatch":true,"media.gmp-gmpopenh264.lastInstallStart":1652712359,"media.gmp-gmpopenh264.lastDownload":1652712360,"media.gmp-gmpopenh264.lastUpdate":1652712360,"media.gmp-manager.lastCheck":1652712359,"network.trr.strict_native_fallback":true,"widget.content.allow-gtk-dark-theme":false,"widget.content.gtk-high-contrast.enabled":true},"sandbox":{"effectiveContentProcessLevel":4,"contentWin32kLockdownState":3},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":false,"defaultSearchEngine":"google-b-1-d","defaultSearchEngineData":{"loadPath":"[other]addEngineWithDetails:google@search.mozilla.org","name":"Google","origin":"default","submissionURL":"https://www.google.com/search?client=firefox-b-1-d&q="}},"profile":{"creationDate":19128,"firstUseDate":19128},"addons":{"activeAddons":{"doh-rollout@mozilla.org":{"version":"2.0.0","scope":1,"type":"extension","updateDay":19128,"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":19128},"formautofill@mozilla.org":{"version":"1.0.1","scope":1,"type":"extension","updateDay":19128,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":null,"name":"Form Autofill","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19128},"pictureinpicture@mozilla.org":{"version":"1.0.0","scope":1,"type":"extension","updateDay":19128,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Fixes for web compatibility with Picture-in-Picture","name":"Picture-In-Picture","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19128},"screenshots@mozilla.org":{"version":"39.0.1","scope":1,"type":"extension","updateDay":19128,"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":19128},"webcompat-reporter@mozilla.org":{"version":"1.4.2","scope":1,"type":"extension","updateDay":19128,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Report site compatibility issues on webcompat.com","name":"WebCompat Reporter","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19128},"webcompat@mozilla.org":{"version":"101.6.0","scope":1,"type":"extension","updateDay":19128,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Urgent post-release fixes for web compatibility.","name":"Web Compatibility Interventions","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19128}},"theme":{"id":"default-theme@mozilla.org","blocklisted":false,"description":"Follow the operating system setting for buttons, menus, and windows.","name":"System theme — auto","userDisabled":false,"appDisabled":false,"version":"1.3","scope":4,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19128,"updateDay":19128},"activeGMPlugins":{"gmp-gmpopenh264":{"version":"1.8.1.1","userDisabled":false,"applyBackgroundUpdates":1}}}}
Throttleable: 1
TotalPageFile: 10053816320
TotalPhysicalMemory: 4014747648
URL: about:newtab
UptimeTS: 25.06479914
Vendor: Mozilla
Version: 102.0a1
useragent_locale: en-US

This report also contains technical information about the state of the application when it crashed.```
Flags: needinfo?(mbagnara)

Interesting; that seems to be a webrender crash trying to create an extremely tall window/document. I wonder: do you have a very large number of fonts installed? (As a first approximation, what does fc-list | wc -l report when run in a shell window?)

Flags: needinfo?(mbagnara)

I have 357 installed, however I don't think that is an extremely large number no?

Flags: needinfo?(mbagnara)

No, that sounds quite reasonable - I don't think that should be causing problems, then.

The severity field is not set for this bug.
:dholbert, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dholbert)

(In reply to Jonathan Kew (:jfkthame) from comment #5)

Interesting; that seems to be a webrender crash trying to create an extremely tall window/document.

FWIW, jfkthame is referencing this part of the crash report:

MozCrashReason: Attempting to create a 375x22552 window/document

The 22552px height there is ~20x the typical margin height, where "typical" is 1920x1068. So: the failed window/document was quite large, though not off-the-charts-gigantic.

That MozCrashReason comes from here:
https://searchfox.org/mozilla-central/rev/0e3d9bfae6fdaa6cb29cbce3f25471d5708aedc3/gfx/wr/webrender/src/render_api.rs#1376
...and the threshold seems to be 16384, here:
https://searchfox.org/mozilla-central/rev/0e3d9bfae6fdaa6cb29cbce3f25471d5708aedc3/gfx/wr/webrender_api/src/lib.rs#64
(And your crash report's referenced height 22552 is indeed larger than that threshold.)

A few requests:

  • Do you have any unusual display settings (e.g. extremely large monitor, pixel-scaling) that might be involved here?
  • Would you mind providing the crash ID (from about:crashes) or the crash-report URL for one of these crashes? (The crash report ID should be listed at about:crashes as bp-.... with some UUID.) This will help us see a bit more information that's not in your comment 4 copypaste information -- e.g. the backtrace -- which would help a bit here.
Flags: needinfo?(dholbert)

[ni=reporter for questions at the end of previous comment]

Flags: needinfo?(mbagnara)

I just submitted a more recent crash report on FF 101.0
b4aa15b4-6752-45db-a2f3-367b10220608 is its ID

For my display settings, nothing too strange here. I am using my built-in laptop display. Here is my display config:

swaymsg --type get_outputs

Output eDP-1 'Sharp Corporation 0x1420 0x00000000' (focused)
  Current mode: 1920x1080 @ 59.934 Hz
  Position: 0,0
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 1:shell
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    1920x1080 @ 59.934 Hz
Flags: needinfo?(mbagnara)

Thanks. Here's the linkable crash report: https://crash-stats.mozilla.org/report/index/b4aa15b4-6752-45db-a2f3-367b10220608

The "Bugzilla" tag there points to bug 1695591 as being filed on this crash (which has recent activity from other users who are hitting similar issues). We should probably duplicate this over there to keep things in one place.

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

DesktopEnvironment: sway

See Also: → 1746812, 1769366
Summary: Unable to select font from Font Settings dropdown → [sway] Unable to select font from Font Settings dropdown
You need to log in before you can comment on or make changes to this bug.