crash with raw data and mxMLObjective

Posted on
Picture of user. tbates Joined: 07/31/2009
Forums
Just got this crash running a FIML version of the front page factor model without updating the object to FIML

> data(demoOneFactor)
> factorModel <- mxModel("One Factor",
+ mxMatrix("Full", 5, 1, values=0.2,
+ free=T, name="A"),
+ mxMatrix("Symm", 1, 1, values=1,
+ free=F, name="L"),
+ mxMatrix("Diag", 5, 5, values=1,
+ free=T, name="U"),
+ mxAlgebra(A %*% L %*% t(A) + U, name="R",
+ dimnames = list(names(demoOneFactor),
+ names(demoOneFactor))),
+ mxMLObjective("R"),
+ mxData(demoOneFactor, type="raw"))
> summary(mxRun(factorModel))
Running One Factor

*** caught segfault ***
address 0x15c0bdf0, cause 'memory not mapped'

Traceback:
1: .Call("callNPSOL", objective, startVals, constraints, matrices, parameters, algebras, data, options, state, PACKAGE = "OpenMx")
2: mxRun(factorModel)

Replied on Fri, 09/04/2009 - 15:16
Picture of user. mspiegel Joined: 07/31/2009

I thought the back-end was converting ML objective functions with raw data to FIML objective functions? valgrind is tracing the error down to populating the 'I' matrix, and it looks like it's interpreting the data source as a covariance matrix:

==5123== Invalid write of size 8
==5123== at 0x60F40F1: omxSetMatrixElement (omxMatrix.c:252)
==5123== by 0x60F3733: omxInitMLObjective (omxMLObjective.c:286)
==5123== by 0x60F50F2: omxFillMatrixFromMxObjective (omxObjective.c:113)