Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79807 - [nvidia] Buffer/Rendering/Allocation problem?

Attached to Project: Arch Linux
Opened by Marcel Langner (LanMarc77) - Thursday, 28 September 2023, 09:27 GMT
Last edited by Toolybird (Toolybird) - Friday, 29 September 2023, 07:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I noticed I can not view Gnucash budget reports anymore. The budget report uses some graphics APIs and I am pretty sure 2 weeks ago it was still working.
The error message I get is as follows:

Failed to create GBM buffer of size 1680x796: Das Argument ist ung├╝ltig
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)


Everything else in the system works: browser, video playback, 3d games with wine...
System is up to date.
I have a Nvidia GTX 1060 6GB use X11 and the Nvidia proprietary drivers from the arch repo.

I assume it has to do with the recent update of the Nvidia drivers but I do not know for sure.
I found a reddit post with a maybe connected issue from today: https://www.reddit.com/r/rust/comments/16tzu8w/tauri_issue/?rdt=58087

This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 29 September 2023, 07:34 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Merged into  FS#79783 
Comment by Marcel Langner (LanMarc77) - Thursday, 28 September 2023, 11:45 GMT
I mitigated it by switching to wayland and using nvidia_drm.modeset=1 in the kernel command line.
Only adding the kernel parameter did not work, but also gnucash did not emit any error message.

So I guess it is a problem limited to X11.
Comment by Toolybird (Toolybird) - Thursday, 28 September 2023, 21:14 GMT
> I assume it has to do with the recent update of the Nvidia drivers

For sure. It doesn't appear to be an Arch packaging problem. Issues with Nvidia proprietary drivers need to be reported to Nvidia [1]. There are a few other reports around the place e.g. [2]. Is your initramfs up to date?

[1] https://forums.developer.nvidia.com/c/gpu-graphics/linux/148
[2] https://aur.archlinux.org/packages/amazon-workspaces-bin#comment-935824
Comment by Marcel Langner (LanMarc77) - Thursday, 28 September 2023, 21:35 GMT
Ah indeed, there seem to be much more with the same issue. I would have been surprised if this were specific to gnucash.
I use UKI (setup as described here: https://wiki.archlinux.org/title/Unified_kernel_image) and during the whole debugging process regenerated them multiple times so an old initramfs should not be the issue as it should be always freshly generated and bundled. If I understood the process correctly.

Should I report this to Nvidia, which I would do including all the reports gathered so far?
Comment by Toolybird (Toolybird) - Friday, 29 September 2023, 07:33 GMT
Merging this into  FS#79783  which appears to be the root of the problem.

Loading...