Bug Tracker RSS feed

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 161🔗
Date: 2020-05-26 18:56:25
Status Closed (Migrated)
Category glossaries-extra
Version 1.45
Summary Possible incompatibility with totcount (\newtotcounter) or other macros/packages

Sign in to subscribe to notifications about this report.

Description

A more detailed description is available at [TeX.SX Link].

In current MiKTeX distribution (both release and pre-release), compiling the attached MWE leads to java.lang.StackOverflowError that, according to bib2gls’s manual, may be caused by an infinite loop. The problem indicates possible incompatibility between bib2gls 2.3 2020-03-23 and \newtotcounter{} of totcount 1.2 or some other macros/packages that it invokes.

It seems to be related to the second line of the AUX file:

	\expandafter\ifx\csname c@tc@totc\endcsname\relax\newcounter{tc@totc}\fi\setcounter{tc@totc}{0}

as changing it to:

	\newcounter{tc@totc}\setcounter{tc@totc}{0}

reverts normal operation of bib2gls.

Also, reordering commands in preamble does not prevent these errors from occurring.

MWE

Download (343B)

\documentclass{article}

\begin{filecontents*}{entries.bib}
@entry{bird,
  name={bird},
  description = {feathered animal}
}
\end{filecontents*}

\usepackage[record]{glossaries-extra}
\GlsXtrLoadResources[src=entries]

\usepackage{totcount}
\newtotcounter{tc}

\begin{document}
\gls{bird}
\printunsrtglossaries
\end{document}

Evaluation

The bug is in the TeX parser library not in glossaries-extra.sty. This issue has been migrated.

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=161