Skip to content

[node-ffi] TypeError: error setting argument 0 - valabind [StructType]#set got a bad value #22

@3demax

Description

@3demax

I've generated binding for tox, but

/home/user/node-tox-ffi/node_modules/ffi/lib/_foreign_function.js:55
      throw e
            ^
TypeError: error setting argument 0 - valabind [StructType]#set got a bad value
    at Function.set (/home/user/node-tox-ffi/tox_custom.js:65:10)
    at Object.set (/home/user/node-tox-ffi/node_modules/ref/lib/ref.js:479:10)
    at Object.alloc (/home/user/node-tox-ffi/node_modules/ref/lib/ref.js:513:13)
    at ForeignFunction.proxy (/home/user/node-tox-ffi/node_modules/ffi/lib/_foreign_function.js:50:22)
    at StructType.size (/home/user/node-tox-ffi/tox_custom.js:141:13)
    at Object.<anonymous> (/home/user/node-tox-ffi/tox_custom.js:338:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

I'm trying to understand this types system, and it's very complicated.
Can you please explain, what's wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions