3D Engine module RangeError: byte length of Uint32Array should be a multiple of 4

Hello, @e.sagnelonge

I have tried to use 3D Engine module as the instruction in 3D Engine Documentation (axone-io.com) in Ignition Platform 8.1.26,Windows 10 Enterprise LTSC. When testing Duplex.xkt in 3D engine, the RangeError issued.

Duplex.xkt can be downloaded from the link Duplex.xkt.

The error message is as below. Is this Ignition version incompatible with 3D engine module? Please help to reply. Thanks.

16:12:13.452 [Browser Thread: 49903] ERROR Perspective.Designer.Workspace - level: LEVEL_ERROR
message: "onerrorLogger: {"stack":"RangeError: byte length of Uint32Array should be a multiple of 4\n at new Uint32Array ()\n at inflate (http://192.168.222.138:8088/res/engine3d/E3DComponents.js:99155:39)\n //n%C2%A0) at Object.parse (http://192.168.222.138:8088/res/engine3d/E3DComponents.js:99648:30)\n //n%C2%A0) at XKTLoaderPlugin._parseModel (http://192.168.222.138:8088/res/engine3d/E3DComponents.js:100467:16)\n //n%C2%A0) at http://192.168.222.138:8088/res/engine3d/E3DComponents.js:100430:22\n at XMLHttpRequest.request.onreadystatechange (http://192.168.222.138:8088/res/engine3d/E3DComponents.js:89361:25)","message":"byte/%22,/%22message/%22:/%22byte) length of Uint32Array should be a multiple of 4","name":"RangeError","logData":{"msg":"Uncaught Exception","errorMsg":"Uncaught RangeError: byte length of Uint32Array should be a multiple of 4","url":"http://192.168.222.138:8088/res/engine3d/E3DComponents.js","line number":99155,"column":39}}"

line_number: 2
source: "http://192.168.222.138:8088/res/perspective/js/PerspectiveClient.888b30115ada5dea158c.js"

16:12:13.460 [Browser Thread: 49903] ERROR Perspective.Designer.Workspace - level: LEVEL_ERROR
message: "Uncaught RangeError: byte length of Uint32Array should be a multiple of 4"

line_number: 99155
source: "http://192.168.222.138:8088/res/engine3d/E3DComponents.js"

Hello @gb_j,

It seems to me that the format must have evolved and that the viewer used in the module can't decrypt the model.
I will check this during the week to confirm it.

@gb_j,

That's what I thought.
Basically the 3d file is of another extension than xkt.

So we use the xkt converter to be able to import it in the viewer.
The version of the converter used for your example file is more recent than the one recommended. (1.0.9)

If you take the same model from a previous version it works.

1 Like

Hello,@e.sagnelonge,

Yes, you are right. I reinstalled xeokit-convert tool version 1.0.9 and it works.

Thanks and Best Regards.

1 Like