Solved Chromium rendering problem

Hello i have been using Chromium without problems under FreeBSD and Nvidia for years, but recently, i don`t know exactly when Chromium started to show strange rendering errors, i have tried disabling graphical acceleration in browaser settings but it behaves the same way, now i am using FreeBSD13.2 but with 13.1 was the same problem.

My system is:
Code:
freebsd-version -kru
13.2-RELEASE
13.2-RELEASE
13.2-RELEASE
Code:
uname -a
FreeBSD Garrus.alfaexploit.com 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
My graphical video driver:
Code:
pkg info nvidia-driver
nvidia-driver-515.86.01_1
Name           : nvidia-driver
Version        : 515.86.01_1
Installed on   : Sat Apr 22 14:16:21 2023 CEST
Origin         : x11/nvidia-driver
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : x11 kld
Licenses       : NVIDIA
Maintainer     : [email]danfe@FreeBSD.org[/email]
WWW            : [URL]https://www.nvidia.com/object/unix.html[/URL]
Comment        : NVidia graphics card binary drivers for hardware OpenGL rendering
Options        :
    ACPI_PM        : on
    DOCS           : on
    LINUX          : on
    WBINVD         : off
Shared Libs required:
    libXext.so.6
    libX11.so.6
    libEGL.so.1
Shared Libs provided:
    libvdpau_nvidia.so.1
    libnvidia-tls.so.1
    libnvidia-ml.so.1
    libnvidia-glvkspirv.so.1
    libnvidia-glsi.so.1
    libnvidia-glcore.so.1
    libnvidia-eglcore.so.1
    libnvidia-cfg.so.1
    libGLX_nvidia.so.0
    libGLESv2_nvidia.so.2
    libGLESv1_CM_nvidia.so.1
    libEGL_nvidia.so.0
Annotations    :
    FreeBSD_version: 1301000
    repo_type      : binary
    repository     : FreeBSD
Flat size      : 232MiB
Description    :
These are the official NVidia binary drivers for hardware OpenGL rendering
in X11, using the GLX extensions.

WWW: https://www.nvidia.com/object/unix.html

My chromium installed version:
Code:
pkg info chromium
chromium-112.0.5615.121
Name           : chromium
Version        : 112.0.5615.121
Installed on   : Sat Apr 22 14:15:24 2023 CEST
Origin         : www/chromium
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : www wayland
Licenses       : MPL11 and LGPL21 and BSD3CLAUSE
Maintainer     : [email]chromium@FreeBSD.org[/email]
WWW            : [URL]https://www.chromium.org/Home[/URL]
Comment        : Google web browser based on WebKit
Options        :
    ALSA           : off
    CODECS         : on
    CUPS           : on
    DEBUG          : off
    DRIVER         : on
    HEIMDAL        : off
    HEIMDAL_BASE   : off
    KERBEROS       : on
    LTO            : off
    MIT            : off
    PULSEAUDIO     : off
    SNDIO          : on
    TEST           : off
Shared Libs required:
    libxslt.so.1
    libxshmfence.so.1
    libxml2.so.2
    libxkbcommon.so.0
    libxcb.so.1
    libwebpmux.so.3
    libwebpdemux.so.2
    libwebp.so.7
    libsndio.so.7.2
    libsnappy.so.1
    libsmime3.so
    libsharpyuv.so.0
    libpng16.so.16
    libplds4.so
    libplc4.so
    libpci.so.3
    libpangocairo-1.0.so.0
    libpango-1.0.so.0
    libopus.so.0
    libopenh264.so.6
    libnssutil3.so
    libnss3.so
    libnspr4.so
    libjpeg.so.8
    libintl.so.8
    libicuuc.so.72
    libicui18n.so.72
    libicudata.so.72
    libiconv.so.2
    libharfbuzz.so.0
    libharfbuzz-subset.so.0
    libgthread-2.0.so.0
    libgobject-2.0.so.0
    libgmodule-2.0.so.0
    libglib-2.0.so.0
    libgio-2.0.so.0
    libgbm.so.1
    libfontconfig.so.1
    libffi.so.8
    libexpat.so.1
    libevent-2.1.so.7
    libepoll-shim.so.0
    libdrm.so.2
    libdbus-1.so.3
    libcups.so.2
    libcairo.so.2
    libatspi.so.0
    libatk-bridge-2.0.so.0
    libatk-1.0.so.0
    libXtst.so.6
    libXrender.so.1
    libXrandr.so.2
    libXi.so.6
    libXfixes.so.3
    libXext.so.6
    libXdamage.so.1
    libXcomposite.so.1
    libX11.so.6
    libGL.so.1
    libFLAC.so.12
Shared Libs provided:
    libvulkan.so.1
    libvk_swiftshader.so
    libVkICD_mock_icd.so
    libGLESv2.so
    libEGL.so
Annotations    :
    FreeBSD_version: 1301000
    cpe            : cpe:2.3:a:google:chrome:112.0.5615.121:::::freebsd13:x64
    repo_type      : binary
    repository     : FreeBSD
Flat size      : 319MiB
Description    :
Chromium is an open-source browser project that aims to build a safer,
faster, and more stable way for all users to experience the web.

The Chromium website contains design documents, architecture overviews,
testing information, and more to help you learn to build and work with
the Chromium source code.

WWW: https://www.chromium.org/Home
chromium.png


It seems some kind of text shifting or something like that.

Any idea or tip?
 
Post your Xorg.0.log, I suspect you're not using the NVidia driver.

cat /var/log/Xorg.0.log | nc termbin.com 9999
 
This doesn't look good:
Code:
[    97.683] (WW) NVIDIA: The Composite and Xinerama extensions are both enabled, which
[    97.683] (WW) NVIDIA:     is an unsupported configuration.  The driver will continue
[    97.683] (WW) NVIDIA:     to load, but may behave strangely.
[    97.683] (WW) NVIDIA: Xinerama is enabled, so RandR has likely been disabled by the
[    97.683] (WW) NVIDIA:     X server.
That might be the cause of the rendering issues.
 
His machines hostname from /etc/rc.conf
That would be my guess.
Snipped the end maybe..

FreeBSD E6420 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64
 
This doesn't look good:
Code:
[    97.683] (WW) NVIDIA: The Composite and Xinerama extensions are both enabled, which
[    97.683] (WW) NVIDIA:     is an unsupported configuration.  The driver will continue
[    97.683] (WW) NVIDIA:     to load, but may behave strangely.
[    97.683] (WW) NVIDIA: Xinerama is enabled, so RandR has likely been disabled by the
[    97.683] (WW) NVIDIA:     X server.
That might be the cause of the rendering issues.
Thank you for pointing out that problem, I will investigate it
 
I have disabled compositing with the command:
nvidia-xconfig --no-composite

Wich added the following configuration:
< Section "Extensions"
< Option "COMPOSITE" "Disable"

Then i rebooted the computer and i continue with the same strange glitches, at least i only have that warning in my Xorg log:
[ 63.176] (WW) NVIDIA: Xinerama is enabled, so RandR has likely been disabled by the
[ 63.176] (WW) NVIDIA: X server.

You can see the whole log file here:
https://termbin.com/gq9r

I will try with only one monitor or disabling xinerama to check how it behaves.

The strange part is that Chromium is the only software that is beeing affected, and not all the time, sometimes the webpages gets loaded correctly, sometines not, when it doesnt load correctly i refresh the page and the 99% of times it gets correctly.
By the way i think that i havent indicated in my first post but i am using awesome WM with two monitors one connected to HDMI and another to DP port.
 
I finally resolved the problem, it takes two steps:
  1. Disable xinerama.
  2. Ensure that the two monitors are the same "X Screen" as shown in the screenshots.
1.png

2.png

I attach my final Xorg configuration file just in case it can be usefull to someone:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 470.86

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Samsung U28E590"
HorizSync 30.0 - 135.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce GTX 1060 6GB"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-2"
Option "metamodes" "DP-0: 2560x1440 +0+0, HDMI-0: 2560x1440 +2560+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
 
Back
Top