Skip to content

macOS x64 DMG contains arm64 native module (ced.node) – crashes on Intel Mac #84

@mad99

Description

@mad99

Environment

  • MacBook Pro (Intel)
  • CPU: 2.2 GHz 6-Core Intel Core i7
  • Architecture: x86_64
  • macOS: Sequoja 15.7.3 (24G419)

Problem: x64 DMG crashes on Intel Mac

I downloaded:

marktext-mac-x64-0.18.6.dmg

(later also marktext-mac-x64-0.18.7.dmg and marktext-mac-x64-0.18.5.dmg with the same Issue)

On startup, the application crashes with the following error:

Uncaught Exception:
Error: dlopen(.../node_modules/ced/build/Release/ced.node, 0x0001):
mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')

Before have done the security-hack from marktext#3004

The relevant part:

have 'arm64', need 'x86_64'

This suggests that the x64 DMG contains a native module (ced.node) compiled for arm64, even though the application build itself is x64.

Since this is an Intel Mac (uname -m returns x86_64), the application cannot load the module and crashes immediately.

This looks like a packaging/build pipeline issue where native dependencies were compiled on Apple Silicon without proper cross-compilation for x64.


Questions

  • Is the mac-x64 release built and tested on Intel hardware?

Thank you for maintaining the project — I’m happy to test fixes if needed.

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