Skip to content

Unable to call methods on proxies of vtk typed arrays in remote session #71

Description

@jspanchu

Description

Trying to call methods on a vtkTypeUInt8Array or any other array throws TypeError.

Where does the issue originate?

This project (vtk-wasm JS bindings)

Version Information

vtk-wasm - v3.0.5, VTK=9.7.20260913.dev0

Steps to Reproduce

let native = remoteSession.native;
native.registerState({
        Id: pixelsId,
        MTime: 1,
        ClassName: "vtkTypeUInt8Array",
        SuperClassNames: ["vtkObjectBase", "vtkObject", "vtkAbstractArray", "vtkDataArray"],
        NumberOfComponents: 4,
        "vtk-object-manager-kept-alive": true,
      });
native.updateObjectsFromStates();
native.getDataType() # throws TypeError

Relevant Log Output

Uncaught TypeError: Unknown class vtkTypeUInt8Array: cannot resolve 'getDataType'.
    at Object.get (trame_vtklocal.umd.js:1:15988)
    at eval (eval at r (trame_vtklocal.umd.js:1:1), <anonymous>:1:3)
    at Object.r [as toJSTypedArray] (trame_vtklocal.umd.js:1:12106)
    at Proxy.en (trame_vtklocal.umd.js:3:8616)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs-triageNew issues that haven't been vetted yet.type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions