Closed ZhengnanCheng closed 6 months ago
Hi,
When plotting ion images using gaussian smooth on Windows (10/11) system, the R will always crash, while it never happens on Linux system.
Here is my code:
library(Cardinal) data(pig206, package="CardinalWorkflows") pig206 <- as(pig206, "MSImagingExperiment") image(pig206, mz=885.5, plusminus=0.25, smooth.image="gaussian")
Usually, when I run the image() function with smooth.image = "gaussian" for ~5 times, the R terminal will crash. It will also cause a crash when using the function smooth.image.gaussian() in DIP.R for several times.
image()
smooth.image = "gaussian"
smooth.image.gaussian()
DIP.R
My session information:
R version 4.3.0 (2023-04-21 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045) Matrix products: default locale: [1] LC_COLLATE=Chinese (Simplified)_China.utf8 [2] LC_CTYPE=Chinese (Simplified)_China.utf8 [3] LC_MONETARY=Chinese (Simplified)_China.utf8 [4] LC_NUMERIC=C [5] LC_TIME=Chinese (Simplified)_China.utf8 time zone: Asia/Shanghai tzcode source: internal attached base packages: [1] stats4 stats graphics grDevices utils datasets methods [8] base other attached packages: [1] Cardinal_3.2.1 S4Vectors_0.38.1 EBImage_4.42.0 [4] BiocParallel_1.34.1 BiocGenerics_0.46.0 ProtGenerics_1.32.0 loaded via a namespace (and not attached): [1] nlme_3.1-162 cli_3.6.1 rlang_1.1.1 DBI_1.1.3 [5] mclust_6.0.0 tiff_0.1-11 png_0.1-8 jsonlite_1.8.4 [9] RCurl_1.98-1.12 htmltools_0.5.5 sp_1.6-0 locfit_1.5-9.7 [13] Biobase_2.60.0 grid_4.3.0 abind_1.4-5 MASS_7.3-60 [17] bitops_1.0-7 fastmap_1.1.1 compiler_4.3.0 codetools_0.2-19 [21] irlba_2.3.5.1 htmlwidgets_1.6.2 fftwtools_0.9-11 lattice_0.21-8 [25] digest_0.6.31 signal_0.7-7 viridisLite_0.4.2 matter_2.2.0 [29] parallel_4.3.0 magrittr_2.0.3 Matrix_1.5-4 jpeg_0.1-10 [33] biglm_0.9-2.1
Has anyone encountered similar situations? Is this a bug?
Zhengnan
Hi,
When plotting ion images using gaussian smooth on Windows (10/11) system, the R will always crash, while it never happens on Linux system.
Here is my code:
Usually, when I run the
image()
function withsmooth.image = "gaussian"
for ~5 times, the R terminal will crash. It will also cause a crash when using the functionsmooth.image.gaussian()
inDIP.R
for several times.My session information:
Has anyone encountered similar situations? Is this a bug?
Zhengnan