Not starting up on M1 Mac, OS 12.5 (solved)

WHAT IS THE BUG

New Mac, download Anytype 0.29.1 , open it, get a white screen. Nothing works.

A found a similar report from a few months ago for another version. Solution mentioned there is not helping me.

HOW TO REPRODUCE IT

  1. Download Anytype 0.29.1
  2. Open it, get a white screen. or an error: Failed to run server/spawn: unknown system error -86 (seems to alternate between these two)

THE EXPECTED BEHAVIOR

A working program

SYSTEM INFORMATIONS

  • OS:
    Montery 12.5
  • Device:
    MacBook Pro (16-inch, 2021) M1 max
  • Anytype Version:
    0.29.1

ADDITIONAL CONTEXT

New clean Mac without much installed.

With debug from a terminal:

ANYTYPE_LOG_LEVEL="* = DEBUG"  /Applications/Anytype.app/Contents/MacOS/Anytype               
[Server] Process start error:  Error: spawn Unknown system error -86
(node:2446) 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 /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:2446) 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:2446) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'on')
    at /Applications/Anytype.app/Contents/Resources/app.asar/electron/js/server.js:39:13
(node:2446) 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', languages: [], zoom: 0 }
objc[2448]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x223601b50) and /Applications/Anytype.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x1093c5d08). One of the two will be used. Which one is undefined.
(node:2446) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
20:00:51.473 › before-quit
before-quit
20:00:51.478 › [Api].exit, relaunch: false
[Api].exit, relaunch: false
20:00:51.479 › [Api].shutdown, relaunch: false
[Api].shutdown, relaunch: false
1 Like

Hi @durian could you please share what you tried, maybe with a link to the other topic you refer to?

I’m finding more references to the same problem now, here is one for example: White screen and application does not work

I tried installing an opening it, but I get a white screen straight away, so I cannot do anything at all. I also tried starting from the terminal with debug enabled, see the log in my original message.

edit: I don’t even get to the white screen anymore, it stops with an error dialog (“cannot start server, error -86”).

1 Like

Replying to myself. I found another posting (Mac App fails to start - #9 by willscott) which described the same problem (didn’t find it the first time I looked).

The solution is to install Rosetta2, apparently parts of the Apple Silicon version of AnyType are still x86 code. I installed in a terminal (“softwareupdate --install-rosetta”) and that fixed the problem for me. (It doesn’t want to sync yet, maybe I need to have some patience.)

(I suppose people with a new M1 or M2 mac don’t have Rosetta installed yet. :slight_smile: )

1 Like