Closed Bug 1901697 Opened 5 months ago Closed 15 days ago

[NVIDIA] Canvas - google sheets rendering blanks [gfx.canvas.accelerated = false fixes it]

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 126
defect

Tracking

()

RESOLVED DUPLICATE of bug 1924578

People

(Reporter: andydeardentsa, Unassigned)

References

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0

Steps to reproduce:

I created a google sheet and edited it a bit (black text, no changes to cell fill or highlight settings etc.). I then left it and came back a couple of days later.

Firefox on Ubuntu 18.04

Actual results:

The data was there (shows in the edit bar as I scroll around) but was not visible in the spreadsheet.

Expected results:

data should be visible

There is data in cell A1, but it is not visible. As you can see there is an entry in A3, but it is invisible.

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Note - what's really strange is that the data comes up visible as the sheet is initially loading, but then it disappears (blue on blue or something).

I've experienced this and it does not happen when hardware acceleration is disabled.

(In reply to Nathan Babb from comment #4)

I've experienced this and it does not happen when hardware acceleration is disabled.

Please attach your about:support page.

Andy, can you test with HW acceleration disabled?
https://support.mozilla.org/en-US/kb/upgrade-graphics-drivers-use-hardware-acceleration#w_i-still-have-problems-with-my-graphics-card-in-firefox

Thanks.

Flags: needinfo?(andydeardentsa)

Hi Martin / Nathan

Thank you so much for taking this on.

I am not able to reproduce the bug in my current version: Firefox 129.0.1

I don't have hardware acceleration enabled ( and I've never switched that before, so presumably it was not enabled when I had the problem in 126.0

Thanks

Andy

Flags: needinfo?(andydeardentsa)
Attached file about:support

I've attached my about:support info. Let me know if there's any other data I can provide.

Attached file ff_about_support.json

Previous JSON was truncated. Trying again.

I think this is related to canvas caching. If I set gfx.canvas.accelerated.cache-items=0 the problem stops happening even with hardware acceleration on. Seems like possibly the wrong data is being retrieved from cache causing the cells to render incorrect values.

I was able to cause glitches by creating a new spreadsheet and 10 columns in 40 rows with the letter 'A'. Then just clicking around to different cells. After enough clicks, the blue row and column indicators at the edges will start to show in the wrong place occasionally. Adjusting the cache items and cache size affects how many clicks it takes to make this happen.

Component: Widget: Gtk → Graphics: Canvas2D

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

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)

(In reply to Nathan Babb from comment #9)

I think this is related to canvas caching. If I set gfx.canvas.accelerated.cache-items=0 the problem stops happening even with hardware acceleration on. Seems like possibly the wrong data is being retrieved from cache causing the cells to render incorrect values.

I was able to cause glitches by creating a new spreadsheet and 10 columns in 40 rows with the letter 'A'. Then just clicking around to different cells. After enough clicks, the blue row and column indicators at the edges will start to show in the wrong place occasionally. Adjusting the cache items and cache size affects how many clicks it takes to make this happen.

This certainly lines up with my experience, where if I'm working in a sheet that has a lot of data over multiple tabs, it'll start flashing visuals from the wrong tab on the screen while things like the cell selection box will continue to appear in the right place. This affects Microsoft Excel online too. It does make working in these web apps pretty much impossible if you're in there for more than a minute or two. I can confirm your about:config tweak works around the problem too.

I'm on FF 131.0 (64 bit) - Fedora 40

Had the same issue described here and tried the following:

set gfx.canvas.accelerated.cache-items=0--> issue still occurred, less frequently

then, set gfx.webrender.software to false --> issue was resolved, BUT then video playback at high resolution or full screen became too slow (low fps)

I have since reverted gfx.webrender.software to true and I'm testing with setting gfx.canvas.accelerated to false. I'll post back in a few weeks with updates.

system:
OS: Fedora Linux 40 (Workstation Edition) x86_64
Kernel: Linux 6.10.11-200.fc40.x86_64
DE: GNOME 46.5
WM: Mutter (Wayland)
CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 (8) @ 4.70 GHz
GPU 1: NVIDIA GeForce RTX 2060 Mobile [Discrete]
GPU 2: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]
Memory: 62.46 GiB

(In reply to Henry from comment #12)

I'm on FF 131.0 (64 bit) - Fedora 40

Had the same issue described here and tried the following:

set gfx.canvas.accelerated.cache-items=0--> issue still occurred, less frequently

then, set gfx.webrender.software to false --> issue was resolved, BUT then video playback at high resolution or full screen became too slow (low fps)

I have since reverted gfx.webrender.software to true and I'm testing with setting gfx.canvas.accelerated to false. I'll post back in a few weeks with updates.

system:
OS: Fedora Linux 40 (Workstation Edition) x86_64
Kernel: Linux 6.10.11-200.fc40.x86_64
DE: GNOME 46.5
WM: Mutter (Wayland)
CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 (8) @ 4.70 GHz
GPU 1: NVIDIA GeForce RTX 2060 Mobile [Discrete]
GPU 2: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]
Memory: 62.46 GiB

Correction:
then, set gfx.webrender.software to false true (i.e. disabled HW Acc) --> issue was resolved, BUT then video [...]

I have since reverted gfx.webrender.software to true false and [...]

Does 'gfx.canvas.accelerated' work for you?

Summary: google sheets rendering blanks → [NVIDIA] Canvas - google sheets rendering blanks

Setting gfx.canvas.accelerated = false prevents this from happening for me too.

Summary: [NVIDIA] Canvas - google sheets rendering blanks → [NVIDIA] Canvas - google sheets rendering blanks [gfx.canvas.accelerated = false fixes it]
Duplicate of this bug: 1924982
Duplicate of this bug: 1908370

As a layman in programming, I'm just curious.
Is this is a Nvidia driver bug, so up to them to eventually fix or is this a bug with Firefox?

(In reply to Daniel Persson from comment #18)

As a layman in programming, I'm just curious.
Is this is a Nvidia driver bug, so up to them to eventually fix or is this a bug with Firefox?

It's unclear so far.

It seems important to figure out though, especially since we are seeing duplicates of this issue.

Severity: -- → S2

After 2 weeks of continuous use o Google Sheets and Docs, I can confirm that setting gfx.canvas.accelerated = false solves the issue.

(In reply to Martin Stránský [:stransky] (ni? me) from comment #14)

Does 'gfx.canvas.accelerated' work for you?

Status: UNCONFIRMED → RESOLVED
Closed: 15 days ago
Duplicate of bug: 1924578
Flags: needinfo?(lsalzman)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: