Comments (10)
It is a warning not an error.
What is the output of sessionInfo()
?
How are you running R, e.g., under RStudio?
from biocparallel.
@mtmorgan You are right, it is a warning not an error.
I got the same message in both under RStudio and R-terminal.
Here is the sessionInfo()
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 18.1
Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
[7] LC_PAPER=en_CA.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocParallel_1.8.2
loaded via a namespace (and not attached):
[1] compiler_3.4.0 parallel_3.4.0
from biocparallel.
In a new R session does BiocParallel::MulticoreParam()
generate the same error?
from biocparallel.
Yes it gives same error
> BiocParallel::MulticoreParam()
Error in validObject(.Object) :
invalid class “MulticoreParam” object: 1: ‘cluster’, ‘.clusterargs’, ‘.uid’, ‘RNGseed’ must be length 1
invalid class “MulticoreParam” object: 2: ‘.clusterargs’, ‘.controlled’, ‘logdir’, ‘resultdir’ must be length 1
In addition: Warning message:
In is.na(x[[i]]) :
is.na() applied to non-(list or vector) of type 'environment'
from biocparallel.
I 'know' what the problem is but don't know how to fix it. BiocParallel is trying to register(MulticoreParam())
when the package starts, but for some reason this is failing. It only happens under some configurations; I don't know what the configuration is, other than that this 'works for me'.
A workaround while I try to understand this is
library(BiocParallel) ## ignore warning
register(MulticoreParam())
from biocparallel.
Hello,
I have the same issue, and your suggested workaround register(MulticoreParam())
also fails for me with the same error as when running BiocParallel::MulticoreParam()
[mentioned by RNA-Ninja].
I modified the code in the setValidity
function to print out the object fields to see what the issue is, and here was the output:
> print(sapply(fields, function(i) object[[i]])
$cluster
list()
attr(,"class")
[1] "NULLcluster" "cluster"
$.clusterargs
$.clusterargs$spec
[1] 62
$.clusterargs$type
[1] "FORK"
$.controlled
[1] TRUE
$.uid
character(0)
$RNGseed
NULL
$logdir
[1] NA
$resultdir
[1] NA
$finalizer_env
<environment: 0x4c943b8>
Let me know if you need more specific information about my configuration.
from biocparallel.
I am experiencing the same issue with the following configuration:
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS
Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0
locale:
[1] LC_CTYPE=en_IE.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_IE.UTF-8 LC_COLLATE=en_IE.UTF-8
[5] LC_MONETARY=en_IE.UTF-8 LC_MESSAGES=en_IE.UTF-8
[7] LC_PAPER=en_IE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_IE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocParallel_1.8.2 BiocInstaller_1.24.0
loaded via a namespace (and not attached):
[1] compiler_3.4.0 parallel_3.4.0 tools_3.4.0
The fixes proposed above are not helping for me either.
from biocparallel.
I could replicate the issue on another machine running ubuntu server 16.04.2 LTS:
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS
Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocInstaller_1.24.0
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0
from biocparallel.
Please try BiocInstaller::biocLite("Bioconductor/BiocParallel", ref="release-3.5")
or wait (approximately 36 hours) until version 1.10.1 is available via biocLite("BiocParallel")
.
from biocparallel.
Thank you, that indeed did solve the issue (using BiocInstaller::biocLite("Bioconductor/BiocParallel", ref="release-3.5")
). Afterwards, I had issues with other Bioconductor packages which led me to update my BiocInstaller (required some troubleshooting from http://bioconductor.org/install/) allowing me to run biocLite("BiocParallel")
.
from biocparallel.
Related Issues (20)
- Error in serialize(data, node$con, xdr = FALSE) : ignoring SIGPIPE signal HOT 5
- Performance (speed) degradation in MulticoreParam with default force.G = TRUE HOT 3
- Nested parallellization question HOT 6
- stop.on.error = FALSE for DoParam doesn't work as expected HOT 2
- Troubles with bplapply within function (using SnowParam on Windows) HOT 6
- MulticoreParam bplapply unable to restart upon interrupt HOT 1
- Increase depth of traceback beyond `tryCatch()` for bp* functions - possible enhancement HOT 1
- The running time isn't reduced when using bplapply()? HOT 3
- BiocParallel errors HOT 4
- Handle worker abort better HOT 1
- move Rmpi to Enhances: HOT 1
- "foreach" %in% loadedNamespaces() instead of "package:foreach" %in% search()? HOT 1
- BiocParallel errors:could not find function ".OLD_read_block" HOT 11
- I meet a error when I use BiocParallel HOT 6
- BiocParallel : long vectors are not supported in .C() HOT 5
- BiocParallel for parallelization in BEER: Error and GPU Compatibility HOT 8
- BatchtoolsParam fails to propagate errors in bpiterate HOT 2
- Extremely minor: typo in docs? man/MulticoreParam-class.Rd HOT 1
- BiocParallel socketConnection error HOT 5
- strategy of tasks in MulticoreParam HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biocparallel.