Problems installing 0.2.5 on R 2.10.1

Attachment | Size |
---|---|
OpenMx.sysinfo.txt | 974 bytes |
OpenMx.segfault.txt | 1.25 KB |
OpenMx.install.txt | 11.45 KB |
OpenMax.ubuntu8.install.txt | 22.72 KB |
On one, running Red Hat EL 5, I get a memory mapping failure and a segfault, I think from NPSOL. On the other, running Ubuntu 8, the install completes but OpenMx doesnt show up in installed.packages(), and the first tutorial example fails.
Are people running these combinations successfully?
Below is some of my output; I've attached the install logs and other info. The 3 files without system names are from the RHEL5 system;
OpenMax.ubuntu8.install.txt is from the Ubuntu system.
- Mike
==== On the RH EL5 system, I get:
> require(OpenMx)
Loading required package: OpenMx
>
> require(OpenMx)
>
> data(demoOneFactor)
>
> factorModel <- mxModel(name = "One Factor",
+ mxMatrix(type="Full", nrow=5, ncol=1, free=T, values=0.2, name="A"),
+ mxMatrix(type="Symm", nrow=1, ncol=1, free=T, values=1, name="L"),
+ mxMatrix(type="Diag", nrow=5, ncol=5, free=T, values=1, name="U"),
+ mxAlgebra(expression=A %*% L %*% t(A) + U, name="R"),
+ mxMLObjective(covariance="R", dimnames = names(demoOneFactor)),
+ mxData(observed=cov(demoOneFactor), type="cov", numObs=500))
>
> factorModelFit <- mxRun(factorModel)
Running One Factor
*** caught segfault ***
address 0x81280aa48, cause 'memory not mapped'
Traceback:
1: .Call("callNPSOL", objective, startVals, constraints, matrices, parameters, algebras, data, options, state, PACKAGE = "OpenMx")
2: mxRun(factorModel)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
==== On the Ubuntu 8 system, I get:
> require(OpenMx)
Loading required package: OpenMx
>
> data(demoOneFactor)
> manifests <- names(demoOneFactor)
> latents <- c("G")
>
> factorModel <- mxModel("One Factor",
+ type="RAM",
+ manifestVars = manifests,
+ latentVars = latents,
+ mxPath(from=latents, to=manifests),
+ mxPath(from=manifests, arrows=2),
+ mxPath(from=latents, arrows=2, free=F, values=1.0),
+ mxData(observed=cov(demoOneFactor), type="cov", numObs=500))
>
> summary(mxRun(factorModel))
Running One Factor
Error in mxVersion() : subscript out of bounds
Error in summary(mxRun(factorModel)) :
error in evaluating the argument 'object' in selecting a method for function 'summary'
> traceback()
1: summary(mxRun(factorModel))
> mxVersion()
Error in mxVersion() : subscript out of bounds
> require(OpenMx)
> mxVersion()
Error in mxVersion() : subscript out of bounds
>
Hooray for segfaults! I can
See http://cran.r-project.org/doc/manuals/R-exts.html#Debugging-compiled-code. You could try running it under valgrind as well, but I would start with gdb.
Log in or register to post comments
In reply to Hooray for segfaults! I can by mspiegel
gdb showed the segfault to be
I'll discuss with Michael Spiegel whats going wrong in the build process and whether we need to update the gcc4.1/libnpsol.a in the OpenMx distro, or not.
Regarding the Ubuntu install failure: OpenMx 0.2.6 seems to now work there. Not sure what was going wrong with 0.2.5; possible pilot error on my part, as I'm installed into a user-built R 2.10.1.
- Mike
Log in or register to post comments