Skip to content

MacBook Pro M2: dyld[7797]: missing symbol called #165

Open
@objectkuan

Description

@objectkuan

Issue description

  1. Prepare some PCM data. In my case it's 16kHz mono, 16bits.
  2. Encode it with 960 bytes per frame.
  3. Watch the crash

After digging into the missing symbols, I managed to fix that by adding "opus/silk/arm/NSQ_neon.c" to the "target_arch==\"arm64\"" condition in @discordjs/opus/deps/binding.gyp .

Code sample

import { OpusEncoder } from '@discordjs/opus';

const buffer = ...;
const bytesPerFrame = 960;
const frame = buffer.subarray(0, bytesPerFrame);
const encoder = new OpusEncoder(16000, 1);
const opus = encoder.encode(frame);

Versions

  • @discordjs/opus: 0.9.0
  • nodejs: v22.11.0
  • typescript: 5.6.3
  • OS: macOS 14.6.1 (23G93)
  • Chip: Apple M2

Issue priority

Medium (should be fixed soon)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions