You are here

OpenMx crashes after R update

3 posts / 0 new
Last post
Sacha's picture
Joined: 05/30/2011 - 21:13
OpenMx crashes after R update

Hi OpenMx team,

I have been unable to get OpenMx to run after updating my R install, R installation and XCode. I now get this error running the basic example:

> model <- mxRun(model) # Run the model, returning the result into model
Running One Factor with 10 parameters

*** caught segfault ***
address 0x0, cause 'unknown'

1: .Call(backend, constraints, matrices, parameters, algebras, expectations, computes, data, intervalList, communication, options, defVars, PACKAGE = "OpenMx")
2: runHelper(model, frontendStart, intervals, silent, suppressWarnings, unsafe, checkpoint, useSocket, onlyFrontend, useOptimizer)
3: mxRun(model)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

I have no idea how to go about fixing this... Any help is greatly appreciated!

tbates's picture
Joined: 07/31/2009 - 14:25

Yikes: that's no good.

Can you run mxVersion() and paste the result here?

After that, I assume from your mention of Xcode that you are compiling OpenMx for yourself? (XCode is not needed to run OpenMx from CRAN or the virginia repository).

If you're running a home-compile, can you try:


if that fails (surprised if it does), then could you try


Again let us know if any of those fail or work, including the results of mxVersion() so we can see what OS, R version, and OpenMx build you have.

Quit and restart R in between any upgrade of a package to ensure the new version is loaded (R is bad at getting existing packages out of memory).

Sacha's picture
Joined: 05/30/2011 - 21:13
Installing from CRAN did the

Installing from CRAN did the trick! For some reason I always thought that OpenMx was not on CRAN... Thanks!

Log in or register to post comments