Skip to content

N-API callback exception when running above Rosetta #93

@RichardFoss

Description

@RichardFoss

Thanks for your great package!
I am trying to create an app deliverable for an Apple x64 architecture when running on an Apple arm64 architecture. I am using JZZ to send transport command to a DAW, and also to receive MTC messages from the DAW.
I am developing in VSCode, and have ensured that VSCode, its terminal, and node.js are running above the simulated x64 (Rosetta) architecture using arch and node -p "process.arch" commands. I am using JZZ commands to open input and output ports, to send messages, and I have used .connect to ensure the handling of MTC messages.
My app runs, and transport commands I send are successfully received by the DAW. However, the receipt of MTC messages results in a succession of the following message:
(node:41451) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=trueto handle those exceptions properly.
Any idea of how to prevent this callback exception and to pick up the MTC messages?

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