I was trying to run biber (version 2.10; using Texmaker) when this error occurred:
INFO - This is Biber 2.10 INFO - Logfile is 'provabib.blg' ERROR - provabib.bcf is malformed, last biblatex run probably failed. Deleted provabib.bbl INFO - ERRORS: 1
After a few attempts, I found out that the problem was the package constants, which I was using to automatically number the constants I define; removing it, everything works fine. I am definitely not an expert and I have no idea how to fix this, but I guess it's because the package constants is a bit outdated. Do you now any way to avoid this issue? Similar packages doing the same job are welcome too.
Here's a minimal working example:
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[style=alphabetic,backend=biber]{biblatex}
%%\usepackage{constants} %%<--- this one produces the error
%% \newconstantfamily{K}{symbol=K} %% An example
\begin{filecontents*}{\jobname.bib}
@book{rudin,
author = "Rudin, Walter",
title = "Real and Complex Analysis",
year = "1966",
publisher = "McGraw-Hill"
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
This is a citation: \cite{rudin}. \\
%% This, instead, an example of use of the ``constants'' package:
%% \[\Cl[K]{nameconstant}=e^\pi;\]
%% now here's a new constant of the same family: $\C[K]$, while here I am referring to the first constant defined: $\Cr{nameconstant}$.
\printbibliography
\end{document}

constantspackage the end of the bcf file is somehow missing. However, except for producing the error, theconstantspackage is not actually used in your MWE. What exactly are you using it for? – gusbrs Mar 11 '18 at 21:51glossariespackage? Anyway, I don't know what inconstantscauses it to tamper with the bcf file. Let's see what others have to say. I'm not really acquainted withconstantseither, so perhaps someone else has also other alternative suggestions to make. – gusbrs Mar 11 '18 at 22:01glossariespackage and it doesn't seem what I'm looking for; thank you, anyway. – Mattia Vedovato Mar 11 '18 at 22:15\@@endat the end of the document and so hinders biblatex to write its file. – Ulrike Fischer Mar 11 '18 at 22:24constantsandbiblatex? – Mattia Vedovato Mar 11 '18 at 22:30glossaries. It is quite a powerful package and does more than it looks at first glance. – gusbrs Mar 11 '18 at 22:52constants.stydestroys the\AfterEndDocumenthook completely and disables all\AtEndDocumenthooks that are issues afterconstants.styis loaded. So quite some packages brake withconstants, but many of those breakages can be fixed by loadingconstantslater. Packages that use\AfterEndDocument, however, are broken beyond repair at leastbiblatexandpythontexare affected by this. – moewe Mar 12 '18 at 08:12