Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSegfault adding #13
Segfault adding #13
Comments
|
Let me try again with |
|
There is nothing reproducible in your bug report so my ability to help you from here is limited. Did you use 0.0.7 from CRAN as your base, or the current master from GitHub (which is marginally ahead and which I called 0.0.7.1) ? FWIW it is worth I can run |
|
i pushed some pretty extensive changes to annoy yesterday but don't think it's a part of rcppannoy yet right? just wanted to double check |
|
Hi @erikbern and thanks for being so proactive. RcppAnnoy does not automagically copy code from Annoy; it is pretty much a manual copy (along with copious regression checks). Now, I can't speak for @mikepb, but I dont't think he copied code either. At this point we need more details (as eg provided by R's |
|
Sorry, this was my bad! I had sessionInfo()
f <- 1049
knn <- new(AnnoyEuclidean, f)
sv <- rnorm(f)
knn$addItem(NA, sv)
Should the API check for this error condition? |
|
Looks like the segfault likely comes from annoy passing the https://github.com/eddelbuettel/rcppannoy/blob/master/inst/include/annoylib.h#L422 |
|
Thanks for looking into this. We can probably catch that. |
|
Sorry for taking so long. This basically blew up whenever Commit and fix coming up. |
I ran into this segfault today after upgrading
Rcppand rebuildingRcppAnnoy. It was working yesterday, with the olderRcpp, but I'm not sure if that's the underlying issue. This seems like one of those "was working yesterday" bugs...