[Rcpp-devel] initialising RInside crashes for some users

Jonathon Love jon at thon.cc
Fri Aug 22 11:45:18 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

hi all,

it just occurs to me that this is an RInside query rather than Rcpp,
but i still think this is the right place to post (sorry if it isn't!)

OS X 10.9.4
R 3.0.3
Rcpp 0.10.6
RInside 0.2.10

we are shipping a piece of software which embeds R using RInside and
Rcpp. we've avoided the difficulty of locating, and using the R
install on the users machine by shipping the complete R install as
part of the installation. R lives in the subdirectory within the
project, and so is insulated from the user's misadventures with the
system install.

this all works great, and i have it running on a number of computers,
and quite a number of people are using the software without complaint.
it works on clean installs of OS X 10.8, 10.9, and all the [recent and
reasonable] windows.

however, i've received a bug report from someone, complaining of
crashes with exit code 1. there are no error messages being generated,
so i think it is unrelated to not being able to resolve .dylibs (which
in my experience, is the most common difficulty and source of crashes
in shipping R on OS X)

they are running the latest OS X mavericks, etc (same as me). and i am
unable to reproduce the problem at my end.

source code is here:

https://github.com/jasp-stats/jasp-desktop/blob/master/JASP-Engine/rcppbridge.cpp

i've added debug statements, provided it to the affected user, and
narrowed it down to the initialisation of RInside.

_rInside = new RInside(0, NULL, true, true, false);

(this code isn't exactly what i have in the shipping version or
github; i modified it so i could surround this call with debug
statements; but i'm certainly not doing anything exotic)

i was wondering if anyone had any suggestions as to what might be
going wrong, and what i might do to debug this further. would adding
printf() statements into RInside be fruitful for example?

with thanks

jonathon

- -- 

JASP - A Fresh Way to Do Statistics
http://jasp-stats.org/

- --

How happy is he born and taught,
That serveth not another's will;
Whose armour is his honest thought,
And simple truth his utmost skill

This man is freed from servile bands
Of hope to rise, or fear to fall:
Lord of himself, though not of lands,
And, having nothing, yet hath all.

  -- Sir Henry Wotton





-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJT9xEtAAoJEH277gjmPGDY3G8QALcCsuLHzrfPKl87DpK4sr4f
xN92YS1+7LIIeBRAYRGCqYnkQuWpL0lBWYv8SCZlb9/ePKFECHQAG/Q6NNWz9klT
NCahoM6FCDNmMD+DvZTOY8s0tRgZvZ/1aBjkFUNW4UIGNImGN/qqyP0TcGo0RN0X
A0ayBJi21gXncBfIReir5CB+R+FnY/S8qSOAQXwxDxRV8Lc6HQiPUjVaJxOOv70a
I3K9VtvV7oDDc5mChA0+MRXEkMsz7QWn99HTkfgv9QLqxqzYL+hy0Fvfh8I+GhuB
5bSwTxJsQxw7ewDAk5LDbX5dxP3UjJjAgwHrcUdf8HfbUZiAW3LWZYilCP9ZmB0A
1oRfqMWlTtMJPAoJvlkW0n9GnvhgHQPfO9opbP5tQTwjdWESzukyMbYIeofj1UZZ
IvNBOZF6rLmqfiihBO+gONaIYNw7M4hofBFY5hr/omDYTP5WowLbHeWBoS2tvWMM
3rOBmN0qU3+NrdS9HP2V9T9zwj86OeCtjpJtSZ3HLqtx7okYEsmEReu5JU+K5y8R
MPE6FmJAJslFkeh/4lact2MYnHhbxyKeH0f9s0Z8vy7s5dFUvWHa/E/1q1oLZPmh
l3JrBAUpK8SWceQlEwNZfUX8hBeY9YimFifP7P/5awYSZbIAYNzN2alXR8D8vFf5
yHCWnMwk7QYk21lnrRM7
=gHp5
-----END PGP SIGNATURE-----


More information about the Rcpp-devel mailing list