Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread Kevin Ushey
What OS are you running on (Mac, Linux, Windows)? I really can't tease this out (with Mac + clang) thus far. On Wed, May 28, 2014 at 9:56 PM, Romain Francois wrote: > > Le 29 mai 2014 à 00:35, John Mous a écrit : > > No luck with gctorture on yet, but I haven't run it for very long. It slowed >

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread Romain Francois
Le 29 mai 2014 à 00:35, John Mous a écrit : > No luck with gctorture on yet, but I haven't run it for very long. It slowed > things down to a complete crawl, but maybe in the long run it can recreate > the problem faster than running the original code (about 12 hours, the > previous estimate

Re: [Rcpp-devel] C++11 in Windows R package

2014-05-28 Thread Matteo Fasiolo
Hi Dirk, many thanks for the prompt reply. Tomorrow I will simplify the package to locate the origin of the bug (which should be caused by one of the dependencies I guess). Matteo On Wed, May 28, 2014 at 11:23 PM, Dirk Eddelbuettel wrote: > > Matteo, > > I may have found it. It is not as br

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread John Mous
No luck with gctorture on yet, but I haven't run it for very long. It slowed things down to a complete crawl, but maybe in the long run it can recreate the problem faster than running the original code (about 12 hours, the previous estimate of a day was too high), so this may still be worthwhile.

Re: [Rcpp-devel] C++11 in Windows R package

2014-05-28 Thread Dirk Eddelbuettel
Matteo, I may have found it. It is not as broken as I feared. At the end of RcppArmadilloConfig.h we have // R can be built with its own Rlapack library, or use an external // one. Only the latter has zgesdd, a complex-valued SVD using divide-and-conquer #ifdef WIN32 // on Windows we do not

Re: [Rcpp-devel] C++11 in Windows R package

2014-05-28 Thread Dirk Eddelbuettel
Hi Matteo, On 28 May 2014 at 22:58, Matteo Fasiolo wrote: | Dear Rcpp developers, | |  I am working on a package which uses Rcpp/RcppArmadillo, OpenMP and C++11. | | Everything works fine under Linux: the package passes R CMD check --as-cran, | while tests and vignettes work fine. Nice. | I u

[Rcpp-devel] C++11 in Windows R package

2014-05-28 Thread Matteo Fasiolo
Dear Rcpp developers, I am working on a package which uses Rcpp/RcppArmadillo, OpenMP and C++11. Everything works fine under Linux: the package passes R CMD check --as-cran, while tests and vignettes work fine. I uploaded the package on win-builder, but I k

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread Romain Francois
(now with some links): Le 28 mai 2014 à 16:31, John Mous a écrit : > The object really is just built as part of the return statement. i.e. the > lines from my prior e-mail exist as-is in the full code, Sure. What happens is that Rcpp::export generates something that calls wrap( std::map ).

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread Hadley Wickham
> What Romain says makes sense to me, despite my lack of expertise in this > area.. the really intermittent nature of the problem and the fact that I > can't recreate it in a small / fast running example suggests that perhaps > this manifests when R happens to garbage collect at an unfortunate time

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread John Mous
The object really is just built as part of the return statement. i.e. the lines from my prior e-mail exist as-is in the full code, there's just more that actually builds the variables X1-X4 beforehand. So I'm not sure where to debug from the client side. I'm a C/C++ developer, but have no experienc

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread Romain Francois
This looks like a protection issue. For whomever this makes sense to: From the code that wraps such object, i would investigate the call to setAttrib. Perhaps we are supposed to get the result of it and protect it. So i would tend to use an Armor instead of a Shield. Romain Le 28 mai 2014

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread Dirk Eddelbuettel
On 28 May 2014 at 10:02, John Mous wrote: | Hmm, unfortunately the GitHub version failed also. Darn. | The attributes on the failed | object are a little different though, here's what they look like: | | Browse[1]> str(results) |  atomic [1:4] 1 1 2270 0 |  - attr(*, "")= symbol sim |  - attr(*

Re: [Rcpp-devel] "Error during wrapup"

2014-05-28 Thread John Mous
Hmm, unfortunately the GitHub version failed also. The attributes on the failed object are a little different though, here's what they look like: Browse[1]> str(results) atomic [1:4] 1 1 2270 0 - attr(*, "")= symbol sim - attr(*, "value")= promise to NULL On Tue, May 27, 2014 at 6:10 PM, Joh