Skip to content

macOS Tahoe 26.5.2: Krom crashes on empty project with TypeError: Krom.getSamplesPerSecond is not a function #3330

Description

@aycaaydogdu

Description
Krom crashes on empty project with TypeError: Krom.getSamplesPerSecond is not a function. Appears to be a runtime/API mismatch rather than a project issue.The issue occurs even with a brand-new empty project, so it doesn't appear to be related to project content.

To Reproduce

  1. Install Blender 4.2 LTS
  2. Install Armory from armory.py
  3. Set SDK Path to the extracted Armory2602 SDK
  4. Create a new Blender file (default cube only)
  5. Press Play

Expected behavior
Krom starts and the default cube is shown.

Actual
The build completes successfully.

Krom launches but immediately exits with:

TypeError: Krom.getSamplesPerSecond is not a function

at Function.init
at Function.start

Fatal error in v8::Function::Call
Function to be called is a null pointer

WARNING: Player exited code -5

The generated krom.js contains:

kha_audio2_Audio.samplesPerSecond = Krom.getSamplesPerSecond();
kha_audio2_Audio1._init();
kha_audio2_Audio._init();
Krom.setAudioCallback(kha_SystemImpl.audioCallback);

The exception is thrown exactly on the call to:

Krom.getSamplesPerSecond()

which seems to be unavailable in the macOS Krom runtime on my system. I'm not sure if this indicates a runtime/API mismatch or another issue.

What I already verified

  • Fresh Blender install
  • Fresh Armory 26.02 SDK
  • Empty Blender scene
  • kraffiti works
  • cmft works
  • node-osx works
  • Build completes successfully
  • Krom executable is a universal binary (x86_64 + arm64)

System

Can anyone reproduce this on macOS Tahoe 26.x? Is the Krom binary included in Armory 26.02 expected to expose Krom.getSamplesPerSecond()?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue describes a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions