Hi,

Consider the following MWE, which uses the tizk module:

\usemodule[tikz]
\usetikzlibrary[fadings]
\starttext
\starttikzpicture
  \fill [path fading=west,red] (-1,-1) rectangle (1,1);
\stoptikzpicture
\stoptext

When compiling with ConTeXt LMTX version 2021.06.18, the output PDF contains "\pdfbackendcurrentresources" in the middle of a resource dictionary. Apparently, this command does not get expanded but is written literally to the file, which makes the PDF corrupt.

This command is used in the tikz module file pgfutil-context.def as:
  \def\pgf@sys@pdf@possible@resources{\pdfbackendcurrentresources}
As mentioned in a comment in back-pdf.mkxl, the command is implemented in lua in lpdf-ini.lmt.

The command is also used in mlib-pps.mkxl and is documented in ConTeXts interface. Can somebody tell why it is not expanded?

Any help is appreciated. Cheers,
Christoph