Bug 473254 - Graphics version mismatch
Summary: Graphics version mismatch
Status: REPORTED
Alias: None
Product: rkward
Classification: Applications
Component: R Console (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-10 18:18 UTC by Francisco Cribari
Modified: 2023-08-20 10:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Cribari 2023-08-10 18:18:35 UTC
SUMMARY
***
I run rkward version 0.7.5-2 and R version 4.3.1 on Arch Linux. I am unable to produce plots (with rkward's default settings). 
***


STEPS TO REPRODUCE
1.  Start rkward
2.  Execute the following R code: a <- rnorm(1000); hist(a) 

OBSERVED RESULT

The plot (histogram) is not produced. Instead, the following error is issued: "R Graphics Engine version has changed (from 15 to 16). This change requires a recompilation."

EXPECTED RESULT

A plot (histogram) should be produced. 

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch Linux  kernel 6.4.9-arch1-1
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.5.10

ADDITIONAL INFORMATION
---Problem description---
Please fill in the missing bits *in English*.

Please give a brief summary on the problem:
I am unable to produce plots (with rkward's default settings). 

What - in detail - did you do directly before you encountered this problem?
Nothing

When you try to repeat the above, does the problem occur again (no, sometimes, always)?
Always

If applicable: When doing the same thing in an R session outside of RKWard, do you see the same problem?
No

Do you have any further information that might help us to track this problem down? In particular, if applicable, can you provide sample data and sample R code to reproduce this problem?
a <- rnorm(1000); hist(a)

RKWard is available in many different packagings, and sometimes problems are specific to one method of installation. How did you install RKWard (which file(s) did you download)?
From the Arch Linux repositories. 


---Session Info---
-- Frontend --
RKWard version: 0.7.5
KDE Frameworks version (runtime): 5.108.0
KDE Frameworks version (compile time): 5.100.0
Qt version (runtime): 5.15.10
Qt version (compile time): 5.15.7
Using QWebEngine for HTML rendering
Local config directory: /home/cribari/.config
RKWard storage directory: /home/cribari/.rkward/
Backend version (as known to the frontend): 4.3.1

Debug message file (this may contain relevant diagnostic output in case of trouble):
/tmp/rkward.frontend

-- Backend --
Debug message file (this may contain relevant diagnostic output in case of trouble):
/tmp/rkward.rbackend

R version (compile time): 4.2.2  (2022-10-31 r83211)
R runtime session info:
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Arch Linux

Matrix products: default
BLAS/LAPACK: /usr/lib/libopenblas.so.0.3;  LAPACK version 3.11.0

locale:
 [1] LC_CTYPE=en_US.UTF-8          LC_NUMERIC=C                 
 [3] LC_TIME=en_US.UTF-8           LC_COLLATE=C                 
 [5] LC_MONETARY=en_US.UTF-8       LC_MESSAGES=en_US.UTF-8      
 [7] LC_PAPER=en_US.UTF-8          LC_NAME=en_US.UTF-8          
 [9] LC_ADDRESS=en_US.UTF-8        LC_TELEPHONE=en_US.UTF-8     
[11] LC_MEASUREMENT=en_US.UTF-8    LC_IDENTIFICATION=en_US.UTF-8

time zone: America/Recife
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rkward_0.7.5

loaded via a namespace (and not attached):
[1] compiler_4.3.1 tools_4.3.1    parallel_4.3.1
Comment 1 m.eik michalke 2023-08-11 07:51:35 UTC
thanks for the report.

from the information you provided it looks like your installation of RKWard was built with R 4.2.2 and you later replaced this with R 4.3.1, which also upgraded the R graphics engine from version 15 (compile time) to 16 (runtime). your build of RKWard can't fully handle that newer version, but needs to be recompiled in order to also support  R 4.3.
Comment 2 Francisco Cribari 2023-08-19 17:57:34 UTC
(In reply to m.eik michalke from comment #1)
> thanks for the report.
> 
> from the information you provided it looks like your installation of RKWard
> was built with R 4.2.2 and you later replaced this with R 4.3.1, which also
> upgraded the R graphics engine from version 15 (compile time) to 16
> (runtime). your build of RKWard can't fully handle that newer version, but
> needs to be recompiled in order to also support  R 4.3.

I do realize that the Arch package needs to be rebuilt. I marked it as out-of-date. Nonetheless, the package maintainer told me to report the issue here. (His reply: "Please stop flagging this package out of date. If you want to report an issue, use the bug tracker.") That's why I filed this bug report.
Comment 3 m.eik michalke 2023-08-20 09:59:54 UTC
the package may technically not be out-of-date, it is just not compatible with the R version installed. that is if it still works with the R version shipped with arch and you upgraded R from a third party repo. how did you upgrade R?
Comment 4 Francisco Cribari 2023-08-20 10:16:18 UTC
(In reply to m.eik michalke from comment #3)
> the package may technically not be out-of-date, it is just not compatible
> with the R version installed. that is if it still works with the R version
> shipped with arch and you upgraded R from a third party repo. how did you
> upgrade R?

I upgraded R from the Arch repository. The two Arch packages (rkward and r) have the same maintainer / packager. 

~  pacman -Qi r                                                   
Name            : r
Version         : 4.3.1-2
Description     : Language and environment for statistical computing and
                  graphics
Architecture    : x86_64
URL             : https://www.r-project.org/
Licenses        : GPL
Groups          : None
Provides        : r-kernsmooth=2.23.21  r-mass=7.3.60  r-matrix=1.5.4.1
                  r-base=4.3.1  r-boot=1.3.28.1  r-class=7.3.22
                  r-cluster=2.1.4  r-codetools=0.2.19  r-compiler=4.3.1
                  r-datasets=4.3.1  r-foreign=0.8.84  r-grdevices=4.3.1
                  r-graphics=4.3.1  r-grid=4.3.1  r-lattice=0.21.8
                  r-methods=4.3.1  r-mgcv=1.8.42  r-nlme=3.1.162  r-nnet=7.3.19
                  r-parallel=4.3.1  r-rpart=4.1.19  r-spatial=7.3.16
                  r-splines=4.3.1  r-stats=4.3.1  r-stats4=4.3.1
                  r-survival=3.5.5  r-tcltk=4.3.1  r-tools=4.3.1
                  r-translations=4.3.1  r-utils=4.3.1
Depends On      : lapack  libtiff  pcre2  perl  libxmu  pango  zip  unzip  curl
                  icu  which
Optional Deps   : tk: tcl/tk interface [installed]
                  texlive-bin: latex sty files [installed]
                  gcc-fortran: needed to compile some CRAN packages [installed]
                  blas-openblas: faster linear algebra [installed]
Required By     : python-rchitect  radian  rkward  rstudio-desktop-bin
Optional For    : graphviz
Conflicts With  : None
Replaces        : None
Installed Size  : 84.02 MiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Sun 18 Jun 2023 06:19:57 AM -03
Install Date    : Wed 28 Jun 2023 10:10:38 PM -03
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

~  pacman -Qi rkward                                              
Name            : rkward
Version         : 0.7.5-2
Description     : An easy to use and easily extensible IDE/GUI for R
Architecture    : x86_64
URL             : https://rkward.kde.org/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : qt5-webengine  ktexteditor  r
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 15.68 MiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Tue 06 Dec 2022 02:23:59 PM -03
Install Date    : Tue 06 Dec 2022 06:19:24 PM -03
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature