Bug 497126 - can't create image files from RKWard
Summary: can't create image files from RKWard
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: User Interface (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-06 12:07 UTC by Jan
Modified: 2024-12-10 13:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2024-12-06 12:07:19 UTC
Using RKWard 0.8.0 (AppImage) at Lubuntu 24.04.1

SUMMARY
Can't create image files from RKWard.

STEPS TO REPRODUCE
1. Start RKWard
2. png(filename=file.path(normalizePath("~"), "Downloads/test.png"), width=1600L, height=1600L, units="px", pointsize=12, bg="white", res=300L)
3. run

OBSERVED RESULT
Warning in grSoftVersion() :
  unable to load shared object '/usr/lib/R/modules//R_X11.so':
  /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_pointer_bit_unlock_and_set
Warning in cairoVersion() :
  unable to load shared object '/usr/lib/R/library/grDevices/libs//cairo.so':
  /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_pointer_bit_unlock_and_set
Warning in png(filename = file.path(normalizePath("~"), "Downloads/test.png"),  :
  failed to load cairo DLL

EXPECTED RESULT
silent execution of command

ADDITIONAL INFORMATION
- using R-version from cran
- command works from R terminal without error
- R_X11.so and cairo.so are where you expect them to be

sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.1 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0

locale:
 [1] LC_CTYPE=de_DE.UTF-8          LC_NUMERIC=C                  LC_TIME=de_DE.UTF-8           LC_COLLATE=de_DE.UTF-8        LC_MONETARY=de_DE.UTF-8
 [6] LC_MESSAGES=de_DE.UTF-8       LC_PAPER=de_DE.UTF-8          LC_NAME=de_DE.UTF-8           LC_ADDRESS=de_DE.UTF-8        LC_TELEPHONE=de_DE.UTF-8
[11] LC_MEASUREMENT=de_DE.UTF-8    LC_IDENTIFICATION=de_DE.UTF-8

time zone: Europe/Berlin
tzcode source: system (glibc)

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

other attached packages:
[1] rkward_0.8.0

loaded via a namespace (and not attached):
[1] compiler_4.4.2 tools_4.4.2    grid_4.4.2     lattice_0.22-5
Comment 1 Jan 2024-12-09 10:01:54 UTC
Version of libglib2.0: 2.80.0-6ubuntu3.2
Comment 2 Jan 2024-12-09 10:06:02 UTC
g_pointer_bit_unlock_and_set exists in GLib since version 2.80, see https://docs.gtk.org/glib/func.pointer_bit_unlock_and_set.html
Comment 3 Jan 2024-12-09 10:41:57 UTC
libglib2.0 in temporary Appdir (here /tmp/rkward_only.fretyN/_rkward_only_dlpath/) is libgobject-2.0.so.0.7900.0

seems to be version 2.79
Comment 4 Jan 2024-12-10 13:33:00 UTC
Tried in development version rkward-master-1453-linux-gcc-x86_64.AppImage. It's fixed there.