[Bug 2011617] Re: Graphics API version mismatch

DeathByDenim 2011617 at bugs.launchpad.net
Fri Mar 17 14:01:21 GMT 2023


Minor update. I tried to do a build from source for RKWard without
making any modifications to the source. Just to rebuild it.

$ apt source rkward
$ sudo apt build-dep rkward
$ cd rkward-0.7.2
$ dpkg-buildpackage -rfakeroot -b -uc -us
$ cd ..
$ sudo dpkg -i rkward_0.7.2-1_amd64.deb
$ sudo dpkg -i rkward-data_0.7.2-1_all.deb

Now when I try:
> library('tidyverse')
> ggplot(data=mpg)+  geom_point(mapping = aes(x = displ, y = hwy))

I get an error saying:
Connection closed unexpectedly. Last error was: Unknown error
The R backend will be shut down immediately.

In the R Console in RKWard, it shows:
Error: C stack usage  46079528768812 is too close to the limit
Error: 

Weird!

-- 
You received this bug notification because you are a member of RKWard
Team, which is subscribed to rkward in Ubuntu.
https://bugs.launchpad.net/bugs/2011617

Title:
  Graphics API version mismatch

Status in rkward package in Ubuntu:
  New

Bug description:
  Trying to plot in RKWard results in:
  Error in (function (width = getOption("rk.screendevice.width"), height = getOption("rk.screendevice.height"),  : 
    Graphics API version mismatch
  Error in RK() : Graphics API version mismatch
  Error in RK() : Graphics API version mismatch

  Outside of RKWard and using plain R this error does not appear and the
  plot is shown.

  I have used R packages from the stock Ubuntu repositories only. I have
  not installed anything with install.packages().

  To reproduce:

  Install Tidyverse:
  sudo apt install r-cran-tidyverse

  Run the following R code in the R Console in RKWard:
  library('tidyverse')
  ggplot(data=mpg)+  geom_point(mapping = aes(x = displ, y = hwy))

  The same code runs fine from just running R from the terminal.

  From what I can gather, the solution is to rebuild against the current
  version of R. Although it's not entirely clear what needs to be
  rebuild.

  System info:
  $ lsb_release -rd
  Description:    Ubuntu 22.04.2 LTS
  Release:        22.04
  $ apt-cache policy rkward
  rkward:
    Installed: 0.7.2-1
    Candidate: 0.7.2-1
    Version table:
   *** 0.7.2-1 500
          500 http://ca.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
          100 /var/lib/dpkg/status
  $ apt-cache policy r-base
  r-base:
    Installed: (none)
    Candidate: 4.1.2-1ubuntu2
    Version table:
       4.1.2-1ubuntu2 500
          500 http://ca.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
          500 http://ca.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
  $ apt-cache policy r-cran-tidyverse
  r-cran-tidyverse:
    Installed: 1.3.1-1
    Candidate: 1.3.1-1
    Version table:
   *** 1.3.1-1 500
          500 http://ca.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
          500 http://ca.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rkward/+bug/2011617/+subscriptions



More information about the rkward-tracker mailing list