-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault: invalid permissions #30
Comments
I don't know why this happens with |
That really is strange. I can replicate the error by trying to write a vector of length 3E4*3E4 to the disk using writeBin. We need to look into this more--but @dkobak is right, you probably don't want to be applying t-SNE to a matrix of such high dimension. You should consider doing PCA (with randomized PCA or Lanczos methods) and then go ahead and run t-SNE. The ultimate solution here is to avoid writing to disk entirely (e.g. with Rcpp) and passing the matrix and other variables directly to the C++ code. But still, I would not have expected writebin() to give a segfault. |
If it helps diagnose, I've encountered the same problem in a package that I'm writing. |
After installing the current version, using R 3.5.0 and Fedora 28, the example code in examples/test.R runs fine. However, when attempting to analyze a larger dataset (a matrix with dimensions 29759 x 33650), the following error results:
*** caught segfault ***
address 0x7fd57089d000, cause 'invalid permissions'
Traceback:
1: writeBin(tX, f)
2: fftRtsne(X)
An irrecoverable exception occurred. R is aborting now ...
Any idea what could be the problem? RAM usage is at the point of failure about 59%, so it does not seem to be an out of memory error. Running R as root did not solve the problem either.
The text was updated successfully, but these errors were encountered: