[Rcpp-devel] Error in RCpp and Wt toolkit
Dirk Eddelbuettel
edd at debian.org
Sat Mar 30 02:32:21 CET 2013
On 29 March 2013 at 21:11, John Robson wrote:
| Hi Dirk, thank for your support.
|
| I'm using:
| Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.39-2 i686 GNU/Linux
| Debian 7.0 wheezy
| G++: 4.7.2
| STL: 4.7.2
| BOOST: 104900
| Wt: 3.2.3
| R version 2.15.1 (2012-06-22)
| Platform: i486-pc-linux-gnu (32-bit)
| RInside_0.2.10
| Rcpp_0.10.3
Looks good, and is always identical at my end. With Ubuntu I have Wt 3.2.1
but I am not sure how / why that would matter.
| Rcpp for Qt works perfectly, but as I said, for Wt, after running, the
| system throw an segmentation error.
|
| If I comment line 171 [R_.parseEvalQ(cmd);]; I not get crash after
| running, but not generate image.
Sure.
It's the invocation of R that creates the issue, and creates the image.
You could try the code in examples/threads/ which is close in spirit. If
that works, and if Qt works, then it may be Wt, but you will have to debug at
your end -- as it works here.
Dirk
|
| On 03/29/2013 07:41 PM, Dirk Eddelbuettel wrote:
| >
| > On 29 March 2013 at 19:24, John Robson wrote:
| > | The example:
| > | http://dirk.eddelbuettel.com/blog/2011/11/30/#rinside_and_wt
| > |
| > | >From the code:
| > | https://github.com/JohnRobson/Wt-Tests/blob/master/RInside/wtdensity.cpp
| > |
| > | After running, the site appears OK: http://imagebin.org/252132
| > |
| > | But immediately a segmentation error is throw:
| > | http://paste.ubuntu.com/5659723/
| > |
| > | Line 171 Cause this error.
| > |
| > | 171 R_.parseEvalQ(cmd); // evaluate command -- generates new density plot
| > |
| > | What I need to do to fix this error?
| >
| > For starters, please learn to write meaningful bug reports. Yours is concise
| > (a plus) but I don't have time to chase around different websites.
| >
| > On my _stock Ubuntu 12.10_ I just rebuilt RInside (both 0.2.10 and the SVN
| > version 0.2.10.1 I have here), and run make inside examples/wt -- and it
| > works just fine in both cases. Try
| >
| > http://dirk.eddelbuettel.com:8088
| >
| > to play with it.
| >
| > You need to tell us (at a minimum) what OS and release, what Rcpp version,
| > what RInside version, possibly what Wt version etc pp. I reckon that the
| > code is fine, but that something is amiss from your build.
| >
| > Dirk
| >
|
| --
| John Robson
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list