kaneplusplus / bigmemory

126 stars 24 forks source link

big.matrix fails on M1pro Mac #112

Open dajreiss opened 2 years ago

dajreiss commented 2 years ago

Trying to use bigkmeans on my M1pro Macbook Pro with 32GB of RAM on MacOS Monterey.

Calling big.matrix(x) for a matrix of any size does not return (freezes), unless I set shared=FALSE.

Pressing Ctrl-C aborts the call with the following error:

libc++abi: terminating with uncaught exception of type boost::interprocess::interprocess_exception: Interrupted system call
Abort

I can continue using shared=FALSE however operations such as bigkmeans contain many big.matrix calls with the default shared=TRUE and so I get the same result when calling bigkmeans.

Possibly this is an issue for bigkmeans to allow a user to send shared=FALSE to all big.matrix calls within that function.

Below are my R, library and system information:

R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20 (64-bit)

bigmemory version: 4.6.1
biganalytics version: 1.1.21

> Sys.info()
                                                                                                 sysname
                                                                                                "Darwin"
                                                                                                 release
                                                                                                "21.3.0"
                                                                                                 version
"Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000"
                                                                                                 machine
                                                                                                 "arm64"