White screen and application does not work

Describe the bug
upon opening the app, I see the loading page and then everything goes white

To Reproduce
Steps to reproduce the behavior:

  1. Open the application
  2. See loading
  3. page/window turns white nothing to interact with
  4. See an error

Expected behavior
I would see the anytype application

System Information:

  • OS: e.g. Android 10
  • Device Manufacturer/Model: Model Name:
    MacBook Pro
    Model Identifier: MacBookPro18,1
    Chip: Apple M1 Pro
    Total Number of Cores: 10 (8 performance and 2 efficiency)
    Memory: 32 GB
    System Firmware Version: 7459.121.3
    OS Loader Version: 7459.121.3
  • Anytype Version: e.g. 0.26.1

Additional context
Ran in debug mode, nothing shows up in the console at all.

Ran debug in console and got the following errors
(base) jonathangough@GoughJo ~ % Anytype ANYTYPE_LOG_LEVEL = “* = DEBUG”
10:30:32.849 › Config: {
“channel”: “latest”
}
Config: {
“channel”: “latest”
}
Channel: latest
objc[23577]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x21ef43808) and /Applications/Anytype.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x1090753c8). One of the two will be used. Which one is undefined.
Error returned: <dictionary: 0x1ea47e530> { count = 1, transaction: 0, voucher = 0x0, contents =
“XPCErrorDescription” => <string: 0x1ea47e6c8> { length = 18, contents = “Connection invalid” }
}
native addon init
mw jsaddon: v0.19.2
(node:23576) UnhandledPromiseRejectionWarning: Error: An object could not be cloned.
at EventEmitter.t.ipcRendererInternal.send (node:electron/js2c/renderer_init:85:328)
at EventEmitter. (node:electron/js2c/renderer_init:81:357)
(Use Anytype --trace-warnings ... to show where the warning was created)
(node:23576) 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 Command-line API | Node.js v18.6.0 Documentation). (rejection id: 1)
2022/07/18 10:30:38 Assert failed
github.com/dgraph-io/badger/y.AssertTrue
/Users/runner/go/pkg/mod/github.com/dgraph-io/badger@v1.6.2/y/error.go:55
github.com/dgraph-io/badger/y.CompareKeys
/Users/runner/go/pkg/mod/github.com/dgraph-io/badger@v1.6.2/y/y.go:129
github.com/dgraph-io/badger.(*levelHandler).initTables.func2
/Users/runner/go/pkg/mod/github.com/dgraph-io/badger@v1.6.2/level_handler.go:72
sort.quickSort_func
/Users/runner/hostedtoolcache/go/1.17.6/x64/src/sort/zfuncversion.go:154
sort.Slice
/Users/runner/hostedtoolcache/go/1.17.6/x64/src/sort/slice.go:20
github.com/dgraph-io/badger.(*levelHandler).initTables
/Users/runner/go/pkg/mod/github.com/dgraph-io/badger@v1.6.2/level_handler.go:71
github.com/dgraph-io/badger.newLevelsController
/Users/runner/go/pkg/mod/github.com/dgraph-io/badger@v1.6.2/levels.go:178
github.com/dgraph-io/badger.Open
/Users/runner/go/pkg/mod/github.com/dgraph-io/badger@v1.6.2/db.go:297
github.com/ipfs/go-ds-badger.NewDatastore
/Users/runner/go/pkg/mod/github.com/ipfs/go-ds-badger@v0.2.7/datastore.go:156
github.com/anytypeio/go-anytype-middleware/pkg/lib/datastore/clientds.(*clientds).Run
/Users/runner/work/go-anytype-middleware/go-anytype-middleware/pkg/lib/datastore/clientds/clientds.go:154
github.com/anytypeio/go-anytype-middleware/app.(*App).Start
/Users/runner/work/go-anytype-middleware/go-anytype-middleware/app/app.go:168
github.com/anytypeio/go-anytype-middleware/core/anytype.StartNewApp
/Users/runner/work/go-anytype-middleware/go-anytype-middleware/core/anytype/bootstrap.go:84
github.com/anytypeio/go-anytype-middleware/core.(*Middleware).AccountSelect
/Users/runner/work/go-anytype-middleware/go-anytype-middleware/core/account.go:570
github.com/anytypeio/go-anytype-middleware/clientlibrary/service.AccountSelect
/Users/runner/work/go-anytype-middleware/go-anytype-middleware/clientlibrary/service/service.pb.go:712
github.com/anytypeio/go-anytype-middleware/clientlibrary/service.CommandAsync.func1
/Users/runner/work/go-anytype-middleware/go-anytype-middleware/clientlibrary/service/service.pb.go:3293
runtime.goexit
/Users/runner/hostedtoolcache/go/1.17.6/x64/src/runtime/asm_arm64.s:1133

1 Like

You’re not the only one to be experiencing this issue - it’s also been documented here (Bug Reports- Blank Page after logging in) and (Just downloaded, open to blank screen), along on various Telegram messages (Telegram: Contact @anytype). I’ve also experienced this issue numerous times.

It looks like this only happens on Macs exclusively, perhaps on M1/arm only - all reports match that description.

If you need to urgently use Anytype, you can select “File > Show work directory” and rename the anytype2 folder. This will clear the data and you’ll need to log back in with the keychain phrase.

Even though this is a duplicate issue, I’ll avoid merging it for now to prevent confusion (the older threads are fairly convoluted) until the issue is resolved.

Hi @jonathandgough! Thank you for the report. We will investigate the issue. Stay tuned :slight_smile:
@edwards thanks for providing more information

2 Likes

Reinstalling the application helped me. You can also try to log out and log in to your account again