Skip to content

bus error in bulk processing #13

Description

@m41w4r3exe

Thank you for the amazing library!

When trying to convert many mscz files in one process to midi, I always get error below:

[1] 67030 bus error node script.js

and the process terminates.

I am using the snippet from readme.md as below, iterating through an array of file[]:

const msczdata = fs.readFileSync(file);
const score = await WebMscore.load("mscz", msczdata, [], false);
const midi = await score.saveMidi();
fs.writeFileSync(midi_path, midi);
score.destroy();

When script is run for 10 files, no bus error is thrown. When script is run with thousands of files, it always throws.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions