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.
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)
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!
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
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.
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.
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.
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.
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.