Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#996431: r-cran-cairo: Unable to open device: Graphics API version mismatch

148 views
Skip to first unread message

Rob Moss

unread,
Oct 13, 2021, 8:10:03 PM10/13/21
to
Package: r-cran-cairo
Version: 1.5-12.2-1
Severity: important
X-Debbugs-Cc: robm...@gmail.com

Dear Maintainer,

I recently ran an R plotting script for the first time in about 6 months.

This script uses the r-cran-cairo package to save the plot as a PDF file, and I expected it to produce a PDF file as per usual.

But when the script called the CairoPDF() function, the script terminated with the following error message:

Graphics API version mismatch
Calls: <Anonymous> -> CairoPDF -> Cairo
Execution halted

I managed to run the script successfully by building and installing the package from within R using the following command:

install.packages('Cairo')

So I suspect the r-cran-cairo package needs to be recompiled against the current libcairo2 package.

All the best,
Rob


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_DIE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages r-cran-cairo depends on:
ii libc6 2.32-4
ii libcairo2 1.16.0-5
ii libfreetype6 2.10.4+dfsg-1
ii libjpeg62-turbo 1:2.0.6-4
ii libx11-6 2:1.7.2-2+b1
ii r-base-core [r-api-4.0] 4.1.1-2

r-cran-cairo recommends no packages.

Versions of packages r-cran-cairo suggests:
ii r-cran-png 0.1-7-4

-- no debconf information

Nilesh Patra

unread,
Oct 19, 2021, 3:50:08 AM10/19/21
to
Hi Rob,

On Thu, 14 Oct 2021 11:07:05 +1100 Rob Moss <robm...@gmail.com> wrote> But when the script called the CairoPDF() function, the script terminated with the following error message:
>
> [...]
>
> I managed to run the script successfully by building and installing the package from within R using the following command:
> So I suspect the r-cran-cairo package needs to be recompiled against the current libcairo2 package.

Actually, the graphics API change is due to R-base package v4.1.1-2 (as seen in your system info as well), they changed the graphics API, and the package needs to rebuild against new R.
I just uploaded a new changelog revision (1.5-12.2-2) for cairo so it rebuild with the right set of deps.

It will be in testing in the next couple of days, it'd be great if you could test the new one, then.

Thanks for reporting,
Nilesh

> -- System Information:
> Debian Release: bookworm/sid
> APT prefers testing
> APT policy: (900, 'testing')
> ii r-base-core [r-api-4.0] 4.1.1-2

OpenPGP_signature

Rob Moss

unread,
Oct 21, 2021, 2:30:03 AM10/21/21
to
Hi Nilesh,

The new version works perfectly. Thank you very much!

All the best,
Rob
0 new messages