Lagging graphics (browser, visualization, etc.) on Ubuntu 22.04/545.23.08/GeForce RTX 4090

Hello,

About a month ago or so graphical applications - browser, Discord, etc. - started freezing frequently. Clicking the mouse somewhere else freed-up the lock.

I regularly use the GPU for high-load molecular dynamics simulations and there are no problems there.

dmesg | grep -i nv has multiple hits such as:

[27217.457596] NVRM nvAssertFailedNoLog: Assertion failed: params.valid[0] @ kernel_nvenc_ctx.c:97
[27602.597387] NVRM serverFreeResourceTree: hObject 0xbeef0400 not found for client 0xc1d00074
[27602.597423] NVRM serverFreeResourceTree: hObject 0xbeef0401 not found for client 0xc1d00074
[27602.597442] NVRM serverFreeResourceTree: hObject 0xbeef0402 not found for client 0xc1d00074
[27602.597461] NVRM serverFreeResourceTree: hObject 0xbeef0403 not found for client 0xc1d00074
[27602.819325] NVRM nvAssertFailedNoLog: Assertion failed: params.valid[0] @ kernel_nvenc_ctx.c:97
[67446.019956] usb 1-2: config 1 has an invalid interface number: 3 but max is 2
[85445.554356] NVRM nvAssertFailedNoLog: Assertion failed: params.valid[0] @ kernel_nvenc_ctx.c:97
[85499.469875] usb 1-2: config 1 has an invalid interface number: 3 but max is 2
[97040.852257] NVRM nvAssertFailedNoLog: Assertion failed: params.valid[0] @ kernel_nvenc_ctx.c:97
[101018.300633] NVRM nvAssertFailedNoLog: Assertion failed: params.valid[0] @ kernel_nvenc_ctx.c:97
[153612.109837] usb 1-2: config 1 has an invalid interface number: 3 but max is 2
[163925.717018] NVRM serverFreeResourceTree: hObject 0xbeef0400 not found for client 0xc1d0014e
[163925.717032] NVRM serverFreeResourceTree: hObject 0xbeef0401 not found for client 0xc1d0014e
[163925.717041] NVRM serverFreeResourceTree: hObject 0xbeef0402 not found for client 0xc1d0014e
[163925.717049] NVRM serverFreeResourceTree: hObject 0xbeef0403 not found for client 0xc1d0014e
[164024.537062] NVRM serverFreeResourceTree: hObject 0xbeef0400 not found for client 0xc1d001d8
[164024.537076] NVRM serverFreeResourceTree: hObject 0xbeef0401 not found for client 0xc1d001d8
[164024.537086] NVRM serverFreeResourceTree: hObject 0xbeef0402 not found for client 0xc1d001d8
[164024.537096] NVRM serverFreeResourceTree: hObject 0xbeef0403 not found for client 0xc1d001d8
[167540.329041] r8169 0000:05:00.0: invalid VPD tag 0x00 (size 0) at offset 0; assume missing optional EEPROM
[167547.327341] NVRM nvAssertFailedNoLog: Assertion failed: params.valid[0] @ kernel_nvenc_ctx.c:97
[242003.499861] usb 1-2: config 1 has an invalid interface number: 3 but max is 2
[244065.081021] NVRM nvAssertFailedNoLog: Assertion failed: params.valid[0] @ kernel_nvenc_ctx.c:97

No changes on my end other than applying updates.

uname -a: Ubuntu 22.04, 6.5.0-18-generic #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC

dkms status:
nvidia/545.23.08, 6.5.0-17-generic, x86_64: installed
nvidia/545.23.08, 6.5.0-18-generic, x86_64: installed

nvidia-smi:
Thu Feb 22 09:10:52 2024
±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08 Driver Version: 545.23.08 CUDA Version: 12.3 |
|-----------------------------------------±---------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 4090 On | 00000000:06:00.0 On | Off |
| 0% 35C P8 11W / 450W | 1081MiB / 24564MiB | 0% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+

±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1270 G /usr/lib/xorg/Xorg 442MiB |
| 0 N/A N/A 1635 G /usr/bin/kwin_x11 122MiB |
| 0 N/A N/A 1706 G /usr/bin/plasmashell 93MiB |
| 0 N/A N/A 29268 G …seed-version=20240218-180139.541000 75MiB |
| 0 N/A N/A 53817 G /usr/bin/chimerax 41MiB |
| 0 N/A N/A 71197 G …,WinRetrieveSuggestionsOnlyOnDemand 206MiB |
±--------------------------------------------------------------------------------------+

Any ideas on how to rectify?

Thank you,

Todd