DUNEuro fails, status=137

I’m trying to follow the Brainstorm DUNEuro tutorial, section FEM forward model. When I launch the computation with default parameters, it fails with the following message:

DUNEURO> System call: "/Users/adc/.brainstorm/plugins/duneuro/bst_duneuro/bin/bst_duneuro_meeg_mac64.app" "/Users/adc/.brainstorm/tmp/duneuro_260326_163659/duneuro_minifile.mini"
"/Users/adc/.brainstorm/plugins/duneuro/bst_duneuro/bin/bst_duneuro_meeg_mac64.app" "/Users/adc/.brainstorm/tmp/duneuro_260326_163659/duneuro_minifile.mini": Killed

status =

137

** Error: Error during the DUNEuro computation, see logs in the command window.


I tried deleting the plugin to force BST to download the latest version, no luck. I’m on a Mac running Sonoma and Matlab R2024a.

Any idea what’s wrong?


Hi @alain

The message “Killed (status 137)” usually means that the operating system terminated the DUNEuro process. This can happen for two reasons:

1. macOS Sonoma blocked the DUNEuro binary

Sonoma is stricter with unsigned executables.
Please check:

System Settings → Privacy & Security → Security
If you see a message saying that bst_duneuro_meeg_mac64.app was blocked, click Allow.

2. The OS killed the process due to memory usage

FEM models can use a lot of RAM, and macOS may terminate the process if memory runs out.

To diagnose further, try running the binary manually in Terminal:

cd ~/.brainstorm/plugins/duneuro/bst_duneuro/bin/ ./bst_duneuro_meeg_mac64.app --help

  • If macOS blocks it, you’ll get a Gatekeeper warning.

  • If it crashes immediately, it may be a compatibility issue with Sonoma.

  • If it prints the help text, then the binary runs correctly and the issue is likely memory‑related.

Hi Takfarinas,

Thanks for the advice! Here’s what I tried:

  1. System Settings –> Privacy & Security –> Security shows no messages. System Settings –> Privacy & Security –> Accessibility offers to “allow the application to control your computer”, which I did. No luck.
  2. In terminal: spctl --assess --verbose /Users/adc/.brainstorm/plugins/duneuro/bst_duneuro/bin/bst_duneuro_meeg_mac64.app –> […]: rejected source=no usable signature
  3. In terminal: sudo spctl --add --label "MyApp" /Users/adc/.brainstorm/plugins/duneuro/bst_duneuro/bin/bst_duneuro_meeg_mac64.app
  4. In terminal: spctl --assess --verbose /Users/adc/.brainstorm/plugins/duneuro/bst_duneuro/bin/bst_duneuro_meeg_mac64.app […]: rejected (the code is valid but does not seem to be an app) source=matched cdhash
  5. cd ~/.brainstorm/plugins/duneuro/bst_duneuro/bin/; ./bst_duneuro_meeg_mac64.app --help –> Killed: 9

So, I guess it’s compatibility problem? The machine is an Intel Macbook pro with 64 GB memory running Sonoma 14.8.4.

Alain

Hi Alain,

Thank you for your detailed report. This does appear to be an OS compatibility issue.

Given that the DUNEuro binary terminates even when run directly from the terminal, it is likely not fully compatible with macOS Sonoma.

We are currently working on a new, updated, and optimized DUNEURO release based on containerized environments, which should resolve these types of OS-related issues. We expect this update to be available later this summer (hopefully by June).

In the meantime, the recommended workaround is to run the LF computation on a different operating system (e.g., Windows, Linux or an earlier macOS version), or to use the alternative BEM method within Brainstorm.

Best,
Takfarinas

Thanks! Will do.