Daz3D crashes when defining a long array of integer values

Why Daz crashes when I try to define this array in the Script IDE pane?

Running the simple code below (just the array definition makes my Daz to crash):
Had to upload the code on pastebin, the forum doesnt like me to paste such a long array.

https://pastebin.com/mjHKMKek

 

This is less than the actual number of vertices in a G3F body. I'm trying to define the array to select some of the vertices.

Post edited by Neverdie Axis on

Comments

  • Richard HaseltineRichard Haseltine Posts: 101,507

    The crash report says:

    DAZStudio.exe caused ACCESS_VIOLATION in module "C:\Program Files\DAZ 3D\DAZStudio4\QtScript4.dll" at 0033:0000000019DFE1BC, QScriptEngine::signalHandlerException()+18380 byte(s)

    so on the face of it it appears to be a Qt issue. Have you tried splitting the array assignment down - assign the first blick of vertices, then add in another blocj and another to build the complete list?

  • Richard HaseltineRichard Haseltine Posts: 101,507

    This seems to work, and builds an array with all the values up to the limit - if you were actually skipping some you would need to add code for those.

    var vertexThatShouldNotBeMorphed = [];

     

    for ( var i = 0 ; i < 17417 ; i++ ) {

    vertexThatShouldNotBeMorphed = vertexThatShouldNotBeMorphed + [ i ];

    }

  • Yes, just splitted the big array into 3 smaller arrays and now it no longer crashes...

Sign In or Register to comment.