-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GnuCash reports viewer broken with nvidia on Xorg (workaround available) #288641
Comments
Hm, I can't reproduce,
The bugs linked in the askubuntu page you linked (Bug 798486, Bug 798537) suggest it's related with libEGL and possibly video drivers? |
You're right, it appears to be some rendering bug. The desktop I tried this on has nvidia drivers and OpenGL enabled. I need some time to read and understand the Launchpad reports and their comments, and I want to do some experimentation with my video settings as there are a number of variables involved. I'll post an update within a week. Thanks for the help so far! |
Here's what I've found out so far. I cannot reproduce this bug on my laptop (which has Intel graphics capabilities, unlike my desktop). I also tried exporting the "blank" report on my desktop to HTML and opened it in my web browser, which worked just fine. Same with the PDF export option. I should probably have tried this before claiming that GnuCash reports were "completely broken". Sorry about that. My desktop has an nvidia GeForce GTX 980 TI graphics card for which I have the nvidia driver installed like so:
Commenting this line out, rebuilding and rebooting also makes the reports render in GnuCash again, under the open source 'nouveau' driver. I also discovered that downgrading the nvidia driver version fixes the reports rendering issue:
Instead of So now I have identified three workarounds:
I also have modesetting, OpenGL and accelerated OpenGL rendering through the Direct Rendering Interface (DRI) enabled in my configuration.nix. Disabling modesetting or OpenGL results in a blank screen or failure to start my desktop environment (Xfce) respectively. Disabling DRI doesn't fix the issue. I should say that I only recently installed NixOS on my desktop, I was running Debian 12 before, with the proprietary nvidia drivers (version 525.147.05) on Xorg, and GnuCash reporting worked just fine there. I've found an (old, but still open) WebKitGTK issue that appears to be related: https://bugs.webkit.org/show_bug.cgi?id=180739 As I don't think this is a gnucash Nix packaging error, I think this issue can best be closed. @nevivurn what do you think. Should I just post about this in the WebKitGTK Bugzilla and WebKitGTK nixpkgs issue linked above and call it a day? Do you have an idea why this issue would not occur on Debian 12? Thanks! |
Thanks for the detailed report! I tried testing it on my NVIDIA RTX 3060 (relevant config here, gnome Wayland), but was still unable to reproduce your issue. Unfortunately, I'm not too familiar with either the graphics stuff or webkit to investigate this issue much further, sorry. I agree that this likely caused by an issue outside of GnuCash packaging, but we can leave this issue open as it is a real problem experienced by some GnuCash users. |
That's okay, I've updated the issue title to make it as complete and descriptive as possible. |
The workaround above:
... also works for me. Interestingly, I get the same error logs whether or not that env var is set:
https://bugs.gnucash.org/show_bug.cgi?id=799095 seems like the best bug about this over in Gnucash, but it seems like their suggested solution is the same env var workaround. |
https://bugs.gnucash.org/show_bug.cgi?id=799086#c18 suggests that a Nvidia release might solve this for some cases. |
Thanks for your input @StephenWithPH. I tried updating my Nix packages to see if maybe an nvidia driver update ( Here is an overview of the nvidia driver packages currently available in the nixos-23.11 channel: |
This is also an issue with other apps that use WebKitGTK, namely Without it, I see messages like this:
|
Describe the bug
Opening any report yields a blank page. Fiddling with report options doesn't help.
Steps To Reproduce
Steps to reproduce the behavior:
Test file (gzip-compressed in order to pass GitHub upload restrictions):
test.gnucash.gz
Expected behavior
The page should look like this:
Screenshots
But on NixOS 23.11, it looks like this:
Additional context
WORKAROUND: start GnuCash with this environment variable:
Possibly related information I've found online:
Notify maintainers
@domenkozar @AndersonTorres @rski @nevivurn
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: