Anytype crashing within 5 minutes of opening

WHAT IS THE BUG

Anytype crashes consistently with a bug report
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x1dda727]

HOW TO REPRODUCE IT

  1. Open anytype
  2. Wait for 4-5 minutes
  3. Application crashes

THE EXPECTED BEHAVIOR

App doesn’t crash

SYSTEM INFORMATIONS

  • OS:
    Windows 10.0.190 44
  • Device:
    Dell XPS 15 9570
  • Anytype Version:
    0.29.1

ADDITIONAL CONTEXT

ID A5y3atj6KkRk32LiBEDXb37RQkUkt5fxtBxkK8sPnkXi4ouD
Andriod application works fine.

Crashlog:
2022-11-14 12:02:32.2370715 +0100 CET m=+339.663367601 write error: mb: overflowed
2022-11-14 12:02:32.2370715 +0100 CET m=+339.663367601 write error: mb: overflowed
2022-11-14 12:02:32.2380687 +0100 CET m=+339.664364801 write error: mb: overflowed

2022-11-14 12:02:32.2380687 +0100 CET m=+339.664364801 write error: mb: overflowed

2022-11-14 12:02:32.2370715 +0100 CET m=+339.663367601 write error: mb: overflowed
2022-11-14 12:02:32.2380687 +0100 CET m=+339.664364801 write error: mb: overflowed

2022-11-14 12:02:32.2390656 +0100 CET m=+339.665361701 write error: mb: overflowed

2022-11-14 12:02:32.2390656 +0100 CET m=+339.665361701 write error: mb: overflowed

2022-11-14 12:02:32.2405462 +0100 CET m=+339.666842301 write error: mb: overflowed

2022-11-14 12:02:32.2405462 +0100 CET m=+339.666842301 write error: mb: overflowed

2022-11-14 12:02:32.2410606 +0100 CET m=+339.667356701 write error: mb: overflowed

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x223a727]

goroutine 9650 [running]:
github.com/libp2p/go-libp2p-peerstore/pstoreds.(*addrsRecord).flush(0xc0398ab110, {0x1e2f2c5f2d0, 0xc0002a9bc0})
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-peerstore@v0.6.0/pstoreds/addr_book.go:50 +0x47

github.com/libp2p/go-libp2p-peerstore/pstoreds.(*dsAddrBook).setAddrs(0xc0015ecb00, {0xc0374bf6b0, 0x22}, {0xc02d2745a0, 0x3, 0x4}, 0x1bf08eb000, 0x1, 0x88)
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-peerstore@v0.6.0/pstoreds/addr_book.go:533 +0x758
github.com/libp2p/go-libp2p-peerstore/pstoreds.(*dsAddrBook).AddAddrs(0xc002778060, {0xc0374bf6b0, 0x22}, {0xc0398aad20, 0x2c, 0xc0374bf6b0}, 0x1bf08eb000)
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-peerstore@v0.6.0/pstoreds/addr_book.go:261 +0x85
github.com/libp2p/go-libp2p-kad-dht.(*IpfsDHT).maybeAddAddrs(0xc000d74000, {0xc0374bf6b0, 0x22}, {0xc0398aad20, 0x3, 0x3}, 0x3)
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.15.0/dht.go:843 +0xe5
github.com/libp2p/go-libp2p-kad-dht.(*query).queryPeer(0xc0394dc800, {0x2e75b10, 0xc021d87900}, 0xc02082bfd0, {0xc0234af0e0, 0xc021db6240})
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.15.0/query.go:440 +0x72e
created by github.com/libp2p/go-libp2p-kad-dht.(*query).spawnQuery
/Users/runner/go/pkg/mod/github.com/libp2p/go-libp2p-kad-dht@v0.15.0/query.go:325 +0x2c5

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

This crash should go away after next release, we have updated libp2p and peerstore in particular.

1 Like

Thanks for the quick response!

1 Like