Mac App fails to start

WHAT IS THE BUG

On opening the App on a mac, I see just a dialog saying “Error: failed to run server” “Error: spawn Unknown system error -86”. Clicking OK leaves the application open, but no other window or activity is possible.

HOW TO REPRODUCE IT

Copy the Application to my computer.
Double click.

THE EXPECTED BEHAVIOR

App opens

SYSTEM INFORMATIONS

  • OS:
    Mac OS 12.6

  • Device:
    Macbook Pro M1 Ultra

  • Anytype Version:
    0.28.0

ADDITIONAL CONTEXT

From command line I see:

 % ANYTYPE_LOG_LEVEL="* = DEBUG" ~/Applications/Anytype.app/Contents/MacOS/Anytype --trace-warnings
[Server] Process start error:  Error: spawn Unknown system error -86
(node:70550) UnhandledPromiseRejectionWarning: Error: spawn Unknown system error -86
    at ChildProcess.spawn (node:internal/child_process:413:11)
    at Object.spawn (node:child_process:709:9)
    at /Users/user/Applications/Anytype.app/Contents/Resources/app.asar/electron/js/server.js:33:29
(Use `Anytype --trace-warnings ...` to show where the warning was created)
(node:70550) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:70550) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'on')
    at /Users/user/Applications/Anytype.app/Contents/Resources/app.asar/electron/js/server.js:39:13
(node:70550) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
[ConfigManager].init: { channel: 'latest', zoom: 0 }
objc[70552]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x23de55b50) and /Users/user/Applications/Anytype.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x109e81d08). One of the two will be used. Which one is undefined.
(node:70550) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
3 Likes

Hi @willscott, thanks for posting a detailed bug report! Could you check whether the steps suggested in this topic resolve the issue for you? The linked bug report was originally reported for Windows, but it might help you, too!

There isn’t an equivalent of the windows 11 firewall that I imagine would impact this.

1 Like

This issue has been added to our issue tracker and was received by the Development Team.

Facing the same issue yesterday when I installed :smiling_face_with_tear:
Is there any way to know when the problem will be resolved

Having the same issue on a clean formatted MacBook Air M1. If any log/data is needed, I’ll be glad to share

The error here, ‘system error -86’ is “unknown arch”
While the top level binary is available for m1, the internally packed server binary is only compiled for x86

% file Resources/app.asar.unpacked/dist/anytypeHelper
Resources/app.asar.unpacked/dist/anytypeHelper: Mach-O 64-bit executable x86_64
1 Like

Friends! What’s the status on this?

I did some tests and got it working for me. Apparently, the ARM64 version still needs Rosetta to run. I think it’s related to @willscott’s comment.

In my tests, I downloaded and tried to run the ARM64 version without Rosetta installed on my Mac and got the -86 error. Then, I installed another app that installed Rosetta (in this case: Steam), and then ran the Anytype ARM64 version without any issues.

I also see a process named “anytypeHelper” with Intel kind on Activity Monitor (even though I downloaded and installed the ARM64 version). @Angelo not sure if this could be useful, sharing just in case.

If more data is needed, I’ll be glad to share. :smile:

2 Likes

That’s great @rodrigomantoan

We can definitely suggest this when trouble-shooting with users encountering the same problem. Maybe you’ve found the solution!

Thanks a lot for digging into it!

1 Like

Could you please download the latest version from download.anytype.io and check again please? We have different middleware builds actually for different architectures, so this is really weird.

Yes, I can confirm that this continues to be the case with v0.29.1

Your build setup for your apple silicon build is embedding an x86-only helper binary within the electron asar.

Did you update or downloaded version from scratch?

I downloaded from scratch - since the app does not start up, there is no way for me to update from within the app

Experiencing this on my brand new work laptop, a M1 MacBook Pro 2021 running macOS 12.6.1. (And no, installing Rosetta doesn’t make any difference for me.)

However, I did not experience this on my personal M1 MacBook Air 2020, also running macOS 12.6.1.

1 Like

Hi @SquareBottle welcome to the Community!

Did you try @rodrigomantoan solution :point_down:

Yep! Rosetta is installed on both laptops.

Odd. I just tried to launch the other app that required Rosetta, and was prompted to install it for the second time. So, this time I tried using the command line method:

softwareupdate --install-rosetta

This time, Anytype opened just fine. So maybe people need to install it via the command line for some reason? I have no idea, but I’m happy that Anytype works.

1 Like

That’s great to hear and a plausible explanation. Maybe you solved the mystery! Some installs aren’t executed on certain OS setups without an extra administrative command.

Thanks for reporting back!

WHAT IS THE BUG

Anytype version 0.29.1 fails to launch crashes with below error

HOW TO REPRODUCE IT

  1. Just lauch the app on apple silicon

SYSTEM INFORMATION

  • OS: 13.0.1 (22A400)- MAC OS Ventura

  • Device: Apple M1 air

  • Anytype Version:
    0.29.1

ADDITIONAL CONTEXT

1 Like