This seems to be caused by incompatible GTK+-schema settings, and seems to always occur, if a program uses a GTK+-library which is newer then the currently active GTK+settings. This affects e.g.: Evince, Atril, Firefox, Chromium, LibreOffice, … (Gimp, Inkscape, Viewnior seem to be unaffected.)
Try to reinstall libgtk-3-common
but this might not work.
Solution:
This seems to be caused by incompatible GTK+-schema settings, and seems to always occur, if a program uses a GTK+-library with is newer then the currently active GTK+settings, e.g. if
a package from unstable is used, with settings from “stable”;
this can be worked around with:
mkdir -p ~/.local/share/glib-2.0/schemas
cp -pi /nix/store/...-gtk+3-3.<LATEST>/share/gsettings-schemas/gtk+3-3.*/glib-2.0/schemas/gschemas.compiled ~/.local/share/glib-2.0/schema/
settings are installed locally in ~/.local/share/glib-2.0/schemas (e.g. from the workaround above), but newer packages are used, e.g. after a NixOS-upgrade or newer packages from unstable.
this may be solved by:
rm -rf ~/.local/share/glib-2.0/schemas
If this does not solve the issue, the newest settings have to be copied to this directory (see workaround above)