MarioniLab / scran

Clone of the Bioconductor repository for the scran package.
https://bioconductor.org/packages/devel/bioc/html/scran.html
40 stars 22 forks source link

error for `quickCluster`: address 0x4e2e, cause 'memory not mapped' #123

Closed Yunuuuu closed 1 day ago

Yunuuuu commented 1 day ago

It seems something has broken the quickCluster(), I cannot determine where is the problem

library(scRNAseq)
sce_raw <- ZeiselBrainData()
scran::quickCluster(
    sce_raw,
    d = 50L,
    graph.fun = "leiden",
    BSPARAM = BiocSingular::IrlbaParam(),
    k = 20L, type = "jaccard",
    cluster.args = list(
        objective_function = "modularity",
        resolution_parameter = 0.8,
        n_iterations = -1L # undocumented characteristics
    )
)

 *** caught segfault ***
address 0x4e2e, cause 'memory not mapped'
[R]> sessionInfo()
R version 4.4.0 (2024-04-24)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04 LTS

Matrix products: default
BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/libmkl_rt.so;  LAPACK version 3.8.0

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

time zone: Asia/Shanghai
tzcode source: system (glibc)

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

other attached packages:
 [1] scran_1.34.0                scuttle_1.14.0             
 [3] scRNAseq_2.19.1             SingleCellExperiment_1.26.0
 [5] SummarizedExperiment_1.34.0 Biobase_2.64.0             
 [7] GenomicRanges_1.56.1        GenomeInfoDb_1.40.1        
 [9] IRanges_2.38.0              S4Vectors_0.42.0           
[11] BiocGenerics_0.50.0         MatrixGenerics_1.16.0      
[13] matrixStats_1.3.0          

loaded via a namespace (and not attached):
  [1] DBI_1.2.3                 bitops_1.0-7             
  [3] httr2_1.0.1               rlang_1.1.4              
  [5] magrittr_2.0.3            gypsum_1.2.0             
  [7] compiler_4.4.0            RSQLite_2.3.7            
  [9] GenomicFeatures_1.56.0    DelayedMatrixStats_1.26.0
 [11] png_0.1-8                 vctrs_0.6.5              
 [13] ProtGenerics_1.36.0       pkgconfig_2.0.3          
 [15] crayon_1.5.3              fastmap_1.2.0            
 [17] dbplyr_2.5.0              XVector_0.44.0           
 [19] utf8_1.2.4                Rsamtools_2.20.0         
 [21] UCSC.utils_1.0.0          bit_4.0.5                
 [23] bluster_1.14.0            zlibbioc_1.50.0          
 [25] cachem_1.1.0              beachmat_2.22.0          
 [27] jsonlite_1.8.8            blob_1.2.4               
 [29] rhdf5filters_1.16.0       DelayedArray_0.30.1      
 [31] Rhdf5lib_1.26.0           BiocParallel_1.38.0      
 [33] cluster_2.1.6             irlba_2.3.5.1            
 [35] parallel_4.4.0            R6_2.5.1                 
 [37] limma_3.60.3              rtracklayer_1.64.0       
 [39] Rcpp_1.0.12               igraph_2.0.3             
 [41] Matrix_1.7-0              tidyselect_1.2.1         
 [43] abind_1.4-5               yaml_2.3.8               
 [45] codetools_0.2-20          curl_5.2.1               
 [47] lattice_0.22-6            alabaster.sce_1.6.0      
 [49] tibble_3.2.1              KEGGREST_1.44.0          
 [51] BiocFileCache_2.12.0      alabaster.schemas_1.4.0  
 [53] ExperimentHub_2.12.0      Biostrings_2.72.1        
 [55] pillar_1.9.0              BiocManager_1.30.23      
 [57] filelock_1.0.3            generics_0.1.3           
 [59] RCurl_1.98-1.14           BiocVersion_3.19.1       
 [61] ensembldb_2.28.0          sparseMatrixStats_1.16.0 
 [63] alabaster.base_1.4.1      glue_1.7.0               
 [65] alabaster.ranges_1.4.1    metapod_1.12.0           
 [67] alabaster.matrix_1.4.1    lazyeval_0.2.2           
 [69] tools_4.4.0               AnnotationHub_3.12.0     
 [71] BiocIO_1.14.0             BiocNeighbors_2.0.0      
 [73] ScaledMatrix_1.12.0       locfit_1.5-9.10          
 [75] GenomicAlignments_1.40.0  XML_3.99-0.16.1          
 [77] rhdf5_2.48.0              grid_4.4.0               
 [79] edgeR_4.2.0               AnnotationDbi_1.66.0     
 [81] GenomeInfoDbData_1.2.12   BiocSingular_1.20.0      
 [83] HDF5Array_1.32.0          restfulr_0.0.15          
 [85] cli_3.6.3                 rsvd_1.0.5               
 [87] rappdirs_0.3.3            fansi_1.0.6              
 [89] S4Arrays_1.4.1            dplyr_1.1.4              
 [91] AnnotationFilter_1.28.0   alabaster.se_1.4.1       
 [93] digest_0.6.36             progressr_0.14.0         
 [95] dqrng_0.4.1               SparseArray_1.4.8        
 [97] rjson_0.2.21              memoise_2.0.1            
 [99] lifecycle_1.0.4           httr_1.4.7               
[101] statmod_1.5.0             bit64_4.0.5          
Yunuuuu commented 1 day ago

fixed when upgrade BiocSingular to 1.22.0