Minted “underfull \hbox (badness 10000) in paragraph” when using bgcolor [closed]

When I use minted to highlight BASH code like this

\documentclass[a4paper, 11pt, twoside]{article}
\usepackage{xltxtra}
\usepackage{xunicode}
\usepackage{polyglossia}
\usepackage[svgnames]{xcolor}

\usepackage{minted}
\usemintedstyle{vim}
\newminted{bash}{fontfamily=tt, gobble=2, linenos}
\newmint{bash}{}

\begin{document}

AAAA

\begin{bashcode}
BBBB
CCCC
\end{bashcode}

DDDD

\end{document}


it works perfectly. If I add background color using

\newminted{bash}{bgcolor=Ivory, fontfamily=tt, gobble=2, linenos}


it looks same, but for every code block I get an error like

Underfull \hbox (badness 10000) in paragraph


Nothing else changes, so that I don't udnerstand why using bgcolor option causes the badness to appear.

closed as off-topic by egreg, user13907, Svend Tveskæg, Andrew Swann, WernerDec 18 '15 at 11:23

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• I'm voting to close this question as off-topic because it is just a bug report without any real minimal example – egreg Dec 18 '15 at 9:31
• @egreg I think it would be better to ask the OP for a minimal example, and then provide an answer saying "This is a bug. You should file a bug report." Closing the question means that others who suffer from the same bug won't know what to do. – Seamus Dec 18 '15 at 9:54
• @egreg: I added minimal working backbone. But otherwise I agree, it finally turned to be just bugreport (reported on appropriate place, so I hope it will be fixed soon, at least for openSUSE, I didn't check another Linux distributions). I'm going to close it myself as soon as the forum system allows me to do that. But still someone may face similar problem. – Tilia Dec 18 '15 at 9:56
• @Tilia I get no underfull box message from your example. You just have an outdated version of minted on your system, because you're using the TeX Live provided by OpenSUSE, that lags far behind. If it was a bug, it has long be solved: just upgrade your TeX Live with the “vanilla” TUG version, there are instructions on the site about how to do it. As such it's an OpenSUSE bug, so it's off topic for this site. – egreg Dec 18 '15 at 9:59
• I'm voting to close this question as off-topic because it is caused by an out-of-date package/program. – Andrew Swann Dec 18 '15 at 10:57

no problem with an up-to-date TeXLive 2015

\documentclass[a4paper, 11pt, twoside]{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage[svgnames]{xcolor}

\usepackage{minted}
\usemintedstyle{vim}
\newminted{bash}{fontfamily=tt, gobble=2, linenos}
\newmint{bash}{}

\begin{document}

AAAA

\begin{bashcode}
BBBB
CCCC
\end{bashcode}

DDDD

\end{document}


This is apparently bug in older version of minted available in openSUSE repository (I have requested upgrade of the package). After upgrade to version 2.1 directly from CTAN (respectively GitHub) the badness disappears (without any change in code).